Skip to content

Commit 037497c

Browse files
committed
fixed ignored test
1 parent 3ecb6b1 commit 037497c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

org.springframework.orm/src/test/java/org/springframework/orm/hibernate3/HibernateJtaTransactionTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2009 the original author or authors.
2+
* Copyright 2002-2011 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,7 +34,6 @@
3434
import org.hibernate.classic.Session;
3535
import org.hibernate.engine.SessionFactoryImplementor;
3636
import org.hibernate.engine.SessionImplementor;
37-
import org.junit.Ignore;
3837

3938
import org.springframework.dao.DataAccessException;
4039
import org.springframework.transaction.MockJtaTransaction;
@@ -52,7 +51,6 @@
5251
* @author Juergen Hoeller
5352
* @since 05.03.2005
5453
*/
55-
@Ignore // getting errors on mocks
5654
public class HibernateJtaTransactionTests extends TestCase {
5755

5856
public void testJtaTransactionCommit() throws Exception {
@@ -1588,7 +1586,7 @@ public void testJtaSessionSynchronizationWithSpringTransactionLaterOn() throws E
15881586
TransactionManager tm = (TransactionManager) tmControl.getMock();
15891587
MockJtaTransaction transaction = new MockJtaTransaction();
15901588
ut.getStatus();
1591-
utControl.setReturnValue(Status.STATUS_ACTIVE, 2);
1589+
utControl.setReturnValue(Status.STATUS_ACTIVE, 1);
15921590
tm.getTransaction();
15931591
tmControl.setReturnValue(transaction, 6);
15941592

0 commit comments

Comments
 (0)