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

Nested Class Summary
 class MessageInterpolationTest.DummyEntity
           
 class MessageInterpolationTest.Person
           
 class MessageInterpolationTest.TestContext
           
 
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 testDefaultMessageInterpolatorIsNotNull()
           
 void testIfNoLocaleIsSpecifiedTheDefaultLocaleIsAssumed()
           
 void testLiteralCurlyBraces()
           
 void testMessageInterpolationWithLocale()
           
 void testMessagesCanBeOverriddenAtConstraintLevel()
           
 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

@SpecAssertion(section="4.3.1",
               id="a")
public void testDefaultMessageInterpolatorIsNotNull()

testSuccessfulInterpolationOfValidationMessagesValue

@SpecAssertions(value={@SpecAssertion(section="4.3.1",id="e"),@SpecAssertion(section="4.3.1.1",id="a")})
public void testSuccessfulInterpolationOfValidationMessagesValue()

testRecursiveMessageInterpolation

@SpecAssertion(section="4.3.1.1",
               id="b")
public void testRecursiveMessageInterpolation()

testMessagesCanBeOverriddenAtConstraintLevel

@SpecAssertion(section="4.3.1",
               id="d")
public void testMessagesCanBeOverriddenAtConstraintLevel()

testLiteralCurlyBraces

@SpecAssertions(value={@SpecAssertion(section="4.3.1",id="f"),@SpecAssertion(section="4.3.1",id="g"),@SpecAssertion(section="4.3.1",id="h")})
public void testLiteralCurlyBraces()

testUnSuccessfulInterpolation

@SpecAssertion(section="4.3.1.1",
               id="a")
public void testUnSuccessfulInterpolation()

testUnknownTokenInterpolation

@SpecAssertion(section="4.3.1.1",
               id="a")
public void testUnknownTokenInterpolation()

testParametersAreExtractedFromBeanValidationProviderBundle

@SpecAssertion(section="4.3.1.1",
               id="c")
public void testParametersAreExtractedFromBeanValidationProviderBundle()

testConstraintAttributeValuesAreInterpolated

@SpecAssertion(section="4.3.1.1",
               id="g")
public void testConstraintAttributeValuesAreInterpolated()

testMessageInterpolationWithLocale

@SpecAssertion(section="4.3.1.1",
               id="h")
public void testMessageInterpolationWithLocale()

testIfNoLocaleIsSpecifiedTheDefaultLocaleIsAssumed

@SpecAssertion(section="4.3.1.1",
               id="i")
public void testIfNoLocaleIsSpecifiedTheDefaultLocaleIsAssumed()


Copyright © 2008-2012. All Rights Reserved.