org.hibernate.envers.test.integration.strategy
Class ValidityAuditStrategyManyToManyTest

java.lang.Object
  extended by org.hibernate.envers.test.AbstractEnversTest
      extended by org.hibernate.envers.test.AbstractEntityTest
          extended by org.hibernate.envers.test.integration.strategy.ValidityAuditStrategyManyToManyTest

public class ValidityAuditStrategyManyToManyTest
extends AbstractEntityTest

Tests the ValidityAuditStrategy on many-to-many Sets. It was first introduced because of a bug when adding and removing the same element from the set multiple times between database persists. Created on: 24.05.11

Since:
3.6.5

Constructor Summary
ValidityAuditStrategyManyToManyTest()
           
 
Method Summary
 void configure(Ejb3Configuration cfg)
           
 void initData()
           
 void testHistoryOfEd1()
           
 void testHistoryOfIng1()
           
 void testMultipleAddAndRemove()
           
 void testRevisionsCounts()
           
 
Methods inherited from class org.hibernate.envers.test.AbstractEntityTest
addConfigurationProperties, close, getAuditReader, getCfg, getEntityManager, init, init, newEntityManager
 
Methods inherited from class org.hibernate.envers.test.AbstractEnversTest
data, getAuditStrategy, setTestData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidityAuditStrategyManyToManyTest

public ValidityAuditStrategyManyToManyTest()
Method Detail

configure

public void configure(Ejb3Configuration cfg)
Specified by:
configure in class AbstractEntityTest

initData

public void initData()

testMultipleAddAndRemove

public void testMultipleAddAndRemove()

testRevisionsCounts

public void testRevisionsCounts()

testHistoryOfIng1

public void testHistoryOfIng1()

testHistoryOfEd1

public void testHistoryOfEd1()


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