MCPcopy Create free account
hub / github.com/apache/pig / testRegister

Method testRegister

test/org/apache/pig/test/TestCmdLineParser.java:71–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

registerOptMethod · 0.95

Tested by

no test coverage detected