Fix some failing test cases in windows.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@473224 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian T. Co 2006-11-10 07:29:23 +00:00
parent a8f4f6978c
commit beaca8a043
2 changed files with 4 additions and 2 deletions

View File

@ -44,8 +44,8 @@ public class BrokerXmlConfigFromJNDITest extends JmsTopicSendReceiveWithTwoConne
// configure the embedded broker using an XML config file
// which is either a URL or a resource on the classpath
File f = new File(System.getProperty("basedir", "."));
properties.put(Context.PROVIDER_URL, "vm://localhost?brokerConfig=xbean:file:"+f+"/src/test/resources/activemq.xml");
File f = new File(System.getProperty("basedir", "."), "/src/test/resources/activemq.xml");
properties.put(Context.PROVIDER_URL, "vm://localhost?brokerConfig=xbean:" + f.toURI());
InitialContext context = new InitialContext(properties);
ActiveMQConnectionFactory connectionFactory = (ActiveMQConnectionFactory) context.lookup("ConnectionFactory");

View File

@ -115,6 +115,8 @@ public class ConfigTest extends TestCase {
*/
public void testJdbcConfig() throws Exception {
// System.out.print("Checking jdbc persistence adapter configuration... ");
File derbyFile = new File(DERBY_ROOT + "testJDBCConfig/derbydb"); // Default derby name
recursiveDelete(derbyFile);
BrokerService broker;
broker = createBroker(new FileSystemResource(CONF_ROOT + "jdbc-example.xml"));