public abstract class AbstractContainerTest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractContainerTest.PauseableServer |
Modifier and Type | Field and Description |
---|---|
protected static String |
BASEURI |
static int |
port |
protected static AbstractContainerTest.PauseableServer |
server |
protected com.gargoylesoftware.htmlunit.WebClient |
webClient |
Constructor and Description |
---|
AbstractContainerTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertErrorTextNotPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page) |
protected void |
assertErrorTextPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page) |
protected void |
assertXPathNotPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page,
String xpath)
Verifies that the specified xpath does NOT appear anywhere on the page.
|
protected void |
assertXPathPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page,
String xpath)
Verifies that the specified xpath is somewhere on the page.
|
org.eclipse.jetty.webapp.WebAppContext |
buildContext()
Non-abstract hook method (with a default implementation) to allow subclasses to provide their own WebAppContext instance.
|
protected com.gargoylesoftware.htmlunit.html.HtmlPage |
clickButton(com.gargoylesoftware.htmlunit.html.HtmlForm form,
String buttonValue) |
protected com.gargoylesoftware.htmlunit.html.HtmlPage |
clickButton(com.gargoylesoftware.htmlunit.html.HtmlPage page,
String buttonId) |
protected com.gargoylesoftware.htmlunit.html.HtmlPage |
clickLink(com.gargoylesoftware.htmlunit.html.HtmlPage page,
String linkText) |
void |
pauseServer(boolean paused) |
void |
startContainer() |
protected static AbstractContainerTest.PauseableServer server
public static int port
protected final com.gargoylesoftware.htmlunit.WebClient webClient
public AbstractContainerTest()
public void startContainer() throws Exception
Exception
public org.eclipse.jetty.webapp.WebAppContext buildContext()
public void pauseServer(boolean paused)
protected void assertXPathPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page, String xpath)
page
- xpath
- protected void assertXPathNotPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page, String xpath)
page
- xpath
- protected com.gargoylesoftware.htmlunit.html.HtmlPage clickLink(com.gargoylesoftware.htmlunit.html.HtmlPage page, String linkText)
protected com.gargoylesoftware.htmlunit.html.HtmlPage clickButton(com.gargoylesoftware.htmlunit.html.HtmlPage page, String buttonId) throws IOException
IOException
protected com.gargoylesoftware.htmlunit.html.HtmlPage clickButton(com.gargoylesoftware.htmlunit.html.HtmlForm form, String buttonValue) throws IOException
IOException
protected void assertErrorTextPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page)
protected void assertErrorTextNotPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page)
Copyright © 2004–2015. All rights reserved.