avoid Synchronization List preparations upfront if possible (SPR-6999)

master
Juergen Hoeller 15 years ago
parent c9289a4dcf
commit 5dc59aaa7b
  1. 4
      org.springframework.transaction/src/test/java/org/springframework/transaction/JtaTransactionManagerTests.java

@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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); MockControl utControl = MockControl.createControl(UserTransaction.class);
UserTransaction ut = (UserTransaction) utControl.getMock(); UserTransaction ut = (UserTransaction) utControl.getMock();
ut.getStatus(); ut.getStatus();
utControl.setReturnValue(Status.STATUS_ACTIVE, 3); utControl.setReturnValue(Status.STATUS_ACTIVE, 2);
ut.setRollbackOnly(); ut.setRollbackOnly();
utControl.setThrowable(new IllegalStateException("no existing transaction")); utControl.setThrowable(new IllegalStateException("no existing transaction"));
utControl.replay(); utControl.replay();

Loading…
Cancel
Save