Package fitnesse.testsystems

Examples of fitnesse.testsystems.TestPage


      }
    }
   
    @Test
    public void testNewTestStarted() throws Exception {
      TestPage test = new TestPage(new WikiPageDummy());
        TimeMeasurement timeMeasurement = new TimeMeasurement();
     
      delegatingListener.newTestStarted(test, timeMeasurement);
     
      for(int i = 0 ; i < DELEGATE_COUNT ; i++) {
View Full Code Here


      }
    }
   
    @Test
    public void testTestComplete() throws Exception {
      TestPage test = new TestPage(new WikiPageDummy());
        TestSummary testSummary = new TestSummary();
        TimeMeasurement timeMeasurement = new TimeMeasurement();
     
      delegatingListener.testComplete(test, testSummary, timeMeasurement);
     
View Full Code Here

  }

  @Test
  public void testIncludeSetupTearDownOutsideOfSuite()
    throws Exception {
    TestPage testPage = new WikiTestPage(wikiPage, variableSource);
    String html = testPage.getHtml();
    assertSubString(".SetUp", html);
    assertSubString("setup", html);
    assertSubString(".TearDown", html);
    assertSubString("teardown", html);
    assertSubString("the content", html);
View Full Code Here

    assertNotSubString("suitTearDown", html);
  }

  @Test
  public void testIncludeSetupTearDownInsideOfSuite() throws Exception {
    TestPage test = new TestPageWithSuiteSetUpAndTearDown(wikiPage, variableSource);
    String html = test.getHtml();
    assertSubString(".SetUp", html);
    assertSubString("setup", html);
    assertSubString(".TearDown", html);
    assertSubString("teardown", html);
    assertSubString("the content", html);
View Full Code Here

  }
 
  @Test
  public void includeScenarioLibraryBrother() throws Exception {
    WikiPage slimTestPage = addPage("SlimTest", "!define TEST_SYSTEM {slim}\n");
    TestPage testPage = new WikiTestPage(slimTestPage, variableSource);
    addPage("ScenarioLibrary", "scenario library");
    String html = testPage.getHtml();
    assertSubString("scenario library", html);
  }
View Full Code Here

    addPage("TestPage.TestPageChild", "child");
    addPage("TestPage.ScenarioLibrary", "child library");
    WikiPage nephew = addPage("TestPage.TestPageChild.TestPageGrandChild", "!define TEST_SYSTEM {slim}\n");
    addPage("TestPage.TestPageChild.ScenarioLibrary", "grand child library");

    TestPage testPage = new WikiTestPage(nephew, variableSource);
    String html = testPage.getHtml();
    assertSubString("child library", html);
    assertSubString("grand child library", html);
    assertSubString("TestPage.ScenarioLibrary", html);
    assertSubString("TestPage.TestPageChild.ScenarioLibrary", html);
    assertSubString("Scenario Libraries", html);
View Full Code Here

  }

  @Test
  public void shouldNotContainScenarioLibrarySectionIfThereAreNone() throws Exception {
    WikiPage slimTestPage = addPage("SlimTest", "!define TEST_SYSTEM {slim}\n");
    TestPage testPage = new WikiTestPage(slimTestPage, variableSource);
    String html = testPage.getHtml();
    assertNotSubString("Scenario Libraries", html);
  }
View Full Code Here

  @Test
  public void shouldNotIncludeScenarioLibrariesIfNotSlimTest() throws Exception {
    addPage("ScenarioLibrary", "scenario library");
    WikiPage someTest = addPage("SomeTest", "some test");
    TestPage testPage = new WikiTestPage(someTest, variableSource);
    String html = testPage.getHtml();
    assertNotSubString("scenario library", html);
  }
View Full Code Here

  }

  @Test
  public void shouldIncludeScenarioLibrariesIfIncludeVariableSetAndNotSlimTest() throws Exception {
    WikiPage slimTestPage = addPage("SlimTest", "!define INCLUDE_SCENARIO_LIBRARIES {true}\n");
    TestPage testPage = new WikiTestPage(slimTestPage, variableSource);
    addPage("ScenarioLibrary", "scenario library");
    String html = testPage.getHtml();
    assertSubString("scenario library", html);
  }
View Full Code Here

  }

  @Test
  public void shouldNotIncludeScenarioLibrariesIfSlimTestAndIncludeVariableSetToFalse() throws Exception {
    WikiPage slimTestPage = addPage("SlimTest", "!define TEST_SYSTEM {slim}\n!define INCLUDE_SCENARIO_LIBRARIES {false}\n");
    TestPage testPage = new WikiTestPage(slimTestPage, variableSource);
    addPage("ScenarioLibrary", "scenario library");
    String html = testPage.getHtml();
    assertNotSubString("scenario library", html);
  }
View Full Code Here

TOP

Related Classes of fitnesse.testsystems.TestPage

Copyright © 2018 www.massapicom. 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.