Package org.hibernate.beanvalidation.tck.tests.methodvalidation.model

Examples of org.hibernate.beanvalidation.tck.tests.methodvalidation.model.LineItem


  @Test
  @SpecAssertion(section = "5.1.2", id = "m")
  public void testValidateParametersYieldsConstraintViolationIfValidateExecutableIsSetToNONEOnTypeLevel()
      throws Exception {
    Object object = new LineItem( null );
    String methodName = "setName";
    Method method = LineItem.class.getMethod( methodName, String.class );
    Object[] parameterValues = new Object[] { null };

    Set<ConstraintViolation<Object>> violations = executableValidator.validateParameters(
View Full Code Here


  @Test
  @SpecAssertion(section = "5.1.2", id = "m")
  public void testValidateReturnValueYieldsConstraintViolationIfValidateExecutableIsSetToNONEOnTypeLevel()
      throws Exception {
    Object object = new LineItem( null );
    String methodName = "setName";
    Method method = LineItem.class.getMethod( methodName, String.class );
    Object returnValue = null;

    Set<ConstraintViolation<Object>> violations = executableValidator.validateReturnValue(
View Full Code Here

  @Test
  @SpecAssertion(section = "5.1.2", id = "m")
  public void testValidateConstructorReturnValueYieldsConstraintViolationIfValidateExecutableIsSetToNONEOnTypeLevel()
      throws Exception {
    Constructor<LineItem> constructor = LineItem.class.getConstructor( String.class );
    LineItem createdObject = new LineItem( null );

    Set<ConstraintViolation<LineItem>> violations = executableValidator.validateConstructorReturnValue(
        constructor,
        createdObject
    );
View Full Code Here

TOP

Related Classes of org.hibernate.beanvalidation.tck.tests.methodvalidation.model.LineItem

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.