use of com.hazelcast.simulator.coordinator.operations.RcTestRunOperation in project hazelcast-simulator by hazelcast.
the class CoordinatorRemoteImplTest method test_RcTestRunOperation.
@Test
public void test_RcTestRunOperation() throws Exception {
TestSuite suite = mock(TestSuite.class);
RcTestRunOperation op = new RcTestRunOperation(suite);
String expected = "test";
when(coordinator.testRun(op)).thenReturn(expected);
String result = remote.execute(op);
assertSame(expected, result);
}
use of com.hazelcast.simulator.coordinator.operations.RcTestRunOperation 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);
}
use of com.hazelcast.simulator.coordinator.operations.RcTestRunOperation in project hazelcast-simulator by hazelcast.
the class Runner method run.
public void run() throws Exception {
prepareClassPathForUploading();
Coordinator coordinator = newCoordinator();
try {
startMembers(coordinator);
startClients(coordinator);
TestSuite suite = newTestSuite();
coordinator.testRun(new RcTestRunOperation(suite));
} finally {
coordinator.close();
}
}
Aggregations