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);
}
Aggregations