use of com.hazelcast.map.listener.MapListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddEntryListenerWithMapListenerAndPredicate_NullPredicate.
@Test(expected = NullPointerException.class)
public void testAddEntryListenerWithMapListenerAndPredicate_NullPredicate() throws Exception {
MapListener mapListener = new MapListenerAdapter() {
public void onEntryEvent(EntryEvent event) {
System.out.println("-");
}
};
Predicate predicate = null;
map.addEntryListener(mapListener, predicate, true);
}
use of com.hazelcast.map.listener.MapListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddEntryListenerWithMapListener.
@Test(expected = NullPointerException.class)
public void testAddEntryListenerWithMapListener() {
MapListener mapListener = null;
map.addEntryListener(mapListener, false);
}
use of com.hazelcast.map.listener.MapListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddEntryListenerWithMapListenerAndKey_NullListener.
@Test(expected = NullPointerException.class)
public void testAddEntryListenerWithMapListenerAndKey_NullListener() {
MapListener mapListener = null;
Integer i = 3;
map.addEntryListener(mapListener, i, false);
}
use of com.hazelcast.map.listener.MapListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddEntryListenerWithMapListenerAndPredicateAndKey_NullPredicate.
@Test(expected = NullPointerException.class)
public void testAddEntryListenerWithMapListenerAndPredicateAndKey_NullPredicate() {
MapListener mapListener = new MapListenerAdapter() {
public void onEntryEvent(EntryEvent event) {
System.out.println("-");
}
};
Predicate predicate = null;
map.addEntryListener(mapListener, predicate, null, true);
}
use of com.hazelcast.map.listener.MapListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddLocalEntryListenerWithMapListener.
@Test(expected = NullPointerException.class)
public void testAddLocalEntryListenerWithMapListener() {
MapListener mapListener = null;
map.addLocalEntryListener(mapListener);
}
Aggregations