use of org.apache.geode.internal.cache.wan.serial.BatchDestroyOperation.DestroyMessage in project geode by apache.
the class DestroyMessageTest method shouldBeMockable.
@Test
public void shouldBeMockable() throws Exception {
DestroyMessage mockDestroyMessageX = mock(DestroyMessage.class);
InternalCacheEvent mockInternalCacheEvent = mock(InternalCacheEvent.class);
DistributedRegion mockDistributedRegion = mock(DistributedRegion.class);
when(mockDestroyMessageX.createEvent(eq(mockDistributedRegion))).thenReturn(mockInternalCacheEvent);
assertThat(mockDestroyMessageX.createEvent(mockDistributedRegion)).isSameAs(mockInternalCacheEvent);
}
Aggregations