use of com.hazelcast.core.EntryEvent in project camel by apache.
the class HazelcastMapConsumerTest method testUpdate.
@Test
@SuppressWarnings("unchecked")
public void testUpdate() throws InterruptedException {
MockEndpoint out = getMockEndpoint("mock:updated");
out.expectedMessageCount(1);
EntryEvent<Object, Object> event = new EntryEvent<Object, Object>("foo", null, EntryEventType.UPDATED.getType(), "4711", "my-foo");
argument.getValue().entryUpdated(event);
assertMockEndpointsSatisfied(5000, TimeUnit.MILLISECONDS);
this.checkHeaders(out.getExchanges().get(0).getIn().getHeaders(), HazelcastConstants.UPDATED);
}
use of com.hazelcast.core.EntryEvent in project camel by apache.
the class HazelcastMapConsumerTest method testEnict.
@Test
@SuppressWarnings("unchecked")
public void testEnict() throws InterruptedException {
MockEndpoint out = super.getMockEndpoint("mock:evicted");
out.expectedMessageCount(1);
EntryEvent<Object, Object> event = new EntryEvent<Object, Object>("foo", null, EntryEventType.EVICTED.getType(), "4711", "my-foo");
argument.getValue().entryEvicted(event);
assertMockEndpointsSatisfied(30000, TimeUnit.MILLISECONDS);
}
Aggregations