Examples of newTestStepGroup()


Examples of com.hamburgsud.log4testing.core.data.TestCase.newTestStepGroup()

   */
  @Test
  public void testAssertNotFailedTsc() {
    TestSuite testSuite = new TestSuite("TestSuite1");
    TestCase testCase1 = new TestCase("TestCase1");
    testCase1.newTestStepGroup("TestStepGroup1");
    testCase1.addTestStep(OKTestStep());
    testCase1.addTestStep(OKTestStep());
    Assert.assertNotFailed(testCase1);
    testSuite.addTestCase(testCase1);
    Assert.assertNotFailed(testSuite);
View Full Code Here

Examples of com.hamburgsud.log4testing.core.data.TestCase.newTestStepGroup()

   * Tests the assertion assertNotFailed for TestCases with ErrorTestStep
   */
  @Test(expected = AssertionError.class)
  public void testAssertNotFailedTscTCAssertionError() {
    TestCase testCase1 = new TestCase("TestCase1");
    testCase1.newTestStepGroup("TestStepGroup1");
    testCase1.addTestStep(OKTestStep());
    testCase1.addTestStep(ErrorTestStep());
    Assert.assertNotFailed(testCase1);
  }

View Full Code Here

Examples of com.hamburgsud.log4testing.core.data.TestCase.newTestStepGroup()

   */
  @Test(expected = AssertionError.class)
  public void testAssertNotFailedTscTSAssertionError() {
    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);
  }
View Full Code Here

Examples of com.hamburgsud.log4testing.core.data.TestCase.newTestStepGroup()

   */
  @Test
  public void testAssertOkTS() {
    TestSuite testSuite1 = new TestSuite("TestSuite1");
    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);
View Full Code Here

Examples of com.hamburgsud.log4testing.core.data.TestCase.newTestStepGroup()

  /**
   * Creates a TestCase with an OK TestStep
   */
  public TestCase createTCOK() {
    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.");
    testCase1.addTestStep(testStep);
    return testCase1;
View Full Code Here

Examples of com.hamburgsud.log4testing.core.data.TestCase.newTestStepGroup()

  @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);
    TestLogger.tearDown();
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.