Search in sources :

Example 1 with TestPrimitiveType

use of io.atomix.primitive.TestPrimitiveType in project atomix by atomix.

the class DefaultServiceExecutorTest method executor.

private ServiceExecutor executor() {
    ServiceContext context = mock(ServiceContext.class);
    when(context.serviceId()).thenReturn(PrimitiveId.from(1));
    when(context.serviceType()).thenReturn(new TestPrimitiveType());
    when(context.serviceName()).thenReturn("test");
    when(context.currentOperation()).thenReturn(OperationType.COMMAND);
    return new DefaultServiceExecutor(context);
}
Also used : TestPrimitiveType(io.atomix.primitive.TestPrimitiveType) DefaultServiceExecutor(io.atomix.primitive.service.impl.DefaultServiceExecutor)

Aggregations

TestPrimitiveType (io.atomix.primitive.TestPrimitiveType)1 DefaultServiceExecutor (io.atomix.primitive.service.impl.DefaultServiceExecutor)1