ServerIntegrationSSLTest: System properties saved
ServerLowlevelMessagesIntegrationTests: timeouts raised osgi: log4j.properties added MoquetteOsgiTest: test imporved storage packages will checked too The state must be active osgi: README added for development log4j: fixed broker/pom.xml: dependencie added osgi config added osgi_test/pom: dependencies added MoquetteOsgiTest: test fixed
This commit is contained in:
@@ -41,6 +41,7 @@ import org.eclipse.paho.client.mqttv3.MqttMessage;
|
||||
import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence;
|
||||
import org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence;
|
||||
import org.junit.After;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
@@ -60,10 +61,21 @@ public class ServerIntegrationSSLTest {
|
||||
IMqttClient m_client;
|
||||
MessageCollector m_callback;
|
||||
|
||||
static String backup;
|
||||
|
||||
@BeforeClass
|
||||
public static void beforeTests() {
|
||||
String tmpDir = System.getProperty("java.io.tmpdir");
|
||||
s_dataStore = new MqttDefaultFilePersistence(tmpDir);
|
||||
backup = System.getProperty("moquette.path");
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void afterTests() {
|
||||
if (backup == null)
|
||||
System.clearProperty("moquette.path");
|
||||
else
|
||||
System.setProperty("moquette.path", backup);
|
||||
}
|
||||
|
||||
protected void startServer() throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user