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

java.lang.Object
  extended by org.jboss.testharness.AbstractTest
      extended by org.hibernate.jsr303.tck.tests.messageinterpolation.MessageInterpolationTest
All Implemented Interfaces:
org.testng.IHookable

@Artifact(artifactType=JSR303)
@Classes(value={TestUtil.class,TestUtil.PathImpl.class,TestUtil.NodeImpl.class})
public class MessageInterpolationTest
extends org.jboss.testharness.AbstractTest

Author:
Hardy Ferentschik

Nested Class Summary
 class MessageInterpolationTest.DummyEntity
           
 class MessageInterpolationTest.Person
           
 class MessageInterpolationTest.TestContext
           
 
Constructor Summary
MessageInterpolationTest()
           
 
Method Summary
 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.testharness.AbstractTest
afterClass, afterMethod, afterSuite, beforeClass, beforeMethod, beforeSuite, getContextPath, getCurrentConfiguration, handleDeploymentFailure, isInContainer, isThrowablePresent, postCreate, run, setInContainer
 
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

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-2011. All Rights Reserved.