Search in sources :

Example 1 with SuccessTest

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);
}
Also used : SuccessTest(com.hazelcast.simulator.tests.SuccessTest) SuccessTest(com.hazelcast.simulator.tests.SuccessTest) Test(org.junit.Test) DummyTest(com.hazelcast.simulator.tests.DummyTest)

Example 2 with SuccessTest

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);
}
Also used : TestCase(com.hazelcast.simulator.common.TestCase) SuccessTest(com.hazelcast.simulator.tests.SuccessTest) SuccessTest(com.hazelcast.simulator.tests.SuccessTest) Test(org.junit.Test)

Example 3 with 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);
}
Also used : SuccessTest(com.hazelcast.simulator.tests.SuccessTest) TestCase(com.hazelcast.simulator.common.TestCase) SuccessTest(com.hazelcast.simulator.tests.SuccessTest) Test(org.junit.Test)

Aggregations

SuccessTest (com.hazelcast.simulator.tests.SuccessTest)3 Test (org.junit.Test)3 TestCase (com.hazelcast.simulator.common.TestCase)2 DummyTest (com.hazelcast.simulator.tests.DummyTest)1