Search in sources :

Example 1 with CreateWorkerOperation

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);
}
Also used : CreateWorkerOperation(com.hazelcast.simulator.agent.operations.CreateWorkerOperation) Test(org.junit.Test)

Example 2 with CreateWorkerOperation

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);
}
Also used : CreateWorkerOperation(com.hazelcast.simulator.agent.operations.CreateWorkerOperation) Test(org.junit.Test)

Example 3 with CreateWorkerOperation

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);
}
Also used : CreateWorkerOperation(com.hazelcast.simulator.agent.operations.CreateWorkerOperation) WorkerParameters(com.hazelcast.simulator.agent.workerprocess.WorkerParameters) Test(org.junit.Test)

Aggregations

CreateWorkerOperation (com.hazelcast.simulator.agent.operations.CreateWorkerOperation)3 Test (org.junit.Test)3 WorkerParameters (com.hazelcast.simulator.agent.workerprocess.WorkerParameters)1