HHH-6696 - Typical test case
This commit is contained in:
parent
45f3ced6da
commit
b622119104
|
@ -4,6 +4,7 @@ import org.hibernate.ejb.Ejb3Configuration;
|
|||
import org.hibernate.envers.test.AbstractEntityTest;
|
||||
import org.hibernate.envers.test.Priority;
|
||||
import org.hibernate.envers.test.entities.StrTestEntity;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -12,6 +13,7 @@ import javax.persistence.EntityManager;
|
|||
/**
|
||||
* @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
|
||||
*/
|
||||
@TestForIssue(jiraKey = "HHH-6696")
|
||||
public class GloballyConfiguredRevListenerTest extends AbstractEntityTest {
|
||||
public void configure(Ejb3Configuration cfg) {
|
||||
cfg.addAnnotatedClass(StrTestEntity.class);
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
package org.hibernate.envers.test.integration.reventity;
|
||||
|
||||
import org.hibernate.ejb.Ejb3Configuration;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
|
||||
/**
|
||||
* @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
|
||||
*/
|
||||
public class OverrideRevListenerTest extends GloballyConfiguredRevListenerTest {
|
||||
@TestForIssue(jiraKey = "HHH-6696")
|
||||
public class OverrideCustomRevListenerTest extends GloballyConfiguredRevListenerTest {
|
||||
@Override
|
||||
public void configure(Ejb3Configuration cfg) {
|
||||
super.configure(cfg);
|
|
@ -0,0 +1,16 @@
|
|||
package org.hibernate.envers.test.integration.reventity;
|
||||
|
||||
import org.hibernate.ejb.Ejb3Configuration;
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
|
||||
/**
|
||||
* @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
|
||||
*/
|
||||
@TestForIssue(jiraKey = "HHH-6696")
|
||||
public class OverrideDefaultRevListenerTest extends GloballyConfiguredRevListenerTest {
|
||||
@Override
|
||||
public void configure(Ejb3Configuration cfg) {
|
||||
super.configure(cfg);
|
||||
cfg.addAnnotatedClass(LongRevNumberRevEntity.class);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue