Removed ClasspathConfig to use the ClasspathResourceLoader and basic ResourceLoaderConfig

Removed FilesystemConfig to use the FileResourceLoader and basic ResourceLoaderConfig
This commit is contained in:
andsel
2016-12-31 19:30:41 +01:00
parent 0f41c9ea08
commit 4029ddd2b1
5 changed files with 16 additions and 79 deletions
@@ -6,11 +6,12 @@ import org.junit.Test;
import io.moquette.BrokerConstants;
public class ClasspathConfigTest {
public class ClasspathResourceLoaderTest {
@Test
public void testSetProperties() {
final IConfig classPathConfig = new ClasspathConfig();
IResourceLoader classpathLoader = new ClasspathResourceLoader();
final IConfig classPathConfig = new ResourceLoaderConfig(classpathLoader);
assertEquals(""+BrokerConstants.PORT,classPathConfig.getProperty(BrokerConstants.PORT_PROPERTY_NAME));
classPathConfig.setProperty(BrokerConstants.PORT_PROPERTY_NAME, "9999");
assertEquals("9999",classPathConfig.getProperty(BrokerConstants.PORT_PROPERTY_NAME));