Package com.hamburgsud.log4testing.core.data

Examples of com.hamburgsud.log4testing.core.data.TestStep.finish()


  public void testAssertOk() {
    testCase.newTestStepGroup("My simple Test");
    final TestStep testStep = testCase.newTestStep(TestStatus.OK,
        "mySimpleTestCommand", "This is just a simple test.",
        "Everything is working fine.");
    testStep.finish();
    Assert.assertOk(testStep);
  }

  /**
   * Tests the assertion assertOK with a Error TestStep
View Full Code Here


    TestCase testCase1 = new TestCase("TestCase1");
    testCase1.newTestStepGroup("TestStepGroup1");
    final TestStep testStep = testCase.newTestStep(TestStatus.OK,
        "mySimpleTestCommand", "This is just a simple test.",
        "Everything is working fine.");
    testStep.finish();
    testCase1.addTestStep(testStep);
    testSuite1.addTestCase(testCase1);
    Assert.assertOk(testSuite1);
  }
View Full Code Here

  @Test
  public void testGetFinishingTime() {
    assertNull(testCase.getFinishingTime());
    final TestStep firstTestStep = testCase.newTestStep();
    firstTestStep.finish();
    assertSame(firstTestStep.getFinishingTime(), testCase
        .getFinishingTime());
    final TestStep lastTestStep = testCase.newTestStep();
    lastTestStep.finish();
    assertNotSame(firstTestStep.getFinishingTime(), testCase
View Full Code Here

    final TestStep firstTestStep = testCase.newTestStep();
    firstTestStep.finish();
    assertSame(firstTestStep.getFinishingTime(), testCase
        .getFinishingTime());
    final TestStep lastTestStep = testCase.newTestStep();
    lastTestStep.finish();
    assertNotSame(firstTestStep.getFinishingTime(), testCase
        .getFinishingTime());
    assertSame(lastTestStep.getFinishingTime(), testCase.getFinishingTime());
  }
View Full Code Here

  @Test
  public void testIsFinished() {
    assertFalse(testCase.isFinished());
    final TestStep firstTestStep = testCase.newTestStep();
    assertFalse(testCase.isFinished());
    firstTestStep.finish();
    assertTrue(testCase.isFinished());
    final TestStep secondTestStep = testCase.newTestStep();
    assertFalse(testCase.isFinished());
    secondTestStep.setStatus(TestStatus.OK);
    assertTrue(testCase.isFinished());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.