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() throws Exception {
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 testAddLocalEntryListenerWithMapListenerAndPredicate_NullListener.
@Test(expected = UnsupportedOperationException.class)
public void testAddLocalEntryListenerWithMapListenerAndPredicate_NullListener() throws Exception {
MapListener mapListener = null;
Predicate predicate = new TruePredicate();
map.addLocalEntryListener(mapListener, predicate, false);
}
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() throws Exception {
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() throws Exception {
MapListener mapListener = null;
Predicate predicate = new TruePredicate();
map.addEntryListener(mapListener, predicate, null, true);
}
use of com.hazelcast.map.listener.MapListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddLocalEntryListenerWithMapListenerAndPredicateAndKey_NullListener.
@Test(expected = UnsupportedOperationException.class)
public void testAddLocalEntryListenerWithMapListenerAndPredicateAndKey_NullListener() throws Exception {
MapListener mapListener = null;
Predicate predicate = new TruePredicate();
map.addLocalEntryListener(mapListener, predicate, null, false);
}
Aggregations