diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2009-08-06 09:26:56 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2009-08-06 09:26:56 +0000 |
| commit | cf1d99773dbfb66c7d0b3c141530b01b69fa0576 (patch) | |
| tree | 393363ebe3ac8d82d4a778d85e18268375e930c5 /qpid/java/systests | |
| parent | 8dd5f83bc7dd0e099627f20c62afa050af0e6335 (diff) | |
| download | qpid-python-cf1d99773dbfb66c7d0b3c141530b01b69fa0576.tar.gz | |
QPID-2028 : Ensure all Non QpidTestCase System tests correctly clean up by removing the ApplicationRegistry they create.
The biggest offenders are the broker tests which are not pure unit tests.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@801561 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/systests')
| -rw-r--r-- | qpid/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java index 64838cd328..3d310331db 100644 --- a/qpid/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java +++ b/qpid/java/systests/src/main/java/org/apache/qpid/server/security/acl/SimpleACLTest.java @@ -38,7 +38,7 @@ import java.io.File; public class SimpleACLTest extends QpidTestCase implements ConnectionListener { - private String BROKER = "vm://:1";//"tcp://localhost:5672"; + private String BROKER = "vm://:"+ApplicationRegistry.DEFAULT_INSTANCE;//"tcp://localhost:5672"; public void setUp() throws Exception { @@ -61,14 +61,14 @@ public class SimpleACLTest extends QpidTestCase implements ConnectionListener } ConfigurationFileApplicationRegistry config = new ConfigurationFileApplicationRegistry(defaultaclConfigFile); - ApplicationRegistry.initialise(config, 1); - TransportConnection.createVMBroker(1); + ApplicationRegistry.initialise(config, ApplicationRegistry.DEFAULT_INSTANCE); + TransportConnection.createVMBroker(ApplicationRegistry.DEFAULT_INSTANCE); } public void tearDown() { TransportConnection.killAllVMBrokers(); - ApplicationRegistry.remove(1); + ApplicationRegistry.remove(ApplicationRegistry.DEFAULT_INSTANCE); } public String createConnectionString(String username, String password, String broker) |
