use of org.apache.geode.internal.cache.wan.parallel.ParallelGatewaySenderQueue.MetaRegionFactory in project geode by apache.
the class ParallelGatewaySenderQueueJUnitTest method createParallelGatewaySenderQueue.
@Before
public void createParallelGatewaySenderQueue() {
cache = mock(GemFireCacheImpl.class);
sender = mock(AbstractGatewaySender.class);
CancelCriterion cancelCriterion = mock(CancelCriterion.class);
when(sender.getCancelCriterion()).thenReturn(cancelCriterion);
when(sender.getCache()).thenReturn(cache);
when(sender.getMaximumQueueMemory()).thenReturn(100);
when(sender.getLifeCycleLock()).thenReturn(new ReentrantReadWriteLock());
metaRegionFactory = mock(MetaRegionFactory.class);
queue = new ParallelGatewaySenderQueue(sender, Collections.emptySet(), 0, 1, metaRegionFactory);
}
Aggregations