@SpecVersion(spec="beanvalidation",
version="1.1.0")
public class ValidateConstructorReturnValueTest
extends org.jboss.arquillian.testng.Arquillian
| Constructor and Description |
|---|
ValidateConstructorReturnValueTest() |
| Modifier and Type | Method and Description |
|---|---|
static org.jboss.shrinkwrap.api.spec.WebArchive |
createTestArchive() |
void |
setupValidator() |
void |
testNoViolations() |
void |
testNullPassedAsSingleGroupCausesException() |
void |
testNullPassedForConstructorCausesException() |
void |
testNullPassedForGroupsCausesException() |
void |
testNullPassedForReturnValueCausesException() |
void |
testOneViolation() |
void |
testOneViolationForCascadedValidation() |
void |
testTwoConstraintsOfSameType() |
void |
testTwoViolations() |
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="j"),@SpecAssertion(section="5.1.2",id="k"),@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@SpecAssertion(section="5.1.2",
id="k")
public void testTwoViolations()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="k")
public void testTwoConstraintsOfSameType()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="k")
public void testNoViolations()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="k")
public void testValidationWithGroup()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="k")
public void testValidationWithSeveralGroups()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="j")
public void testUnexpectedType()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="l")
public void testNullPassedForConstructorCausesException()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="l")
public void testNullPassedForReturnValueCausesException()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="l")
public void testNullPassedForGroupsCausesException()
throws Exception
Exception@SpecAssertion(section="5.1.2",
id="l")
public void testNullPassedAsSingleGroupCausesException()
throws Exception
ExceptionCopyright © 2008–2014. All rights reserved.