Package javax.validation

Examples of javax.validation.ConstraintValidatorFactory


        .addAsWebInfResource( EmptyAsset.INSTANCE, "beans.xml" );
  }

  @Test
  public void testSuccessfulInjectionIntoConstraintValidator() {
    ConstraintValidatorFactory constraintValidatorFactory = validatorFactory.getConstraintValidatorFactory();
    PingableValidator validator = constraintValidatorFactory.getInstance( PingableValidator.class );

    assertNotNull( "Constraint Validator could not be created", validator );
    assertNotNull( "The ping service did not get injected", validator.getPingService() );
  }
View Full Code Here

TOP

Related Classes of javax.validation.ConstraintValidatorFactory

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.