Search in sources :

Example 16 with MapConfigReadOnly

use of com.hazelcast.internal.config.MapConfigReadOnly in project hazelcast by hazelcast.

the class MapConfigReadOnlyTest method getMapStoreConfigOfReadOnlyMapConfigShouldReturnNullIfConfigIsNull.

@Test
public void getMapStoreConfigOfReadOnlyMapConfigShouldReturnNullIfConfigIsNull() {
    MapConfig config = new MapConfig().setMapStoreConfig(null);
    MapStoreConfig mapStoreConfig = new MapConfigReadOnly(config).getMapStoreConfig();
    assertNull(mapStoreConfig);
}
Also used : MapConfigReadOnly(com.hazelcast.internal.config.MapConfigReadOnly) ParallelJVMTest(com.hazelcast.test.annotation.ParallelJVMTest) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

MapConfigReadOnly (com.hazelcast.internal.config.MapConfigReadOnly)16 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)13 QuickTest (com.hazelcast.test.annotation.QuickTest)13 Test (org.junit.Test)13 EvictionConfig (com.hazelcast.config.EvictionConfig)2 MapConfig (com.hazelcast.config.MapConfig)2 MapContainer (com.hazelcast.map.impl.MapContainer)2 MapService (com.hazelcast.map.impl.MapService)2 IndexConfig (com.hazelcast.config.IndexConfig)1 MapServiceContext (com.hazelcast.map.impl.MapServiceContext)1 DiscardMergePolicy (com.hazelcast.spi.merge.DiscardMergePolicy)1 PutIfAbsentMergePolicy (com.hazelcast.spi.merge.PutIfAbsentMergePolicy)1