mirror of
https://github.com/apache/activemq.git
synced 2025-02-08 19:15:20 +00:00
- Setup keystores for ssl used by ConfigTest.java
- Prevented NullPointerException in MemoryPersistenceAdapter git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@386769 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9920d70580
commit
4f7235d964
@ -125,7 +125,10 @@ public class MemoryPersistenceAdapter implements PersistenceAdapter {
|
|||||||
store.delete();
|
store.delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
transactionStore.delete();
|
|
||||||
|
if (transactionStore != null) {
|
||||||
|
transactionStore.delete();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isUseExternalMessageReferences() {
|
public boolean isUseExternalMessageReferences() {
|
||||||
|
@ -51,6 +51,15 @@ public class ConfigTest extends TestCase {
|
|||||||
protected static final String DERBY_ROOT = "target/test-data/";
|
protected static final String DERBY_ROOT = "target/test-data/";
|
||||||
protected static final String CONF_ROOT = "src/sample-conf/";
|
protected static final String CONF_ROOT = "src/sample-conf/";
|
||||||
|
|
||||||
|
static {
|
||||||
|
System.setProperty("javax.net.ssl.trustStore", "src/test/resources/client.keystore");
|
||||||
|
System.setProperty("javax.net.ssl.trustStorePassword", "password");
|
||||||
|
System.setProperty("javax.net.ssl.trustStoreType", "jks");
|
||||||
|
System.setProperty("javax.net.ssl.keyStore", "src/test/resources/server.keystore");
|
||||||
|
System.setProperty("javax.net.ssl.keyStorePassword", "password");
|
||||||
|
System.setProperty("javax.net.ssl.keyStoreType", "jks");
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* IMPORTANT NOTE: Assertions checking for the existence of the derby directory will fail if the first derby
|
* IMPORTANT NOTE: Assertions checking for the existence of the derby directory will fail if the first derby
|
||||||
* directory is not created under target/test-data/. The test in unable to change the derby
|
* directory is not created under target/test-data/. The test in unable to change the derby
|
||||||
|
BIN
assembly/src/test/resources/client.keystore
Normal file
BIN
assembly/src/test/resources/client.keystore
Normal file
Binary file not shown.
BIN
assembly/src/test/resources/server.keystore
Normal file
BIN
assembly/src/test/resources/server.keystore
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user