@SpecVersion(spec="beanvalidation",
version="1.1.0")
public class ValidateParametersTest
extends org.jboss.arquillian.testng.Arquillian
| Constructor and Description |
|---|
ValidateParametersTest() |
| 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 |
testNullPassedForGroupsCausesException() |
void |
testNullPassedForMethodCausesException() |
void |
testNullPassedForObjectCausesException() |
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="a"),@SpecAssertion(section="5.1.2",id="b"),@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="b"),@SpecAssertion(section="5.2",id="f"),@SpecAssertion(section="5.2",id="j")})
public void testOneViolationFromCrossParameterConstraint()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="b")
public void testTwoViolations()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="b")
public void testTwoViolationsOnSameParameter()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="b")
public void testTwoConstraintsOfSameType()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="b")
public void testCrossParameterConstraintGivenSeveralTimes()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="b")
public void testNoViolations()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="b")
public void testValidationWithGroup()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="b")
public void testCrossParameterConstraintValidationWithGroup()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="b")
public void testValidationWithSeveralGroups()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="a")
public void testUnexpectedType()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="c")
public void testNullPassedForObjectCausesException()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="c")
public void testNullPassedForMethodCausesException()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="c")
public void testNullPassedForParameterValuesCausesException()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="c")
public void testNullPassedForGroupsCausesException()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="c")
public void testNullPassedAsSingleGroupCausesException()
throws Exception
ExceptionCopyright © 2008–2014. All rights reserved.