org.hibernate.test.manytomanyassociationclass
Class AbstractManyToManyAssociationClassTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.manytomanyassociationclass.AbstractManyToManyAssociationClassTest
Direct Known Subclasses:
ManyToManyAssociationClassAssignedIdTest, ManyToManyAssociationClassCompositeIdTest, ManyToManyAssociationClassGeneratedIdTest

public abstract class AbstractManyToManyAssociationClassTest
extends BaseCoreFunctionalTestCase

Abstract class for tests on many-to-many association using an association class.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
BaseCoreFunctionalTestCase.RollbackWork
 
Field Summary
 
Fields inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
DIALECT, NO_CLASSES, NO_MAPPINGS, USE_NEW_METADATA_MAPPINGS, VALIDATE_DATA_CLEANUP
 
Constructor Summary
AbstractManyToManyAssociationClassTest()
           
 
Method Summary
 void addMembership(User u, Group g, Membership ug)
           
protected  void cleanupTest()
           
abstract  Membership createMembership(String name)
           
 void deleteMembership(User u, Group g, Membership ug)
           
 Group getGroup()
           
 Membership getMembership()
           
 User getUser()
           
protected  void prepareTest()
           
 void testDeleteDetached()
           
 void testRemoveAndAddEqualCollection()
           
 void testRemoveAndAddEqualElement()
           
 void testRemoveAndAddEqualElementNonKeyModified()
           
 void testRemoveAndAddSameElement()
           
 void testRemoveAndAddSameElementNonKeyModified()
           
 
Methods inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
addMappings, addMappings, afterConfigurationBuilt, afterConfigurationBuilt, afterSessionFactoryBuilt, afterTest, applyCacheSettings, assertAllDataRemoved, beforeTest, buildConfiguration, buildServiceRegistry, cleanupCache, configuration, configure, constructConfiguration, createSchema, generateBootstrapRegistry, getAnnotatedClasses, getAnnotatedPackages, getBaseForMappings, getCacheConcurrencyStrategy, getDialect, getMappings, getXmlFiles, onFailure, openSession, openSession, overrideCacheStrategy, prepareBasicRegistryBuilder, prepareBootstrapRegistryBuilder, readCommittedIsolationMaintained, rebuildSessionFactory, rebuildSessionFactoryOnError, serviceRegistry, sessionFactory
 
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
 

Constructor Detail

AbstractManyToManyAssociationClassTest

public AbstractManyToManyAssociationClassTest()
Method Detail

createMembership

public abstract Membership createMembership(String name)

prepareTest

protected void prepareTest()
Overrides:
prepareTest in class BaseCoreFunctionalTestCase

cleanupTest

protected void cleanupTest()
Overrides:
cleanupTest in class BaseCoreFunctionalTestCase

getUser

public User getUser()

getGroup

public Group getGroup()

getMembership

public Membership getMembership()

testRemoveAndAddSameElement

public void testRemoveAndAddSameElement()

testRemoveAndAddEqualElement

public void testRemoveAndAddEqualElement()

testRemoveAndAddEqualCollection

public void testRemoveAndAddEqualCollection()

testRemoveAndAddSameElementNonKeyModified

public void testRemoveAndAddSameElementNonKeyModified()

testRemoveAndAddEqualElementNonKeyModified

public void testRemoveAndAddEqualElementNonKeyModified()

testDeleteDetached

public void testDeleteDetached()

deleteMembership

public void deleteMembership(User u,
                             Group g,
                             Membership ug)

addMembership

public void addMembership(User u,
                          Group g,
                          Membership ug)


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