MCPcopy Create free account
hub / github.com/cbeust/jcommander / testMain

Method testMain

src/test/java/test/QuotedMainTest.java:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 String quoted = "\" \"";
17
18 @Test
19 public void testMain() {
20 JCommander jc = new JCommander(this);
21 jc.parse(quoted);
22 Assert.assertEquals(args.size(), 1);
23 Assert.assertEquals(args.get(0), " ");
24 }
25
26 public static void main(String[] args) {
27 new QuotedMainTest().testMain();

Callers 1

mainMethod · 0.80

Calls 2

parseMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected