Package fitnesse.wiki

Examples of fitnesse.wiki.WikiPageDummy


    assertTrue("Should have canned Content", hasSubString("some string", output));
  }

  @Test
  public void testNotFound() throws Exception {
    String output = getSocketOutput("GET /WikiWord HTTP/1.1\r\n\r\n", new WikiPageDummy());

    assertSubString("Page doesn't exist.", output);
  }
View Full Code Here


    assertSubString("Page doesn't exist.", output);
  }

  @Test
  public void testBadRequest() throws Exception {
    String output = getSocketOutput("Bad Request \r\n\r\n", new WikiPageDummy());

    assertSubString("400 Bad Request", output);
    assertSubString("The request string is malformed and can not be parsed", output);
  }
View Full Code Here

    WikiTestPage wp = buildNestedTestPage();
    assertEquals(nestedPageName, wp.getFullPath());
  }

  private WikiTestPage buildNestedTestPage() throws Exception {
    WikiPageDummy root = new WikiPageDummy("root", null, null);
    WikiPageDummy parent=new WikiPageDummy("ParentTest",null, root);
    WikiPageDummy wp=new WikiPageDummy("ChildTest",null, parent);
    return new WikiTestPage(wp, variableSource);
  }
View Full Code Here

  }

  @Test
  public void writeSummary_WritesSummaryOfTestExecutions() throws Exception{
    jf.testComplete(buildNestedTestPage(), new TestSummary(5,6,7,8));
    WikiPageDummy root = new WikiPageDummy("root", null, null);
    WikiPageDummy secondPage=new WikiPageDummy("SecondPage", null, root);
    jf.testComplete(new WikiTestPage(secondPage, variableSource), new TestSummary(11,12,13,14));
    jf.writeSummary("SummaryPageName");
    String expectedOutput = new StringBuffer()
            .append(JavaFormatter.TestResultsSummaryTable.SUMMARY_HEADER)
            .append(new JavaFormatter.TestResultsSummaryTableRow(nestedPageName, new TestSummary(5,6,7,8)).toString())
View Full Code Here

    verify(mockResultsRepository, times(1)).write(expectedOutput);
  }

  @Test
  public void testComplete_clones_TestSummary_Objects() throws Exception{
    WikiPageDummy root = new WikiPageDummy("root", null, null);
    WikiPageDummy secondPage=new WikiPageDummy("SecondPage", null, root);

    TestSummary ts=new TestSummary(5,6,7,8);
    jf.testComplete(buildNestedTestPage(), ts);
    ts.add(ExecutionResult.PASS);
    ts.add(ExecutionResult.FAIL);
View Full Code Here

TOP

Related Classes of fitnesse.wiki.WikiPageDummy

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.