Search in sources :

Example 1 with DynamicConfigurationConfig

use of com.hazelcast.config.DynamicConfigurationConfig in project hazelcast by hazelcast.

the class TestFullApplicationContext method testDynamicConfiguration.

@Test
public void testDynamicConfiguration() {
    boolean persistenceEnabled = false;
    File backupDir = new File("/mnt/backup-dir");
    int backupCount = 7;
    DynamicConfigurationConfig dynamicConfigurationConfig = config.getDynamicConfigurationConfig();
    assertEquals(persistenceEnabled, dynamicConfigurationConfig.isPersistenceEnabled());
    assertEquals(backupDir, dynamicConfigurationConfig.getBackupDir());
    assertEquals(backupCount, dynamicConfigurationConfig.getBackupCount());
}
Also used : DynamicConfigurationConfig(com.hazelcast.config.DynamicConfigurationConfig) File(java.io.File) Test(org.junit.Test) QuickTest(com.hazelcast.test.annotation.QuickTest)

Aggregations

DynamicConfigurationConfig (com.hazelcast.config.DynamicConfigurationConfig)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 File (java.io.File)1 Test (org.junit.Test)1