Fixed path used during test for physical H2 file
This commit is contained in:
@@ -17,17 +17,19 @@
|
|||||||
package io.moquette.integration;
|
package io.moquette.integration;
|
||||||
|
|
||||||
import io.moquette.BrokerConstants;
|
import io.moquette.BrokerConstants;
|
||||||
|
import io.moquette.broker.Server;
|
||||||
import io.moquette.broker.config.IConfig;
|
import io.moquette.broker.config.IConfig;
|
||||||
import io.moquette.broker.config.MemoryConfig;
|
import io.moquette.broker.config.MemoryConfig;
|
||||||
import io.moquette.broker.subscriptions.Topic;
|
|
||||||
import io.moquette.broker.security.IAuthenticator;
|
import io.moquette.broker.security.IAuthenticator;
|
||||||
import io.moquette.broker.security.IAuthorizatorPolicy;
|
import io.moquette.broker.security.IAuthorizatorPolicy;
|
||||||
import io.moquette.broker.Server;
|
import io.moquette.broker.subscriptions.Topic;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import static org.junit.Assert.*;
|
|
||||||
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
public class ConfigurationClassLoaderTest implements IAuthenticator, IAuthorizatorPolicy {
|
public class ConfigurationClassLoaderTest implements IAuthenticator, IAuthorizatorPolicy {
|
||||||
|
|
||||||
@@ -61,16 +63,6 @@ public class ConfigurationClassLoaderTest implements IAuthenticator, IAuthorizat
|
|||||||
assertTrue(true);
|
assertTrue(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Test
|
|
||||||
// public void loadStorage() throws Exception {
|
|
||||||
// Properties props = new Properties(IntegrationUtils.prepareTestProperties());
|
|
||||||
// props.setProperty(BrokerConstants.STORAGE_CLASS_NAME, MemoryStorageService.class.getName());
|
|
||||||
//
|
|
||||||
// startServer(props);
|
|
||||||
// assertTrue(m_server.getProcessor().getMessagesStore() instanceof MemoryMessagesStore);
|
|
||||||
// assertTrue(m_server.getProcessor().getSessionsStore() instanceof MemorySessionStore);
|
|
||||||
// }
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean checkValid(String clientID, String username, byte[] password) {
|
public boolean checkValid(String clientID, String username, byte[] password) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public final class IntegrationUtils {
|
|||||||
|
|
||||||
static String localH2MvStoreDBPath() {
|
static String localH2MvStoreDBPath() {
|
||||||
String currentDir = System.getProperty("user.dir");
|
String currentDir = System.getProperty("user.dir");
|
||||||
return currentDir + File.separator + "target" + File.separator + DEFAULT_MOQUETTE_STORE_H2_DB_FILENAME;
|
return currentDir + File.separator + "out" + File.separator + DEFAULT_MOQUETTE_STORE_H2_DB_FILENAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Properties prepareTestProperties() {
|
public static Properties prepareTestProperties() {
|
||||||
|
|||||||
@@ -52,9 +52,7 @@ host 0.0.0.0
|
|||||||
# The file for the persistent store, if not specified, use just memory
|
# The file for the persistent store, if not specified, use just memory
|
||||||
# no physical persistence
|
# no physical persistence
|
||||||
#*********************************************************************
|
#*********************************************************************
|
||||||
#persistent_store ./moquette_store.mapdb
|
#persistent_store ./moquette_store.h2
|
||||||
#storage_class io.moquette.persistence.h2.H2PersistentStore
|
|
||||||
#storage_class io.moquette.persistence.mapdb.MapDBPersistentStore
|
|
||||||
|
|
||||||
#*********************************************************************
|
#*********************************************************************
|
||||||
# acl_file:
|
# acl_file:
|
||||||
|
|||||||
Reference in New Issue
Block a user