ARTEMIS-3473 Some tests were leaving a directory named null for journal files under tests/integration-tests
This commit is contained in:
parent
cdc046a152
commit
7792d8f7b3
|
@ -196,7 +196,7 @@ public abstract class ActiveMQTestBase extends Assert {
|
|||
* your data even under ./target.
|
||||
* Do not try to disable this rule! Fix your test! */
|
||||
@Rule
|
||||
public NoFilesBehind noFilesBehind = new NoFilesBehind("data");
|
||||
public NoFilesBehind noFilesBehind = new NoFilesBehind("data", "null");
|
||||
|
||||
/** This will cleanup any system property changed inside tests */
|
||||
@Rule
|
||||
|
@ -406,10 +406,14 @@ public abstract class ActiveMQTestBase extends Assert {
|
|||
}
|
||||
}
|
||||
|
||||
@Before
|
||||
public void setupTestDir() {
|
||||
testDir = temporaryFolder.getRoot().getAbsolutePath();
|
||||
}
|
||||
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
sendMsgCount = 0;
|
||||
testDir = temporaryFolder.getRoot().getAbsolutePath();
|
||||
clearDataRecreateServerDirs();
|
||||
OperationContextImpl.clearContext();
|
||||
|
||||
|
|
|
@ -130,6 +130,7 @@ public class MQTTTestSupport extends ActiveMQTestBase {
|
|||
@Override
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
super.setUp();
|
||||
String basedir = basedir().getPath();
|
||||
System.setProperty("javax.net.ssl.trustStore", basedir + "/src/test/resources/client.keystore");
|
||||
System.setProperty("javax.net.ssl.trustStorePassword", "password");
|
||||
|
|
Loading…
Reference in New Issue