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

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

public class Ejb3XmlElementCollectionTest
extends BaseUnitTestCase


Field Summary
protected  JPAOverridenAnnotationReader reader
           
 
Constructor Summary
Ejb3XmlElementCollectionTest()
           
 
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 testCollectionTableAllChildren()
           
 void testCollectionTableNoChildren()
           
 void testColumnAllAttributes()
           
 void testColumnNoAttributes()
           
 void testEnumerated()
           
 void testLob()
           
 void testMapKeyAllAttributes()
           
 void testMapKeyClass()
           
 void testMapKeyColumnAllAttributes()
           
 void testMapKeyColumnNoAttributes()
           
 void testMapKeyEnumerated()
           
 void testMapKeyNoAttributes()
           
 void testMapKeyTemporal()
           
 void testMixedAttributeOverrides()
          Tests that map-key-attribute-override and attribute-override elements both end up in the AttributeOverrides annotation.
 void testMultipleAssociationOverridesJoinColumns()
           
 void testMultipleAttributeOverrides()
           
 void testMultipleMapKeyAttributeOverrides()
           
 void testMultipleMapKeyJoinColumns()
           
 void testNoChildren()
           
 void testOrderBy()
           
 void testOrderColumnAllAttributes()
           
 void testOrderColumnNoAttributes()
           
 void testSingleAssociationOverride()
          When there's a single association override, we still wrap it with an AssociationOverrides annotation.
 void testSingleAttributeOverride()
          When there's a single attribute override, we still wrap it with an AttributeOverrides annotation.
 void testSingleMapKeyAttributeOverride()
          When there's a single map key attribute override, we still wrap it with an AttributeOverrides annotation.
 void testSingleMapKeyJoinColumn()
          When there's a single map key join column, we still wrap it with a MapKeyJoinColumns annotation.
 void testTemporal()
           
 
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

Ejb3XmlElementCollectionTest

public Ejb3XmlElementCollectionTest()
Method Detail

testNoChildren

public void testNoChildren()
                    throws Exception
Throws:
Exception

testOrderBy

public void testOrderBy()
                 throws Exception
Throws:
Exception

testOrderColumnNoAttributes

public void testOrderColumnNoAttributes()
                                 throws Exception
Throws:
Exception

testOrderColumnAllAttributes

public void testOrderColumnAllAttributes()
                                  throws Exception
Throws:
Exception

testMapKeyNoAttributes

public void testMapKeyNoAttributes()
                            throws Exception
Throws:
Exception

testMapKeyAllAttributes

public void testMapKeyAllAttributes()
                             throws Exception
Throws:
Exception

testMapKeyClass

public void testMapKeyClass()
                     throws Exception
Throws:
Exception

testMapKeyTemporal

public void testMapKeyTemporal()
                        throws Exception
Throws:
Exception

testMapKeyEnumerated

public void testMapKeyEnumerated()
                          throws Exception
Throws:
Exception

testSingleMapKeyAttributeOverride

public void testSingleMapKeyAttributeOverride()
                                       throws Exception
When there's a single map key attribute override, we still wrap it with an AttributeOverrides annotation.

Throws:
Exception

testMultipleMapKeyAttributeOverrides

public void testMultipleMapKeyAttributeOverrides()
                                          throws Exception
Throws:
Exception

testMapKeyColumnNoAttributes

public void testMapKeyColumnNoAttributes()
                                  throws Exception
Throws:
Exception

testMapKeyColumnAllAttributes

public void testMapKeyColumnAllAttributes()
                                   throws Exception
Throws:
Exception

testSingleMapKeyJoinColumn

public void testSingleMapKeyJoinColumn()
                                throws Exception
When there's a single map key join column, we still wrap it with a MapKeyJoinColumns annotation.

Throws:
Exception

testMultipleMapKeyJoinColumns

public void testMultipleMapKeyJoinColumns()
                                   throws Exception
Throws:
Exception

testColumnNoAttributes

public void testColumnNoAttributes()
                            throws Exception
Throws:
Exception

testColumnAllAttributes

public void testColumnAllAttributes()
                             throws Exception
Throws:
Exception

testTemporal

public void testTemporal()
                  throws Exception
Throws:
Exception

testEnumerated

public void testEnumerated()
                    throws Exception
Throws:
Exception

testLob

public void testLob()
             throws Exception
Throws:
Exception

testSingleAttributeOverride

public void testSingleAttributeOverride()
                                 throws Exception
When there's a single attribute override, we still wrap it with an AttributeOverrides annotation.

Throws:
Exception

testMultipleAttributeOverrides

public void testMultipleAttributeOverrides()
                                    throws Exception
Throws:
Exception

testMixedAttributeOverrides

public void testMixedAttributeOverrides()
                                 throws Exception
Tests that map-key-attribute-override and attribute-override elements both end up in the AttributeOverrides annotation.

Throws:
Exception

testSingleAssociationOverride

public void testSingleAssociationOverride()
                                   throws Exception
When there's a single association override, we still wrap it with an AssociationOverrides annotation.

Throws:
Exception

testMultipleAssociationOverridesJoinColumns

public void testMultipleAssociationOverridesJoinColumns()
                                                 throws Exception
Throws:
Exception

testCollectionTableNoChildren

public void testCollectionTableNoChildren()
                                   throws Exception
Throws:
Exception

testCollectionTableAllChildren

public void testCollectionTableAllChildren()
                                    throws Exception
Throws:
Exception

testAllAttributes

public void testAllAttributes()
                       throws Exception
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.