org.hibernate.beanvalidation.tck.tests.messageinterpolation
Class MessageInterpolationTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.hibernate.beanvalidation.tck.tests.messageinterpolation.MessageInterpolationTest
- All Implemented Interfaces:
- org.testng.IHookable, org.testng.ITestNGListener
@SpecVersion(spec="beanvalidation",
version="1.1.0")
public class MessageInterpolationTest- extends org.jboss.arquillian.testng.Arquillian
- Author:
- Hardy Ferentschik, Gunnar Morling
| Fields inherited from class org.jboss.arquillian.testng.Arquillian |
ARQUILLIAN_DATA_PROVIDER |
| Methods inherited from class org.jboss.arquillian.testng.Arquillian |
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageInterpolationTest
public MessageInterpolationTest()
createTestArchive
@Deployment
public static org.jboss.shrinkwrap.api.spec.WebArchive createTestArchive()
testDefaultMessageInterpolatorIsNotNull
@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()
testSuccessfulInterpolationOfValidationMessagesValue
@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()
testRecursiveMessageInterpolation
@SpecAssertion(section="5.3.1.1",
id="b")
public void testRecursiveMessageInterpolation()
testMessagesCanBeOverriddenAtConstraintLevel
@SpecAssertion(section="5.3.1",
id="d")
public void testMessagesCanBeOverriddenAtConstraintLevel()
testEscapedCharactersAreConsideredAsLiterals
@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()
testUnSuccessfulInterpolation
@SpecAssertion(section="5.3.1.1",
id="a")
public void testUnSuccessfulInterpolation()
testUnknownTokenInterpolation
@SpecAssertion(section="5.3.1.1",
id="a")
public void testUnknownTokenInterpolation()
testParametersAreExtractedFromBeanValidationProviderBundle
@SpecAssertion(section="5.3.1.1",
id="c")
public void testParametersAreExtractedFromBeanValidationProviderBundle()
testConstraintAttributeValuesAreInterpolated
@SpecAssertion(section="5.3.1.1",
id="f")
public void testConstraintAttributeValuesAreInterpolated()
testParameterInterpolationHasPrecedenceOverExpressionEvaluation
@SpecAssertion(section="5.3.1.1",
id="f")
public void testParameterInterpolationHasPrecedenceOverExpressionEvaluation()
testElExpressionsAreInterpolated
@SpecAssertion(section="5.3.1.1",
id="g")
public void testElExpressionsAreInterpolated()
testMessageInterpolationWithLocale
@SpecAssertion(section="5.3.1.2",
id="a")
public void testMessageInterpolationWithLocale()
testIfNoLocaleIsSpecifiedTheDefaultLocaleIsAssumed
@SpecAssertion(section="5.3.1.2",
id="b")
public void testIfNoLocaleIsSpecifiedTheDefaultLocaleIsAssumed()
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 testCorrectValuesArePassedToInterpolateForPropertyConstraint()
testCorrectValuesArePassedToInterpolateForClassLevelConstraint
@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()
testExceptionDuringMessageInterpolationIsWrappedIntoValidationException
@SpecAssertion(section="5.3.2",
id="g")
public void testExceptionDuringMessageInterpolationIsWrappedIntoValidationException()
Copyright © 2008-2013. All Rights Reserved.