Package org.bitbucket.bradleysmithllc.java_cl_parser.support

Examples of org.bitbucket.bradleysmithllc.java_cl_parser.support.ArgTool


public class ArgTypesTest
{
  @Test
  public void argSupplied() throws Throwable
  {
    ArgTool basicTest = new ArgTool(true, true, true);
    CommonsCLILauncher.mainWithInstance(basicTest, new String[]{"-tc", "-flag1", "-flag2"});
    Assert.assertTrue("Flags don't match expected state: " + basicTest.state(), basicTest.isSet());
  }
View Full Code Here


  }

  @Test
  public void argNotSupplied() throws Throwable
  {
    ArgTool basicTest = new ArgTool(true, false, false);
    CommonsCLILauncher.mainWithInstance(basicTest, new String[]{});
    Assert.assertTrue("Flags don't match expected state: " + basicTest.state(), basicTest.isSet());
  }
View Full Code Here

TOP

Related Classes of org.bitbucket.bradleysmithllc.java_cl_parser.support.ArgTool

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.