From 7ae7122c5b58e8cfb93277b83cc2f1ce90957b46 Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Wed, 8 Nov 2006 14:16:37 +0000 Subject: MultipleConnectionTest.java needed a longer time out. JNDI URL was missing file:// git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@472500 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/qpid/test/unit/jndi/referenceabletest/Bind.java | 7 ++++--- .../org/apache/qpid/test/unit/jndi/referenceabletest/Lookup.java | 5 +++-- .../org/apache/qpid/test/unit/jndi/referenceabletest/Unbind.java | 7 ++++--- 3 files changed, 11 insertions(+), 8 deletions(-) (limited to 'java/client/test/src') diff --git a/java/client/test/src/org/apache/qpid/test/unit/jndi/referenceabletest/Bind.java b/java/client/test/src/org/apache/qpid/test/unit/jndi/referenceabletest/Bind.java index 899099f706..37fea92426 100644 --- a/java/client/test/src/org/apache/qpid/test/unit/jndi/referenceabletest/Bind.java +++ b/java/client/test/src/org/apache/qpid/test/unit/jndi/referenceabletest/Bind.java @@ -49,7 +49,8 @@ import java.util.Hashtable; class Bind { public static final String DEFAULT_PROVIDER_FILE_PATH = System.getProperty("java.io.tmpdir") + "/JNDITest" + System.currentTimeMillis(); - public String PROVIDER_URL = "file://" + DEFAULT_PROVIDER_FILE_PATH; + public static final String DEFAULT_PROVIDER_URL = "file://" + DEFAULT_PROVIDER_FILE_PATH; + public String PROVIDER_URL = DEFAULT_PROVIDER_URL; String _connectionFactoryString = ""; @@ -60,12 +61,12 @@ class Bind public Bind() throws NameAlreadyBoundException, NoInitialContextException { - this(false, DEFAULT_PROVIDER_FILE_PATH); + this(false, DEFAULT_PROVIDER_URL); } public Bind(boolean output) throws NameAlreadyBoundException, NoInitialContextException { - this(output, DEFAULT_PROVIDER_FILE_PATH); + this(output, DEFAULT_PROVIDER_URL); } public Bind(boolean output, String providerURL) throws NameAlreadyBoundException, NoInitialContextException diff --git a/java/client/test/src/org/apache/qpid/test/unit/jndi/referenceabletest/Lookup.java b/java/client/test/src/org/apache/qpid/test/unit/jndi/referenceabletest/Lookup.java index 5000094a14..9be45e0428 100644 --- a/java/client/test/src/org/apache/qpid/test/unit/jndi/referenceabletest/Lookup.java +++ b/java/client/test/src/org/apache/qpid/test/unit/jndi/referenceabletest/Lookup.java @@ -42,7 +42,8 @@ import java.util.Hashtable; class Lookup { public static final String DEFAULT_PROVIDER_FILE_PATH = System.getProperty("java.io.tmpdir") + "/JNDITest"; - public String PROVIDER_URL = "file://" + DEFAULT_PROVIDER_FILE_PATH; + public static final String DEFAULT_PROVIDER_URL = "file://" + DEFAULT_PROVIDER_FILE_PATH; + public String PROVIDER_URL = DEFAULT_PROVIDER_URL; AMQTopic _topic = null; AMQConnection _connection = null; @@ -52,7 +53,7 @@ class Lookup public Lookup() { - this(DEFAULT_PROVIDER_FILE_PATH); + this(DEFAULT_PROVIDER_URL); } public Lookup(String providerURL) diff --git a/java/client/test/src/org/apache/qpid/test/unit/jndi/referenceabletest/Unbind.java b/java/client/test/src/org/apache/qpid/test/unit/jndi/referenceabletest/Unbind.java index a7caec0891..226b7e026d 100644 --- a/java/client/test/src/org/apache/qpid/test/unit/jndi/referenceabletest/Unbind.java +++ b/java/client/test/src/org/apache/qpid/test/unit/jndi/referenceabletest/Unbind.java @@ -39,18 +39,19 @@ import java.util.Hashtable; class Unbind { public static final String DEFAULT_PROVIDER_FILE_PATH = System.getProperty("java.io.tmpdir") + "/JNDITest" + System.currentTimeMillis(); - public String PROVIDER_URL = "file://" + DEFAULT_PROVIDER_FILE_PATH; + public static final String DEFAULT_PROVIDER_URL = "file://" + DEFAULT_PROVIDER_FILE_PATH; + public String PROVIDER_URL = DEFAULT_PROVIDER_URL; boolean _unbound = false; public Unbind() { - this(false, DEFAULT_PROVIDER_FILE_PATH); + this(false, DEFAULT_PROVIDER_URL); } public Unbind(Boolean output) { - this(output, DEFAULT_PROVIDER_FILE_PATH); + this(output, DEFAULT_PROVIDER_URL); } public Unbind(String provider) -- cgit v1.2.1