use of com.hazelcast.simulator.tests.DummyTest in project hazelcast-simulator by hazelcast.
the class PerformanceMonitorTest method test_whenTestRunning_thenSendPerformanceStats.
@Test
public void test_whenTestRunning_thenSendPerformanceStats() {
performanceMonitor.start();
sleepMillis(300);
DummyTest test = new DummyTest();
TestContext testContext = addTest(test);
Thread runTestThread = new RunTestThread();
runTestThread.start();
assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertPerfStatsSend();
}
});
testContext.stop();
joinThread(runTestThread);
performanceMonitor.close();
}
use of com.hazelcast.simulator.tests.DummyTest in project hazelcast-simulator by hazelcast.
the class PerformanceMonitorTest method test_whenTestWithProbeWhichIsNotRunning_thenDoNothing.
@Test
public void test_whenTestWithProbeWhichIsNotRunning_thenDoNothing() {
addTest(new DummyTest());
performanceMonitor.start();
verifyNoMoreInteractions(server);
}
Aggregations