Search in sources :

Example 6 with FailureOperation

use of com.hazelcast.simulator.coordinator.operations.FailureOperation in project hazelcast-simulator by hazelcast.

the class CoordinatorOperationProcessorTest method test_whenFailureOperation.

@Test
public void test_whenFailureOperation() throws Exception {
    FailureOperation op = mock(FailureOperation.class);
    processor.process(op, address, promise);
    verify(failureCollector).notify(op);
}
Also used : FailureOperation(com.hazelcast.simulator.coordinator.operations.FailureOperation) Test(org.junit.Test)

Aggregations

FailureOperation (com.hazelcast.simulator.coordinator.operations.FailureOperation)6 Test (org.junit.Test)3 SimulatorAddress (com.hazelcast.simulator.protocol.core.SimulatorAddress)2 WorkerParameters (com.hazelcast.simulator.agent.workerprocess.WorkerParameters)1 TestCase (com.hazelcast.simulator.common.TestCase)1 Registry (com.hazelcast.simulator.coordinator.registry.Registry)1 ProcessException (com.hazelcast.simulator.protocol.exception.ProcessException)1 LogOperation (com.hazelcast.simulator.protocol.operation.LogOperation)1 PerformanceStatsOperation (com.hazelcast.simulator.worker.operations.PerformanceStatsOperation)1 Before (org.junit.Before)1