use of com.hazelcast.core.EntryListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddLocalEntryListenerWithEntryListenerAndPredicate_NullListener.
@Test(expected = NullPointerException.class)
public void testAddLocalEntryListenerWithEntryListenerAndPredicate_NullListener() {
EntryListener entryListener = null;
Predicate predicate = new TruePredicate();
map.addLocalEntryListener(entryListener, predicate, false);
}
use of com.hazelcast.core.EntryListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddEntryListenerWithEntryListenerAndPredicateAndKey_NullPredicate.
@Test(expected = NullPointerException.class)
public void testAddEntryListenerWithEntryListenerAndPredicateAndKey_NullPredicate() {
EntryListener entryListener = new TestEntryListener();
Predicate predicate = null;
map.addEntryListener(entryListener, predicate, null, true);
}
use of com.hazelcast.core.EntryListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddLocalEntryListenerWithEntryListenerAndPredicateAndKey_NullListener.
@Test(expected = NullPointerException.class)
public void testAddLocalEntryListenerWithEntryListenerAndPredicateAndKey_NullListener() {
EntryListener entryListener = null;
Predicate predicate = new TruePredicate();
map.addLocalEntryListener(entryListener, predicate, null, false);
}
use of com.hazelcast.core.EntryListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddEntryListenerWithEntryListenerAndPredicateAndKey_NullListener.
@Test(expected = NullPointerException.class)
public void testAddEntryListenerWithEntryListenerAndPredicateAndKey_NullListener() {
EntryListener entryListener = null;
Predicate predicate = new TruePredicate();
map.addEntryListener(entryListener, predicate, null, false);
}
use of com.hazelcast.core.EntryListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddEntryListenerWithEntryListenerAndKey_NullListener.
@Test(expected = NullPointerException.class)
public void testAddEntryListenerWithEntryListenerAndKey_NullListener() throws Exception {
EntryListener entryListener = null;
Integer i = 3;
map.addEntryListener(entryListener, i, false);
}
Aggregations