Package org.apache.oodt.cas.cli.option.validator

Examples of org.apache.oodt.cas.cli.option.validator.NoRestrictionsCmdLineOptionValidator


public class TestNoRestrictionsCmdLineOptionValidator extends TestCase {

   public void testValidate() {
      // Test pass for null option instance.
      assertEquals(Result.Grade.PASS,
            new NoRestrictionsCmdLineOptionValidator().validate(null)
                  .getGrade());

      // Test pass for not null option instance.
      CmdLineOptionInstance instance = createOptionInstance(
            createSimpleOption("test", false), "bogus");
      assertEquals(Result.Grade.PASS,
            new NoRestrictionsCmdLineOptionValidator().validate(instance)
                  .getGrade());
   }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.cli.option.validator.NoRestrictionsCmdLineOptionValidator

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.