Package com.hamburgsud.log4testing.core.data

Examples of com.hamburgsud.log4testing.core.data.TestSuite.addTestCase()


    TestCase testCase1 = new TestCase("TestCase1");
    testCase1.newTestStepGroup("TestStepGroup1");
    testCase1.addTestStep(OKTestStep());
    testCase1.addTestStep(OKTestStep());
    Assert.assertNotFailed(testCase1);
    testSuite.addTestCase(testCase1);
    Assert.assertNotFailed(testSuite);
  }

  /**
   * Tests the assertion assertNotFailed for TestCases with ErrorTestStep
View Full Code Here


    TestSuite testSuite = new TestSuite("TestSuite1");
    TestCase testCase1 = new TestCase("TestCase1");
    testCase1.newTestStepGroup("TestStepGroup1");
    testCase1.addTestStep(OKTestStep());
    testCase1.addTestStep(ErrorTestStep());
    testSuite.addTestCase(testCase1);
    Assert.assertNotFailed(testSuite);
  }

  /**
   * Tests the assertion assertThatNone
View Full Code Here

    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);
  }

  /**
   * Help Functions
View Full Code Here

  @Test
  public void test() {
    TestSuite testSuite = TestLogger.getTestSuite("My TestSuite");
    TestCase testCase = TestLogger.getTestCase("example.TestCase");
    testSuite.addTestCase(testCase);
    testCase.newTestStepGroup("Create");
    TestStep okTestStep = getOkTestStep();
    TestStep errorTestStep = getErrorTestStep();
    testCase.addTestStep(errorTestStep);
    testCase.addTestStep(okTestStep);
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.