()
| 69 | } |
| 70 | |
| 71 | @Test |
| 72 | public void testRegister() { |
| 73 | String[] args = { "a", "b", "c" }; |
| 74 | CmdLineParser p = new CmdLineParser(args); |
| 75 | p.registerOpt('a', "alpha", CmdLineParser.ValueExpected.NOT_ACCEPTED); |
| 76 | p.registerOpt('b', "beta", CmdLineParser.ValueExpected.REQUIRED); |
| 77 | p.registerOpt('c', null, CmdLineParser.ValueExpected.OPTIONAL); |
| 78 | } |
| 79 | |
| 80 | @Test |
| 81 | public void testParseNoArgs() throws ParseException { |
nothing calls this directly
no test coverage detected