mirror of https://github.com/apache/activemq.git
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:
parent
a8f4f6978c
commit
beaca8a043
|
@ -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");
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue