Package org.ocpsoft.rewrite.instance

Examples of org.ocpsoft.rewrite.instance.DefaultValidatorProvider


public class DefaultValidatorProviderTest
{
   @Test
   public void testCreateRewriteValidator()
   {
      Validator<?> validator = new DefaultValidatorProvider().getByValidatorType(TestValidator.class);
      assertNotNull(validator);
      assertTrue(validator instanceof TestValidator);
   }
View Full Code Here


   }

   @Test
   public void testUnsupportedType()
   {
      Validator<?> validator = new DefaultValidatorProvider().getByValidatorType(BigDecimal.class);
      assertNull(validator);
   }
View Full Code Here

   }

   @Test
   public void testSomeIdentifier()
   {
      Validator<?> validator = new DefaultValidatorProvider().getByValidatorId("something");
      assertNull(validator);
   }
View Full Code Here

   }

   @Test
   public void testByTargetType()
   {
      Validator<?> validator = new DefaultValidatorProvider().getByTargetType(Integer.class);
      assertNull(validator);
   }
View Full Code Here

TOP

Related Classes of org.ocpsoft.rewrite.instance.DefaultValidatorProvider

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.