Add AsyncEventQueue ID as the AsyncEventQueue mock object name.

Edit Javadoc.
This commit is contained in:
John Blum
2018-09-18 18:26:28 -07:00
parent fab30904b0
commit d5308633bc

View File

@@ -24,8 +24,8 @@ import org.apache.geode.cache.wan.GatewaySender;
/**
* The {@link AsyncEventQueueMockObjects} class is a mock objects class allowing users to manually mock Apache Geode
* or Pivotal GemFire {@link AsyncEventQueue} related objects in the {@literal org.apache.geode.cache.asyncqueue}
* package.
* or Pivotal GemFire {@link AsyncEventQueue} objects and related objects in the
* {@literal org.apache.geode.cache.asyncqueue} package.
*
* @author John Blum
* @see org.apache.geode.cache.asyncqueue.AsyncEventQueue
@@ -40,7 +40,7 @@ public abstract class AsyncEventQueueMockObjects {
boolean forwardExpirationDestroy, int maximumQueueMemory, GatewaySender.OrderPolicy orderPolicy,
boolean parallel, boolean persistent, boolean primary, int size) {
AsyncEventQueue mockAsyncEventQueue = mock(AsyncEventQueue.class);
AsyncEventQueue mockAsyncEventQueue = mock(AsyncEventQueue.class, id);
when(mockAsyncEventQueue.getId()).thenReturn(id);
when(mockAsyncEventQueue.isBatchConflationEnabled()).thenReturn(batchConflationEnabled);