use of com.hazelcast.core.EntryListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddLocalEntryListenerWithEntryListener.
@Test(expected = UnsupportedOperationException.class)
public void testAddLocalEntryListenerWithEntryListener() throws Exception {
EntryListener entryListener = null;
map.addLocalEntryListener(entryListener);
}
use of com.hazelcast.core.EntryListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddLocalEntryListenerWithEntryListenerAndPredicateAndKey_NullListener.
@Test(expected = UnsupportedOperationException.class)
public void testAddLocalEntryListenerWithEntryListenerAndPredicateAndKey_NullListener() throws Exception {
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 testAddEntryListenerWithEntryListenerAndPredicate_NullPredicate.
@Test(expected = NullPointerException.class)
public void testAddEntryListenerWithEntryListenerAndPredicate_NullPredicate() throws Exception {
EntryListener entryListener = new TestEntryListener();
Predicate predicate = null;
map.addEntryListener(entryListener, predicate, true);
}
use of com.hazelcast.core.EntryListener in project hazelcast by hazelcast.
the class MapPreconditionsTest method testAddLocalEntryListenerWithEntryListenerAndPredicate_NullPredicate.
@Test(expected = UnsupportedOperationException.class)
public void testAddLocalEntryListenerWithEntryListenerAndPredicate_NullPredicate() throws Exception {
EntryListener entryListener = new TestEntryListener();
Predicate predicate = null;
map.addLocalEntryListener(entryListener, predicate, true);
}
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() throws Exception {
EntryListener entryListener = null;
Predicate predicate = new TruePredicate();
map.addEntryListener(entryListener, predicate, null, false);
}
Aggregations