Skip to content

Commit

Permalink
#571 add @file test
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Jan 2, 2019
1 parent cd18f80 commit 858c064
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/picocli/CommandLineTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3197,10 +3197,11 @@ class App {
@Parameters
private List<String> files;
}
setTraceLevel("OFF");
setTraceLevel("INFO");
File file = findFile("/argfile5-escapedAtValues.txt");
App app = CommandLine.populateCommand(new App(), "aa", "@" + file.getAbsolutePath(), "bb");
assertEquals(Arrays.asList("aa", "@val1", "@argfile5-escapedAtValues.txt", "bb"), app.files);
assertTrue(this.systemErrRule.getLog().contains("Not expanding @-escaped argument"));
}

@Test
Expand Down

0 comments on commit 858c064

Please sign in to comment.