org.hibernate.jsr303.tck.tests.constraints.application
Class ValidationRequirementTest

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

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

Author:
Hardy Ferentschik

Constructor Summary
ValidationRequirementTest()
           
 
Method Summary
 void testClassLevelConstraints()
           
 void testConstraintAppliedOnFieldAndProperty()
           
 void testFieldAccess()
           
 void testFieldAndPropertyVisibilityIsNotConstrained()
           
 void testIgnoreStaticFieldsAndProperties()
           
 void testPropertyAccess()
           
 
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

ValidationRequirementTest

public ValidationRequirementTest()
Method Detail

testClassLevelConstraints

@SpecAssertions(value={@SpecAssertion(section="3.1",id="c"),@SpecAssertion(section="3.1",id="d"),@SpecAssertion(section="3.1.1",id="a")})
public void testClassLevelConstraints()

testFieldAccess

@SpecAssertions(value={@SpecAssertion(section="3.1",id="d"),@SpecAssertion(section="3.1.2",id="a"),@SpecAssertion(section="3.1.2",id="c")})
public void testFieldAccess()

testPropertyAccess

@SpecAssertions(value={@SpecAssertion(section="3.1",id="d"),@SpecAssertion(section="3.1.2",id="a"),@SpecAssertion(section="3.1.2",id="d")})
public void testPropertyAccess()

testConstraintAppliedOnFieldAndProperty

@SpecAssertions(value={@SpecAssertion(section="3.1.2",id="a"),@SpecAssertion(section="3.1.2",id="b")})
public void testConstraintAppliedOnFieldAndProperty()

testIgnoreStaticFieldsAndProperties

public void testIgnoreStaticFieldsAndProperties()

testFieldAndPropertyVisibilityIsNotConstrained

@SpecAssertion(section="3.1.2",
               id="e")
public void testFieldAndPropertyVisibilityIsNotConstrained()


Copyright © 2008-2011. All Rights Reserved.