com.atlassian.confluence.htmlunit
Class WebTesterAssertions
java.lang.Object
com.atlassian.confluence.htmlunit.WebTesterAssertions
public class WebTesterAssertions
- extends Object
Assertions that revolve around a WebTester
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 |
WebTesterAssertions
public WebTesterAssertions()
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 WebTesterpageTitle
- 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 WebTesterpageTitle
- The title displayed before the first separatorspaceTitle
- The title displayed for the tested space
Copyright © 2003-2012 Atlassian. All Rights Reserved.