Class BeanValidationTest
- java.lang.Object
-
- org.jboss.arquillian.testng.Arquillian
-
- org.eclipse.microprofile.openapi.tck.AppTestBase
-
- org.eclipse.microprofile.openapi.tck.beanvalidation.BeanValidationTest
-
- All Implemented Interfaces:
org.testng.IHookable,org.testng.ITestNGListener
public class BeanValidationTest extends AppTestBase
-
-
Field Summary
-
Fields inherited from class org.eclipse.microprofile.openapi.tck.AppTestBase
YAML_FILTER
-
-
Constructor Summary
Constructors Constructor Description BeanValidationTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidassertProperty(io.restassured.response.ValidatableResponse vr, String propertyName, org.hamcrest.Matcher<?> matcher)Asserts that a property from the test schema matches the given matcherstatic org.jboss.shrinkwrap.api.spec.WebArchivebuildApp()voiddefaultAndOtherGroupsTest(String format)voidmaxDecimalExclusiveTest(String format)voidmaxDecimalInclusiveTest(String format)voidmaxIntTest(String format)voidminDecimalExclusiveTest(String format)voidminDecimalInclusiveTest(String format)voidminIntTest(String format)voidnegativeIntTest(String format)voidnegativeOrZeroIntTest(String format)voidnonDefaultGroupTest(String format)voidnotBlankStringTest(String format)voidnotEmptyListTest(String format)voidnotEmptyMapTest(String format)voidnotEmptyStringTest(String format)voidoverridenBySchemaAnnotationTest(String format)voidparameterTest(String format)voidpositiveIntTest(String format)voidpositiveOrZeroIntTest(String format)voidsizedListTest(String format)voidsizedMapTest(String format)voidsizedStringTest(String format)-
Methods inherited from class org.eclipse.microprofile.openapi.tck.AppTestBase
callEndpoint, configureRestAssured, dereference, dereference, provide
-
-
-
-
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 responsepropertyName- the property to testmatcher- the matcher to assert
-
-