Ejemplo n.º 1
0
 @Test
 public void shouldGetTheCommandFromCommandlineAsIs() throws IOException {
   String file = "originalCommand";
   CommandLine command = CommandLine.createCommandLine(file);
   command.setWorkingDir(new File("."));
   String[] commandLineArgs = command.getCommandLine();
   assertThat(commandLineArgs[0], is(file));
 }