rename unit tests for clarity

This commit is contained in:
phact 2020-03-20 09:35:28 -04:00
parent 8340c3e18b
commit 3df4aa6eac

View File

@ -194,13 +194,13 @@ public class TestNBCLIOptions {
} }
@Test @Test
public void scenarioYaml() { public void defaultScenario() {
NBCLIOptions opts = new NBCLIOptions(new String[]{ "scenario-test" }); NBCLIOptions opts = new NBCLIOptions(new String[]{ "scenario-test" });
List<NBCLIOptions.Cmd> cmds = opts.getCommands(); List<NBCLIOptions.Cmd> cmds = opts.getCommands();
} }
@Test @Test
public void scenarioYamlCliArgs() { public void defaultScenarioWithParams() {
NBCLIOptions opts = new NBCLIOptions(new String[]{ "scenario-test", "cycles=100"}); NBCLIOptions opts = new NBCLIOptions(new String[]{ "scenario-test", "cycles=100"});
List<NBCLIOptions.Cmd> cmds = opts.getCommands(); List<NBCLIOptions.Cmd> cmds = opts.getCommands();
assertThat(cmds.get(0).getCmdSpec()).containsOnlyOnce("cycles=100"); assertThat(cmds.get(0).getCmdSpec()).containsOnlyOnce("cycles=100");
@ -208,13 +208,13 @@ public class TestNBCLIOptions {
} }
@Test @Test
public void scenarioYamlFilter() { public void namedScenario() {
NBCLIOptions opts = new NBCLIOptions(new String[]{ "scenario-test", "schema-only"}); NBCLIOptions opts = new NBCLIOptions(new String[]{ "scenario-test", "schema-only"});
List<NBCLIOptions.Cmd> cmds = opts.getCommands(); List<NBCLIOptions.Cmd> cmds = opts.getCommands();
} }
@Test @Test
public void scenarioYamlFilterCliArgs() { public void namedScenarioWithParams() {
NBCLIOptions opts = new NBCLIOptions(new String[]{ "scenario-test", "schema-only", "cycles=100"}); NBCLIOptions opts = new NBCLIOptions(new String[]{ "scenario-test", "schema-only", "cycles=100"});
List<NBCLIOptions.Cmd> cmds = opts.getCommands(); List<NBCLIOptions.Cmd> cmds = opts.getCommands();
assertThat(cmds.get(0).getCmdSpec()).containsOnlyOnce("cycles=100"); assertThat(cmds.get(0).getCmdSpec()).containsOnlyOnce("cycles=100");