예제 #1
0
 @Test
 public void canParseTheCommandLine() throws Exception {
   updater.parseCommandLine(new String[] {"testDir"});
   assertEquals(1, updater.getDirectories().size());
   assertEquals("testDir", updater.getDirectories().get(0));
 }
예제 #2
0
 @Test
 public void shouldSplitUpWindowsLikePathNames() throws Exception {
   String args[] = {"-baseDirectory:C:\\FitNesse/Resources", "MasterFolder"};
   updater.parseCommandLine(args);
   assertEquals(asList("C:\\FitNesse/Resources/MasterFolder"), updater.getDirectories());
 }