avoid Synchronization List preparations upfront if possible (SPR-6999)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3131 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
55c74841f2
commit
5a41fc20eb
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
* Copyright 2002-2010 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -1395,7 +1395,7 @@ public class JtaTransactionManagerTests extends TestCase {
|
|||
MockControl utControl = MockControl.createControl(UserTransaction.class);
|
||||
UserTransaction ut = (UserTransaction) utControl.getMock();
|
||||
ut.getStatus();
|
||||
utControl.setReturnValue(Status.STATUS_ACTIVE, 3);
|
||||
utControl.setReturnValue(Status.STATUS_ACTIVE, 2);
|
||||
ut.setRollbackOnly();
|
||||
utControl.setThrowable(new IllegalStateException("no existing transaction"));
|
||||
utControl.replay();
|
||||
|
|
|
|||
Loading…
Reference in New Issue