use of com.hazelcast.simulator.coordinator.operations.RcTestStopOperation in project hazelcast-simulator by hazelcast.
the class CoordinatorRemoteImplTest method test_RcTestStopOperation.
@Test
public void test_RcTestStopOperation() throws Exception {
RcTestStopOperation op = new RcTestStopOperation("testId");
String expected = "ready";
when(coordinator.testStop(op)).thenReturn(expected);
String result = remote.execute(op);
assertSame(expected, result);
}
use of com.hazelcast.simulator.coordinator.operations.RcTestStopOperation in project hazelcast-simulator by hazelcast.
the class CoordinatorTest method testStopTest.
@Test
public void testStopTest() throws Exception {
coordinator.workerStart(new RcWorkerStartOperation().setHzConfig(hzConfig));
TestSuite suite = newBasicTestSuite().setDurationSeconds(0);
String testId = coordinator.testRun(new RcTestRunOperation(suite).setAsync(true));
assertTestStateEventually(testId, "run");
coordinator.testStop(new RcTestStopOperation(testId));
assertTestCompletesEventually(testId);
}
Aggregations