From 0ad601ba75d43c16cea612382b70ce390be93b29 Mon Sep 17 00:00:00 2001 From: "Weston M. Price" Date: Thu, 3 May 2012 21:54:29 +0000 Subject: QPID-3791: PropertiesFileInitialContextFactory cannot open file URL *Removing new test for now as absolute file path is not working on test machine *Excludes mechanism did not work to remove a single test, or the entire class *Will rework git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1333645 13f79535-47bb-0310-9956-ffa450edef68 --- .../jndi/PropertiesFileInitialContextFactoryTest.java | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'java') diff --git a/java/client/src/test/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactoryTest.java b/java/client/src/test/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactoryTest.java index 4371f8d753..2989970dcd 100644 --- a/java/client/src/test/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactoryTest.java +++ b/java/client/src/test/java/org/apache/qpid/jndi/PropertiesFileInitialContextFactoryTest.java @@ -51,25 +51,6 @@ public class PropertiesFileInitialContextFactoryTest extends TestCase ctx = new InitialContext(properties); } - public void testInitialContextProviderURL() throws Exception - { - Destination d = null; - - System.setProperty("java.naming.factory.initial", "org.apache.qpid.jndi.PropertiesFileInitialContextFactory"); - System.setProperty("java.naming.provider.url", FILE_URL_PATH + FILE_NAME); - - InitialContext ctx = new InitialContext(); - d = (Destination)ctx.lookup("topicExchange"); - assertNotNull("Lookup for Destination from file path should not be null", d); - - ctx.close(); - - System.setProperty("java.naming.provider.url", "file:///" + FILE_URL_PATH + FILE_NAME); - - ctx = new InitialContext(); - d = (Destination)ctx.lookup("topicExchange"); - assertNotNull("Lookup for Destination from file URI should not be null", d); - } public void testQueueNamesWithTrailingSpaces() throws Exception { -- cgit v1.2.1