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() throws Exception {
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 testAddLocalEntryListenerWithMapListenerAndPredicateAndKey_NullPredicate.
@Test(expected = UnsupportedOperationException.class)
public void testAddLocalEntryListenerWithMapListenerAndPredicateAndKey_NullPredicate() throws Exception {
MapListener mapListener = new MapListenerAdapter() {
public void onEntryEvent(EntryEvent event) {
System.out.println("-");
}
};
Predicate predicate = null;
map.addLocalEntryListener(mapListener, predicate, null, 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() throws Exception {
MapListener mapListener = null;
map.addEntryListener(mapListener, false);
}
use of com.hazelcast.map.listener.MapListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddLocalEntryListenerWithMapListenerAndPredicate_NullPredicate.
@Test(expected = UnsupportedOperationException.class)
public void testAddLocalEntryListenerWithMapListenerAndPredicate_NullPredicate() throws Exception {
MapListener mapListener = new MapListenerAdapter() {
public void onEntryEvent(EntryEvent event) {
System.out.println("-");
}
};
Predicate predicate = null;
map.addLocalEntryListener(mapListener, predicate, true);
}
use of com.hazelcast.map.listener.MapListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddEntryListenerWithMapListenerAndPredicate_NullListener.
@Test(expected = NullPointerException.class)
public void testAddEntryListenerWithMapListenerAndPredicate_NullListener() {
MapListener mapListener = null;
Predicate predicate = new TruePredicate();
map.addEntryListener(mapListener, predicate, false);
}
Aggregations