use of org.apache.jena.cmd.ArgDecl in project jena by apache.
the class TestCmdLine method test_Flag3.
@Test
public void test_Flag3() {
String[] args = new String[] { "-a", "filename" };
CmdLineArgs cl = new CmdLineArgs(args);
ArgDecl argA = new ArgDecl(false, "-a");
cl.add(argA);
cl.process();
assertTrue("No -a argument found", cl.contains(argA));
}
use of org.apache.jena.cmd.ArgDecl in project jena by apache.
the class TestCmdLine method test_Flag1.
@Test
public void test_Flag1() {
String[] args = new String[] { "" };
CmdLineArgs cl = new CmdLineArgs(args);
ArgDecl argA = new ArgDecl(false, "-a");
cl.add(argA);
cl.process();
assertTrue("-a argument found", !cl.contains(argA));
}
Aggregations