Examples of ConstructorDescriptor


Examples of javax.validation.metadata.ConstructorDescriptor

  }

  @Test
  @SpecAssertion(section = "6.7", id = "d")
  public void testGetUnconstrainedReturnValueDescriptorForConstructor() {
    ConstructorDescriptor descriptor = Executables.cascadedParameterConstructor();
    assertNotNull(
        descriptor.getReturnValueDescriptor(),
        "Return value descriptor should not be null"
    );
  }
View Full Code Here

Examples of javax.validation.metadata.ConstructorDescriptor

  }

  @Test
  @SpecAssertion(section = "6.7", id = "e")
  public void testAreParametersConstrainedForConstrainedConstructor() {
    ConstructorDescriptor descriptor = Executables.parameterConstrainedConstructor();
    assertTrue(
        descriptor.hasConstrainedParameters(),
        "Should be constrained on parameters"
    );
  }
View Full Code Here

Examples of javax.validation.metadata.ConstructorDescriptor

  }

  @Test
  @SpecAssertion(section = "6.7", id = "e")
  public void testAreParametersConstrainedForCascadedConstructor() {
    ConstructorDescriptor descriptor = Executables.cascadedParameterConstructor();
    assertTrue(
        descriptor.hasConstrainedParameters(),
        "Should be constrained on parameters"
    );
  }
View Full Code Here

Examples of javax.validation.metadata.ConstructorDescriptor

  }

  @Test
  @SpecAssertion(section = "6.7", id = "e")
  public void testAreParametersConstrainedForCrossParameterConstrainedConstructor() {
    ConstructorDescriptor descriptor = Executables.crossParameterConstrainedConstructor();
    assertTrue(
        descriptor.hasConstrainedParameters(),
        "Should be constrained on parameters"
    );
  }
View Full Code Here

Examples of javax.validation.metadata.ConstructorDescriptor

  }

  @Test
  @SpecAssertion(section = "6.7", id = "e")
  public void testAreParametersConstrainedForNotConstrainedConstructor() {
    ConstructorDescriptor descriptor = Executables.cascadedReturnValueConstructor();
    assertFalse(
        descriptor.hasConstrainedParameters(),
        "Should not be constrained on parameters"
    );
  }
View Full Code Here

Examples of javax.validation.metadata.ConstructorDescriptor

  }

  @Test
  @SpecAssertion(section = "6.7", id = "e")
  public void testAreParametersConstrainedForParameterlessConstructor() {
    ConstructorDescriptor descriptor = Executables.returnValueConstrainedConstructor();
    assertFalse(
        descriptor.hasConstrainedParameters(),
        "Should not be constrained on parameters"
    );
  }
View Full Code Here

Examples of javax.validation.metadata.ConstructorDescriptor

  }

  @Test
  @SpecAssertion(section = "6.7", id = "f")
  public void testIsReturnValueConstrainedForConstrainedConstructor() {
    ConstructorDescriptor descriptor = Executables.returnValueConstrainedConstructor();
    assertTrue(
        descriptor.hasConstrainedReturnValue(),
        "Should be constrained on return value"
    );
  }
View Full Code Here

Examples of javax.validation.metadata.ConstructorDescriptor

  }

  @Test
  @SpecAssertion(section = "6.7", id = "f")
  public void testIsReturnValueConstrainedForCascadedConstructor() {
    ConstructorDescriptor descriptor = Executables.cascadedReturnValueConstructor();
    assertTrue(
        descriptor.hasConstrainedReturnValue(),
        "Should be constrained on return value"
    );
  }
View Full Code Here

Examples of javax.validation.metadata.ConstructorDescriptor

  }

  @Test
  @SpecAssertion(section = "6.7", id = "f")
  public void testIsReturnValueConstrainedForNotConstrainedConstructor() {
    ConstructorDescriptor descriptor = Executables.cascadedParameterConstructor();
    assertFalse(
        descriptor.hasConstrainedReturnValue(),
        "Should not be constrained on return value"
    );
  }
View Full Code Here

Examples of javax.validation.metadata.ConstructorDescriptor

  }

  @Test
  @SpecAssertion(section = "6.7", id = "g")
  public void testHasConstraintsForConstructor() {
    ConstructorDescriptor parameterConstrainedDescriptor = Executables.parameterConstrainedConstructor();
    assertFalse(
        parameterConstrainedDescriptor.hasConstraints(),
        "Should have no constraints"
    );

    ConstructorDescriptor returnValueConstrainedDescriptor = Executables.returnValueConstrainedConstructor();
    assertFalse(
        returnValueConstrainedDescriptor.hasConstraints(),
        "Should have no constraints"
    );
    ConstructorDescriptor crossParameterConstrainedDescriptor = Executables.crossParameterConstrainedConstructor();
    assertFalse(
        crossParameterConstrainedDescriptor.hasConstraints(),
        "Should have no constraints"
    );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.