use of com.hazelcast.simulator.agent.operations.CreateWorkerOperation in project hazelcast-simulator by hazelcast.
the class CoordinatorRemoteImplTest method test_UnknownOperation.
@Test(expected = ProcessException.class)
public void test_UnknownOperation() throws Exception {
CreateWorkerOperation op = mock(CreateWorkerOperation.class);
remote.execute(op);
}
use of com.hazelcast.simulator.agent.operations.CreateWorkerOperation in project hazelcast-simulator by hazelcast.
the class CoordinatorOperationProcessorTest method test_whenUnknownOperation.
@Test(expected = ProcessException.class)
public void test_whenUnknownOperation() throws Exception {
CreateWorkerOperation op = mock(CreateWorkerOperation.class);
processor.process(op, address, promise);
}
use of com.hazelcast.simulator.agent.operations.CreateWorkerOperation in project hazelcast-simulator by hazelcast.
the class AgentOperationProcessorTest method testCreateWorkerOperation.
@Test
public void testCreateWorkerOperation() throws Exception {
CreateWorkerOperation op = new CreateWorkerOperation(new WorkerParameters(), 1);
processor.process(op, source, promise);
verify(processManager).launch(op, promise);
}
Aggregations