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:
Juergen Hoeller 2010-03-22 14:31:58 +00:00
parent 55c74841f2
commit 5a41fc20eb
1 changed files with 2 additions and 2 deletions

View File

@ -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();