@SpecVersion(spec="beanvalidation",
version="1.1.0")
public class ValidateConstructorParametersTest
extends org.jboss.arquillian.testng.Arquillian
| Constructor and Description |
|---|
ValidateConstructorParametersTest() |
| Modifier and Type | Method and Description |
|---|---|
static org.jboss.shrinkwrap.api.spec.WebArchive |
createTestArchive() |
void |
setupValidator() |
void |
testCrossParameterConstraintGivenSeveralTimes() |
void |
testCrossParameterConstraintValidationWithGroup() |
void |
testNoViolations() |
void |
testNullPassedAsSingleGroupCausesException() |
void |
testNullPassedForConstructorCausesException() |
void |
testNullPassedForGroupsCausesException() |
void |
testNullPassedForParameterValuesCausesException() |
void |
testOneViolation() |
void |
testOneViolationForCascadedValidation() |
void |
testOneViolationFromCrossParameterConstraint() |
void |
testTwoConstraintsOfSameType() |
void |
testTwoViolations() |
void |
testTwoViolationsOnSameParameter() |
void |
testUnexpectedType() |
void |
testValidationWithGroup() |
void |
testValidationWithSeveralGroups() |
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
public void setupValidator()
@SpecAssertions(value={@SpecAssertion(section="5.1.2",id="g"),@SpecAssertion(section="5.1.2",id="h"),@SpecAssertion(section="5.2",id="d"),@SpecAssertion(section="5.2",id="e"),@SpecAssertion(section="5.2",id="f"),@SpecAssertion(section="5.2",id="g"),@SpecAssertion(section="5.2",id="h"),@SpecAssertion(section="5.2",id="i")})
public void testOneViolation()
throws Exception
Exception@SpecAssertions(value={@SpecAssertion(section="5.1.2",id="h"),@SpecAssertion(section="5.2",id="f"),@SpecAssertion(section="5.2",id="j")})
public void testOneViolationFromCrossParameterConstraint()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="h")
public void testTwoViolations()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="h")
public void testTwoViolationsOnSameParameter()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="h")
public void testTwoConstraintsOfSameType()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="h")
public void testCrossParameterConstraintGivenSeveralTimes()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="h")
public void testNoViolations()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="h")
public void testValidationWithGroup()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="h")
public void testCrossParameterConstraintValidationWithGroup()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="h")
public void testValidationWithSeveralGroups()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="g")
public void testUnexpectedType()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="i")
public void testNullPassedForConstructorCausesException()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="i")
public void testNullPassedForParameterValuesCausesException()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="i")
public void testNullPassedForGroupsCausesException()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="i")
public void testNullPassedAsSingleGroupCausesException()
throws Exception
ExceptionCopyright © 2008–2014. All rights reserved.