Removed all the old ProtocolProcessor stuff

This commit is contained in:
andsel
2018-11-08 22:18:11 +01:00
parent 24e9d9f83c
commit e10619813a
79 changed files with 483 additions and 6043 deletions
@@ -25,6 +25,7 @@ import io.moquette.persistence.MemoryStorageService;
import io.moquette.persistence.MemorySessionStore;
import io.moquette.spi.security.IAuthenticator;
import io.moquette.spi.security.IAuthorizatorPolicy;
import io.moquette.broker.Server;
import org.junit.After;
import org.junit.Test;
import java.io.IOException;
@@ -43,7 +44,7 @@ public class ConfigurationClassLoaderTest implements IAuthenticator, IAuthorizat
}
@After
public void tearDown() throws Exception {
public void tearDown() {
m_server.stopServer();
}
@@ -63,15 +64,15 @@ public class ConfigurationClassLoaderTest implements IAuthenticator, IAuthorizat
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);
}
// @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
public boolean checkValid(String clientID, String username, byte[] password) {