org.tynamo.test
Class AbstractContainerTest

java.lang.Object
  extended by org.tynamo.test.AbstractContainerTest

public abstract class AbstractContainerTest
extends Object


Nested Class Summary
static class AbstractContainerTest.PauseableServer
           
 
Field Summary
protected static String BASEURI
           
protected static int port
           
protected static AbstractContainerTest.PauseableServer server
           
protected  com.gargoylesoftware.htmlunit.WebClient webClient
           
 
Constructor Summary
AbstractContainerTest()
           
 
Method Summary
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)
           
protected  void assertXPathPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page, String xpath)
           
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 configureWebClient()
           
 void pauseServer(boolean paused)
           
static void startContainer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

protected static AbstractContainerTest.PauseableServer server

port

protected static final int port
See Also:
Constant Field Values

BASEURI

protected static final String BASEURI
See Also:
Constant Field Values

webClient

protected final com.gargoylesoftware.htmlunit.WebClient webClient
Constructor Detail

AbstractContainerTest

public AbstractContainerTest()
Method Detail

startContainer

public static void startContainer()
                           throws Exception
Throws:
Exception

configureWebClient

public void configureWebClient()

pauseServer

public void pauseServer(boolean paused)

assertXPathPresent

protected void assertXPathPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                  String xpath)
                           throws Exception
Throws:
Exception

assertXPathNotPresent

protected void assertXPathNotPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                     String xpath)
                              throws Exception
Throws:
Exception

clickLink

protected com.gargoylesoftware.htmlunit.html.HtmlPage clickLink(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                                                String linkText)

clickButton

protected com.gargoylesoftware.htmlunit.html.HtmlPage clickButton(com.gargoylesoftware.htmlunit.html.HtmlPage page,
                                                                  String buttonId)
                                                           throws IOException
Throws:
IOException

clickButton

protected com.gargoylesoftware.htmlunit.html.HtmlPage clickButton(com.gargoylesoftware.htmlunit.html.HtmlForm form,
                                                                  String buttonValue)
                                                           throws IOException
Throws:
IOException

assertErrorTextPresent

protected void assertErrorTextPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page)

assertErrorTextNotPresent

protected void assertErrorTextNotPresent(com.gargoylesoftware.htmlunit.html.HtmlPage page)


Copyright © 2004-2009. All Rights Reserved.