HHH-13666 Clarify that existing BeforeCompletion/AfterCompletion tests are about JTA only

This commit is contained in:
Yoann Rodière 2019-10-15 14:32:02 +02:00 committed by Guillaume Smet
parent 8655d683e6
commit 250f569339
3 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@ import static org.junit.Assert.assertTrue;
/** /**
* @author Chris Cranford * @author Chris Cranford
*/ */
public class AfterCompletionTest extends BaseNonConfigCoreFunctionalTestCase { public class JtaAfterCompletionTest extends BaseNonConfigCoreFunctionalTestCase {
@Override @Override
protected Class<?>[] getAnnotatedClasses() { protected Class<?>[] getAnnotatedClasses() {
return new Class<?>[] { SimpleEntity.class }; return new Class<?>[] { SimpleEntity.class };

View File

@ -34,7 +34,7 @@ import static org.junit.Assert.fail;
/** /**
* @author Steve Ebersole * @author Steve Ebersole
*/ */
public class BeforeCompletionFailureTest extends BaseNonConfigCoreFunctionalTestCase { public class JtaBeforeCompletionFailureTest extends BaseNonConfigCoreFunctionalTestCase {
@Override @Override
protected Class[] getAnnotatedClasses() { protected Class[] getAnnotatedClasses() {

View File

@ -31,6 +31,8 @@ import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.jta.TestingJtaBootstrap; import org.hibernate.testing.jta.TestingJtaBootstrap;
import org.hibernate.testing.jta.TestingJtaPlatformImpl; import org.hibernate.testing.jta.TestingJtaPlatformImpl;
import org.hibernate.test.tm.JtaAfterCompletionTest;
import static org.hibernate.testing.junit4.ExtraAssertions.assertTyping; import static org.hibernate.testing.junit4.ExtraAssertions.assertTyping;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
@ -39,7 +41,7 @@ import static org.junit.Assert.assertTrue;
/** /**
* An envers specific quest that verifies the {@link AuditProcessManager} gets flushed. * An envers specific quest that verifies the {@link AuditProcessManager} gets flushed.
* *
* There is a similar test called {@link org.hibernate.test.tm.AfterCompletionTest} * There is a similar test called {@link JtaAfterCompletionTest}
* in hibernate-core which verifies that the callbacks fires. * in hibernate-core which verifies that the callbacks fires.
* *
* The premise behind this test is to verify that when a JTA transaction is aborted by * The premise behind this test is to verify that when a JTA transaction is aborted by