org.hibernate.beanvalidation.tck.tests.messageinterpolation
Class MessageInterpolationTest

java.lang.Object
  extended by org.jboss.arquillian.testng.Arquillian
      extended by 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

Nested Class Summary
 class MessageInterpolationTest.DummyEntity
           
 class MessageInterpolationTest.Person
           
 class MessageInterpolationTest.TestContext
           
static interface MessageInterpolationTest.ValidTestBean
           
 
Field Summary
 
Fields inherited from class org.jboss.arquillian.testng.Arquillian
ARQUILLIAN_DATA_PROVIDER
 
Constructor Summary
MessageInterpolationTest()
           
 
Method Summary
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()
           
 
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
 

Constructor Detail

MessageInterpolationTest

public MessageInterpolationTest()
Method Detail

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.