use of org.kie.workbench.common.migration.cli.ToolConfig in project kie-wb-common by kiegroup.
the class ToolConfigTest method testGetTarget.
@Test
public void testGetTarget() throws ParseException {
final String[] args = { "-t", "/fake/dir" };
CommandLine cl = new CLIManager().parse(args);
Path path = new ToolConfig(cl).getTarget();
assertEquals(2, path.getNameCount());
assertEquals("fake", path.getName(0).toString());
}
Aggregations