From 2e2ad0a640752f3a0bc963958560d6e50f102927 Mon Sep 17 00:00:00 2001 From: adamw Date: Tue, 24 May 2011 09:01:39 +0200 Subject: [PATCH] HHH-5808: Backporting tests and fixing the build --- .../unidirectional/UnidirectionalMulIdWithNulls.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/onetoone/unidirectional/UnidirectionalMulIdWithNulls.java b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/onetoone/unidirectional/UnidirectionalMulIdWithNulls.java index 722f1d2a3f..edcad8810d 100644 --- a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/onetoone/unidirectional/UnidirectionalMulIdWithNulls.java +++ b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/onetoone/unidirectional/UnidirectionalMulIdWithNulls.java @@ -2,10 +2,11 @@ package org.hibernate.envers.test.integration.onetoone.unidirectional; import org.hibernate.ejb.Ejb3Configuration; import org.hibernate.envers.test.AbstractEntityTest; -import org.hibernate.envers.test.Priority; import org.hibernate.envers.test.entities.ids.EmbId; import org.hibernate.envers.test.entities.ids.EmbIdTestEntity; -import org.junit.Test; + +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; import javax.persistence.EntityManager; @@ -20,8 +21,7 @@ public class UnidirectionalMulIdWithNulls extends AbstractEntityTest { cfg.addAnnotatedClass(UniRefIngMulIdEntity.class); } - @Test - @Priority(10) + @BeforeClass(dependsOnMethods = "init") public void initData() { ei = new EmbId(1, 2); @@ -52,4 +52,4 @@ public class UnidirectionalMulIdWithNulls extends AbstractEntityTest { assert notNullRef.getReference() != null; assert notNullRef.getReference().equals(eite); } -} \ No newline at end of file +}