org.hibernate.test.annotations.xml.ejb3
Class Ejb3XmlManyToOneTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.test.annotations.xml.ejb3.Ejb3XmlManyToOneTest

public class Ejb3XmlManyToOneTest
extends BaseUnitTestCase


Field Summary
protected  JPAOverridenAnnotationReader reader
           
 
Constructor Summary
Ejb3XmlManyToOneTest()
           
 
Method Summary
protected  void assertAnnotationNotPresent(Class<? extends Annotation> annotationType)
           
protected  void assertAnnotationPresent(Class<? extends Annotation> annotationType)
           
protected  AnnotatedElement getAnnotatedElement(Class<?> entityClass, String fieldName)
           
protected  XMLContext getContext(InputStream is)
           
protected  XMLContext getContext(String resourceName)
           
protected  JPAOverridenAnnotationReader getReader(Class<?> entityClass, String fieldName, String ormResourceName)
           
 void testAllAttributes()
           
 void testCascadeAll()
           
 void testCascadeAllPlusMore()
          Make sure that it doesn't break the handler when CascadeType.ALL is specified in addition to a default cascade-persist or individual cascade settings.
 void testCascadeSomeWithDefaultPersist()
           
 void testJoinTableAllChildren()
           
 void testJoinTableNoChildren()
           
 void testMultipleJoinColumns()
           
 void testNoJoins()
           
 void testSingleJoinColumn()
          When there's a single join column, we still wrap it with a JoinColumns annotation.
 
Methods inherited from class org.hibernate.testing.junit4.BaseUnitTestCase
releaseTransactions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

protected JPAOverridenAnnotationReader reader
Constructor Detail

Ejb3XmlManyToOneTest

public Ejb3XmlManyToOneTest()
Method Detail

testNoJoins

public void testNoJoins()
                 throws Exception
Throws:
Exception

testSingleJoinColumn

public void testSingleJoinColumn()
                          throws Exception
When there's a single join column, we still wrap it with a JoinColumns annotation.

Throws:
Exception

testMultipleJoinColumns

public void testMultipleJoinColumns()
                             throws Exception
Throws:
Exception

testJoinTableNoChildren

public void testJoinTableNoChildren()
                             throws Exception
Throws:
Exception

testJoinTableAllChildren

public void testJoinTableAllChildren()
                              throws Exception
Throws:
Exception

testAllAttributes

public void testAllAttributes()
                       throws Exception
Throws:
Exception

testCascadeAll

public void testCascadeAll()
                    throws Exception
Throws:
Exception

testCascadeSomeWithDefaultPersist

public void testCascadeSomeWithDefaultPersist()
                                       throws Exception
Throws:
Exception

testCascadeAllPlusMore

public void testCascadeAllPlusMore()
                            throws Exception
Make sure that it doesn't break the handler when CascadeType.ALL is specified in addition to a default cascade-persist or individual cascade settings.

Throws:
Exception

assertAnnotationPresent

protected void assertAnnotationPresent(Class<? extends Annotation> annotationType)

assertAnnotationNotPresent

protected void assertAnnotationNotPresent(Class<? extends Annotation> annotationType)

getReader

protected JPAOverridenAnnotationReader getReader(Class<?> entityClass,
                                                 String fieldName,
                                                 String ormResourceName)
                                          throws Exception
Throws:
Exception

getAnnotatedElement

protected AnnotatedElement getAnnotatedElement(Class<?> entityClass,
                                               String fieldName)
                                        throws Exception
Throws:
Exception

getContext

protected XMLContext getContext(String resourceName)
                         throws Exception
Throws:
Exception

getContext

protected XMLContext getContext(InputStream is)
                         throws Exception
Throws:
Exception


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.