Merge pull request #336 from XN137/fix-errorprone-errors

fix errors found by errorprone
This commit is contained in:
Jonathan Shook
2021-06-17 11:32:23 -05:00
committed by GitHub
61 changed files with 94 additions and 201 deletions

View File

@@ -177,27 +177,28 @@ public class TestNBCLIOptions {
@Test
public void listWorkloads() {
NBCLIOptions opts = new NBCLIOptions(new String[]{ "--list-workloads"});
List<Cmd> cmds = opts.getCommands();
assertThat(opts.wantsScenariosList());
assertThat(opts.wantsWorkloadsList()).isTrue();
}
@Test
public void listScenarios() {
NBCLIOptions opts = new NBCLIOptions(new String[]{ "--list-scenarios"});
assertThat(opts.wantsScenariosList()).isTrue();
}
@Test
public void listScripts() {
NBCLIOptions opts = new NBCLIOptions(new String[]{ "--list-scripts"});
List<Cmd> cmds = opts.getCommands();
assertThat(opts.wantsScriptList());
assertThat(opts.wantsScriptList()).isTrue();
}
@Test
public void clTest() {
String dir= "./";
URL resource = getClass().getClassLoader().getResource(dir);
assertThat(resource);
assertThat(resource).isNotNull();
Path basePath = NBIO.getFirstLocalPath(dir);
List<Path> yamlPathList = PathWalker.findAll(basePath).stream().filter(f -> f.toString().endsWith(".yaml")).collect(Collectors.toList());
assertThat(yamlPathList);
assertThat(yamlPathList).isNotEmpty();
}
}