Package org.hibernate.beanvalidation.tck.tests.constraints.inheritance.method.validdeclarations.model

Examples of org.hibernate.beanvalidation.tck.tests.constraints.inheritance.method.validdeclarations.model.CalendarEvent


  @Test
  @SpecAssertion(section = "4.5.5", id = "c")
  public void testReturnValueMarkedAsCascadedInInterfaceImplementation() throws Exception {
    Object object = new CalendarServiceImplementation();
    Method method = getCreateEventWithDurationMethod( object );
    Object returnValue = new CalendarEvent();

    Set<ConstraintViolation<Object>> violations = executableValidator.validateReturnValue(
        object,
        method,
        returnValue
View Full Code Here


  @Test
  @SpecAssertion(section = "4.5.5", id = "c")
  public void testReturnValueMarkedAsCascadedInSubClass() throws Exception {
    Object object = new CalendarServiceSubClass();
    Method method = getCreateEventWithDurationMethod( object );
    Object returnValue = new CalendarEvent();

    Set<ConstraintViolation<Object>> violations = executableValidator.validateReturnValue(
        object,
        method,
        returnValue
View Full Code Here

  @Test
  @SpecAssertion(section = "4.5.5", id = "f")
  public void testParameterConstraintMarkedAsCascadedAtConstructorInSubClass() throws Exception {
    Constructor<?> constructor = CalendarServiceSubClass.class.getConstructor( CalendarEvent.class );
    Object[] parameterValues = new Object[] { new CalendarEvent() };

    Set<ConstraintViolation<Object>> violations = executableValidator.validateConstructorParameters(
        constructor,
        parameterValues
    );
View Full Code Here

  @Test
  @SpecAssertion(section = "4.5.5", id = "d")
  public void testReturnValueMarkedAsCascadedInParallelInterfaces() throws Exception {
    Object object = new ImplementationOfParallelInterfacesMarkingReturnValueAsCascaded();
    Method method = getCreateEventMethod( object );
    Object returnValue = new CalendarEvent();

    Set<ConstraintViolation<Object>> violations = executableValidator.validateReturnValue(
        object,
        method,
        returnValue
View Full Code Here

public class ImplementationOfParallelInterfacesMarkingReturnValueAsCascaded
    implements InterfaceMarkingReturnValueAsCascaded, AnotherInterfaceMarkingReturnValueAsCascaded {

  @Override
  public CalendarEvent createEvent(Date start, Date end) {
    return new CalendarEvent();
  }
View Full Code Here

TOP

Related Classes of org.hibernate.beanvalidation.tck.tests.constraints.inheritance.method.validdeclarations.model.CalendarEvent

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.