test fixes

This commit is contained in:
Jonathan Shook 2020-04-06 03:05:11 -05:00
parent 3837c66050
commit 71c8493e3f

View File

@ -86,7 +86,7 @@ public class TestNBCLIOptions {
assertThat(opts.wantsTopicalHelp()).isFalse(); assertThat(opts.wantsTopicalHelp()).isFalse();
} }
@Test(expected = InvalidParameterException.class) @Test(expected = IllegalArgumentException.class)
public void shouldErrorSanelyWhenNoMatch() { public void shouldErrorSanelyWhenNoMatch() {
NBCLIOptions opts = new NBCLIOptions(new String[]{"unrecognizable command"}); NBCLIOptions opts = new NBCLIOptions(new String[]{"unrecognizable command"});
} }
@ -196,7 +196,7 @@ public class TestNBCLIOptions {
public void listWorkloads() { public void listWorkloads() {
NBCLIOptions opts = new NBCLIOptions(new String[]{ "--list-workloads"}); NBCLIOptions opts = new NBCLIOptions(new String[]{ "--list-workloads"});
List<NBCLIOptions.Cmd> cmds = opts.getCommands(); List<NBCLIOptions.Cmd> cmds = opts.getCommands();
assertThat(opts.wantsWorkloads()); assertThat(opts.wantsScenariosList());
} }