Class BeanValidationTest

  • All Implemented Interfaces:
    org.testng.IHookable, org.testng.ITestNGListener

    public class BeanValidationTest
    extends AppTestBase
    • Constructor Detail

      • BeanValidationTest

        public BeanValidationTest()
    • Method Detail

      • buildApp

        @Deployment(testable=false)
        public static org.jboss.shrinkwrap.api.spec.WebArchive buildApp()
      • notEmptyStringTest

        public void notEmptyStringTest​(String format)
      • notEmptyListTest

        public void notEmptyListTest​(String format)
      • notEmptyMapTest

        public void notEmptyMapTest​(String format)
      • notBlankStringTest

        public void notBlankStringTest​(String format)
      • sizedStringTest

        public void sizedStringTest​(String format)
      • sizedListTest

        public void sizedListTest​(String format)
      • sizedMapTest

        public void sizedMapTest​(String format)
      • maxDecimalInclusiveTest

        public void maxDecimalInclusiveTest​(String format)
      • maxDecimalExclusiveTest

        public void maxDecimalExclusiveTest​(String format)
      • minDecimalInclusiveTest

        public void minDecimalInclusiveTest​(String format)
      • minDecimalExclusiveTest

        public void minDecimalExclusiveTest​(String format)
      • maxIntTest

        public void maxIntTest​(String format)
      • minIntTest

        public void minIntTest​(String format)
      • negativeIntTest

        public void negativeIntTest​(String format)
      • negativeOrZeroIntTest

        public void negativeOrZeroIntTest​(String format)
      • positiveIntTest

        public void positiveIntTest​(String format)
      • positiveOrZeroIntTest

        public void positiveOrZeroIntTest​(String format)
      • overridenBySchemaAnnotationTest

        public void overridenBySchemaAnnotationTest​(String format)
      • nonDefaultGroupTest

        public void nonDefaultGroupTest​(String format)
      • defaultAndOtherGroupsTest

        public void defaultAndOtherGroupsTest​(String format)
      • parameterTest

        public void parameterTest​(String format)
      • assertProperty

        public static void assertProperty​(io.restassured.response.ValidatableResponse vr,
                                          String propertyName,
                                          org.hamcrest.Matcher<?> matcher)
        Asserts that a property from the test schema matches the given matcher
        Parameters:
        vr - the response
        propertyName - the property to test
        matcher - the matcher to assert