use of com.hazelcast.simulator.tests.SuccessTest in project hazelcast-simulator by hazelcast.
the class PerformanceMonitorTest method test_whenTestWithoutProbe_thenDoNothing.
@Test
public void test_whenTestWithoutProbe_thenDoNothing() {
addTest(new SuccessTest());
performanceMonitor.start();
verifyNoMoreInteractions(server);
}
use of com.hazelcast.simulator.tests.SuccessTest in project hazelcast-simulator by hazelcast.
the class TestContainer_BasicTest method testConstructor_withTestcase.
@Test
public void testConstructor_withTestcase() {
TestCase testCase = new TestCase("TestContainerWithTestcaseTest").setProperty("class", SuccessTest.class.getName());
testContainer = new TestContainer(testContext, testCase, (Object) null);
assertNotNull(testContainer.getTestInstance());
assertTrue(testContainer.getTestInstance() instanceof SuccessTest);
}
use of com.hazelcast.simulator.tests.SuccessTest in project hazelcast-simulator by hazelcast.
the class TestContainer_BasicTest method testConstructor_withTestClassInstance.
@Test
public void testConstructor_withTestClassInstance() {
SuccessTest test = new SuccessTest();
testContainer = new TestContainer(testContext, test, new TestCase("foo"));
assertEquals(test, testContainer.getTestInstance());
assertTrue(testContainer.getTestInstance() instanceof SuccessTest);
}
Aggregations