com.atlassian.confluence.htmlunit
Class WebTesterAssertions

java.lang.Object
  extended by com.atlassian.confluence.htmlunit.WebTesterAssertions

public class WebTesterAssertions
extends Object

Assertions that revolve around a WebTester


Constructor Summary
WebTesterAssertions()
           
 
Method Summary
static void assertPageTitleEquals(net.sourceforge.jwebunit.junit.WebTester webTester, String pageTitle)
          Asserts that the title equals the passed pageTitle plus the site suffix (usually SITE_TITLE_SUFFIX)
e.g.
static void assertTitleEquals(net.sourceforge.jwebunit.junit.WebTester webTester, String pageTitle, String spaceTitle)
          Asserts that the title equals the passed pageTitle plus separator plus spaceTitle plus site suffix (usually SITE_TITLE_SUFFIX).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebTesterAssertions

public WebTesterAssertions()
Method Detail

assertPageTitleEquals

public static void assertPageTitleEquals(net.sourceforge.jwebunit.junit.WebTester webTester,
                                         String pageTitle)
Asserts that the title equals the passed pageTitle plus the site suffix (usually SITE_TITLE_SUFFIX)
e.g. "Dashboard - Confluence"

Parameters:
webTester - The WebTester
pageTitle - The title displayed before the first separator

assertTitleEquals

public static void assertTitleEquals(net.sourceforge.jwebunit.junit.WebTester webTester,
                                     String pageTitle,
                                     String spaceTitle)
Asserts that the title equals the passed pageTitle plus separator plus spaceTitle plus site suffix (usually SITE_TITLE_SUFFIX).
e.g. "Home - Test Space - Confluence"

Parameters:
webTester - The WebTester
pageTitle - The title displayed before the first separator
spaceTitle - The title displayed for the tested space


Copyright © 2003-2012 Atlassian. All Rights Reserved.