use of com.hazelcast.config.MaxSizeConfig in project hazelcast by hazelcast.
the class TestFullApplicationContext method testMapNativeMaxSizePolicy.
@Test
public void testMapNativeMaxSizePolicy() {
MapConfig mapConfig = config.getMapConfig("map-with-native-max-size-policy");
MaxSizeConfig maxSizeConfig = mapConfig.getMaxSizeConfig();
assertEquals(MaxSizeConfig.MaxSizePolicy.USED_NATIVE_MEMORY_PERCENTAGE, maxSizeConfig.getMaxSizePolicy());
}
Aggregations