@SpecVersion(spec="beanvalidation",
version="1.1.0")
public class MessageInterpolationTest
extends org.jboss.arquillian.testng.Arquillian
| Modifier and Type | Class and Description |
|---|---|
class |
MessageInterpolationTest.DummyEntity |
class |
MessageInterpolationTest.Person |
class |
MessageInterpolationTest.TestContext |
static interface |
MessageInterpolationTest.ValidTestBean |
| Constructor and Description |
|---|
MessageInterpolationTest() |
| Modifier and Type | Method and Description |
|---|---|
static org.jboss.shrinkwrap.api.spec.WebArchive |
createTestArchive() |
void |
testConstraintAttributeValuesAreInterpolated() |
void |
testCorrectValuesArePassedToInterpolateForClassLevelConstraint() |
void |
testCorrectValuesArePassedToInterpolateForPropertyConstraint() |
void |
testDefaultMessageInterpolatorIsNotNull() |
void |
testElExpressionsAreInterpolated() |
void |
testEscapedCharactersAreConsideredAsLiterals() |
void |
testExceptionDuringMessageInterpolationIsWrappedIntoValidationException() |
void |
testIfNoLocaleIsSpecifiedTheDefaultLocaleIsAssumed() |
void |
testMessageInterpolationWithLocale() |
void |
testMessagesCanBeOverriddenAtConstraintLevel() |
void |
testParameterInterpolationHasPrecedenceOverExpressionEvaluation() |
void |
testParametersAreExtractedFromBeanValidationProviderBundle() |
void |
testRecursiveMessageInterpolation() |
void |
testSuccessfulInterpolationOfValidationMessagesValue() |
void |
testUnknownTokenInterpolation() |
void |
testUnSuccessfulInterpolation() |
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
@SpecAssertions(value={@SpecAssertion(section="5.3.1",id="a"),@SpecAssertion(section="5.3.2",id="f"),@SpecAssertion(section="5.5.3",id="a")})
public void testDefaultMessageInterpolatorIsNotNull()
@SpecAssertions(value={@SpecAssertion(section="5.3.1",id="e"),@SpecAssertion(section="5.3.1.1",id="a"),@SpecAssertion(section="5.3.2",id="f"),@SpecAssertion(section="5.5.3",id="a")})
public void testSuccessfulInterpolationOfValidationMessagesValue()
@SpecAssertion(section="5.3.1.1",
id="b")
public void testRecursiveMessageInterpolation()
@SpecAssertion(section="5.3.1",
id="d")
public void testMessagesCanBeOverriddenAtConstraintLevel()
@SpecAssertions(value={@SpecAssertion(section="5.3.1",id="f"),@SpecAssertion(section="5.3.1",id="g"),@SpecAssertion(section="5.3.1",id="h"),@SpecAssertion(section="5.3.1",id="i")})
public void testEscapedCharactersAreConsideredAsLiterals()
@SpecAssertion(section="5.3.1.1",
id="a")
public void testUnSuccessfulInterpolation()
@SpecAssertion(section="5.3.1.1",
id="a")
public void testUnknownTokenInterpolation()
@SpecAssertion(section="5.3.1.1",
id="c")
public void testParametersAreExtractedFromBeanValidationProviderBundle()
@SpecAssertion(section="5.3.1.1",
id="f")
public void testConstraintAttributeValuesAreInterpolated()
@SpecAssertion(section="5.3.1.1",
id="f")
public void testParameterInterpolationHasPrecedenceOverExpressionEvaluation()
@SpecAssertion(section="5.3.1.1",
id="g")
public void testElExpressionsAreInterpolated()
@SpecAssertion(section="5.3.1.2",
id="a")
public void testMessageInterpolationWithLocale()
@SpecAssertion(section="5.3.1.2",
id="b")
public void testIfNoLocaleIsSpecifiedTheDefaultLocaleIsAssumed()
@SpecAssertions(value={@SpecAssertion(section="5.3.2",id="a"),@SpecAssertion(section="5.3.2",id="b"),@SpecAssertion(section="5.3.2",id="c")})
public void testCorrectValuesArePassedToInterpolateForPropertyConstraint()
@SpecAssertions(value={@SpecAssertion(section="5.3.2",id="a"),@SpecAssertion(section="5.3.2",id="b"),@SpecAssertion(section="5.3.2",id="c")})
public void testCorrectValuesArePassedToInterpolateForClassLevelConstraint()
@SpecAssertion(section="5.3.2",
id="g")
public void testExceptionDuringMessageInterpolationIsWrappedIntoValidationException()
Copyright © 2008–2014. All rights reserved.