use of com.hazelcast.map.listener.MapListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddEntryListenerWithMapListenerAndKey_NullKey.
@Test(expected = NullPointerException.class)
public void testAddEntryListenerWithMapListenerAndKey_NullKey() {
MapListener mapListener = new MapListenerAdapter() {
public void onEntryEvent(EntryEvent event) {
System.out.println("-");
}
};
map.addEntryListener(mapListener, null, false);
}
use of com.hazelcast.map.listener.MapListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddEntryListenerWithMapListenerAndPredicateAndKey_NullListener.
@Test(expected = NullPointerException.class)
public void testAddEntryListenerWithMapListenerAndPredicateAndKey_NullListener() {
MapListener mapListener = null;
Predicate predicate = new TruePredicate();
map.addEntryListener(mapListener, predicate, null, true);
}
Aggregations