diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2006-11-07 13:36:47 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2006-11-07 13:36:47 +0000 |
| commit | a73e5eeba122b2695bfba64639651dfc16255f81 (patch) | |
| tree | 6fed7ec734d3acd9bc692bb0b26a5cdcfcecbce8 /qpid/java/client/test | |
| parent | 7ec870d5be570a759417eb92f4c69260480bc381 (diff) | |
| download | qpid-python-a73e5eeba122b2695bfba64639651dfc16255f81.tar.gz | |
Added attempt to unbind if an error occurs.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@472108 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client/test')
| -rw-r--r-- | qpid/java/client/test/src/org/apache/qpid/transacted/TransactedTest.java | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/qpid/java/client/test/src/org/apache/qpid/transacted/TransactedTest.java b/qpid/java/client/test/src/org/apache/qpid/transacted/TransactedTest.java index 8b2c930a36..3b102f5373 100644 --- a/qpid/java/client/test/src/org/apache/qpid/transacted/TransactedTest.java +++ b/qpid/java/client/test/src/org/apache/qpid/transacted/TransactedTest.java @@ -30,6 +30,7 @@ import org.junit.Before; import org.junit.Test; import org.junit.Assert; import org.junit.BeforeClass; +import org.junit.AfterClass; import javax.jms.*; @@ -53,13 +54,7 @@ public class TransactedTest private MessageConsumer testConsumer2; @BeforeClass - public static void setupVM() - { - System.setProperty("amqj.NoAutoCreateVMBroker", "true"); - } - - @Before - public void setup() throws Exception + public static void setupBeforeClass() { try { @@ -69,6 +64,18 @@ public class TransactedTest { Assert.fail("Unable to create VM Broker: " + e.getMessage()); } + } + + @AfterClass + public static void setupAfterClass() + { + TransportConnection.killVMBroker(1); + } + + @Before + public void setup() throws Exception + { + queue1 = new AMQQueue("Q1", false); queue2 = new AMQQueue("Q2", false); @@ -115,8 +122,6 @@ public class TransactedTest con.close(); testCon.close(); prepCon.close(); - - TransportConnection.killVMBroker(1); } @Test |
