Author: aidan
Date: Mon Apr 21 09:24:07 2008
New Revision: 650193
URL: http://svn.apache.org/viewvc?rev=650193&view=rev
Log:
QPID-832 catch dodgy mock generated exception, just like M2.x
Modified:
incubator/qpid/branches/thegreatmerge/qpid/java/systests/src/main/java/org/apache/qpid/server/txn/TxnBufferTest.java
Modified:
incubator/qpid/branches/thegreatmerge/qpid/java/systests/src/main/java/org/apache/qpid/server/txn/TxnBufferTest.java
URL:
http://svn.apache.org/viewvc/incubator/qpid/branches/thegreatmerge/qpid/java/systests/src/main/java/org/apache/qpid/server/txn/TxnBufferTest.java?rev=650193&r1=650192&r2=650193&view=diff
==============================================================================
---
incubator/qpid/branches/thegreatmerge/qpid/java/systests/src/main/java/org/apache/qpid/server/txn/TxnBufferTest.java
(original)
+++
incubator/qpid/branches/thegreatmerge/qpid/java/systests/src/main/java/org/apache/qpid/server/txn/TxnBufferTest.java
Mon Apr 21 09:24:07 2008
@@ -27,6 +27,7 @@
import org.apache.qpid.server.store.StoreContext;
import java.util.LinkedList;
+import java.util.NoSuchElementException;
public class TxnBufferTest extends TestCase
{
@@ -78,7 +79,15 @@
buffer.enlist(new FailedPrepare());
buffer.enlist(new MockOp());
- buffer.commit(null);
+ try
+ {
+ buffer.commit(null);
+ }
+ catch (NoSuchElementException e)
+ {
+
+ }
+
validateOps();
store.validate();
}