From a70f96bd3781c1f7aff4580296367b8e4a75520f Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Thu, 28 Dec 2006 21:01:21 +0000 Subject: [PATCH] set the basedir property - so can be run from inside eclipse git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@490808 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/broker/ft/QueueMasterSlaveTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java b/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java index 2469a6b3f2..fca770fed0 100644 --- a/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/broker/ft/QueueMasterSlaveTest.java @@ -17,6 +17,7 @@ */ package org.apache.activemq.broker.ft; +import java.io.File; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache.activemq.JmsTopicSendReceiveWithTwoConnectionsTest; import org.apache.activemq.broker.BrokerService; @@ -38,6 +39,10 @@ public class QueueMasterSlaveTest extends JmsTopicSendReceiveWithTwoConnectionsT protected String uriString="failover://(tcp://localhost:62001,tcp://localhost:62002)?randomize=false"; protected void setUp() throws Exception{ + if(System.getProperty("basedir")==null){ + File file=new File("."); + System.setProperty("basedir",file.getAbsolutePath()); + } failureCount = super.messageCount/2; super.topic = isTopic(); BrokerFactoryBean brokerFactory=new BrokerFactoryBean(new ClassPathResource(getMasterXml()));