use of org.aion.zero.impl.cli.Cli.TaskPriority in project aion by aionnetwork.
the class CliTest method testCheckArguments.
@Test
@Parameters(method = "parametersForArgumentCheck")
public void testCheckArguments(String[] input, TaskPriority expectedPriority, Set<String> expectedTasks) {
Arguments options = new Arguments();
CommandLine parser = new CommandLine(options);
CommandLine.ParseResult result = parser.parseArgs(input);
TaskPriority breakingTaskPriority = cli.getBreakingTaskPriority(options, result);
assertEquals(expectedPriority, breakingTaskPriority);
Set<String> skippedTasks = cli.getSkippedTasks(options, breakingTaskPriority, result);
assertEquals(expectedTasks, skippedTasks);
}
Aggregations