com.mockrunner.base
Class BasicHTMLOutputTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.mockrunner.base.BasicWebTestCase
              extended by com.mockrunner.base.BasicHTMLOutputTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
BasicActionTestCaseAdapter, BasicServletTestCaseAdapter, BasicTagTestCaseAdapter

public abstract class BasicHTMLOutputTestCase
extends BasicWebTestCase

Delegator for HTMLOutputModule. The corresponding adapters extend this class. This class is used for the basic adapter versions.


Constructor Summary
BasicHTMLOutputTestCase()
           
BasicHTMLOutputTestCase(java.lang.String arg0)
           
 
Method Summary
protected abstract  HTMLOutputModule getHTMLOutputModule()
          Implemented by concrete subclasses.
protected  java.lang.String getOutput()
          Delegates to HTMLOutputModule.getOutput()
protected  java.io.BufferedReader getOutputAsBufferedReader()
          Delegates to HTMLOutputModule.getOutputAsBufferedReader()
protected  org.jdom.Document getOutputAsJDOMDocument()
          Delegates to HTMLOutputModule.getOutputAsJDOMDocument()
protected  org.w3c.dom.Document getOutputAsW3CDocument()
          Delegates to HTMLOutputModule.getOutputAsW3CDocument()
protected  java.lang.String getOutputAsWellformedXML()
          Delegates to HTMLOutputModule.getOutputAsWellformedXML()
protected  WebTestModule getWebTestModule()
          Implemented by concrete subclasses.
protected  void setCaseSensitive(boolean caseSensitive)
          Delegates to HTMLOutputModule.setCaseSensitive(boolean)
protected  void verifyOutput(java.lang.String expectedOutput)
          Delegates to HTMLOutputModule.verifyOutput(java.lang.String)
protected  void verifyOutputContains(java.lang.String expectedOutput)
          Delegates to HTMLOutputModule.verifyOutputContains(java.lang.String)
protected  void verifyOutputRegularExpression(java.lang.String expression)
          Delegates to HTMLOutputModule.verifyOutputRegularExpression(java.lang.String)
 
Methods inherited from class com.mockrunner.base.BasicWebTestCase
addRequestParameter, addRequestParameter, addRequestParameter, getRequestAttribute, getRequestParameter, getSessionAttribute, setRequestAttribute, setSessionAttribute
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicHTMLOutputTestCase

public BasicHTMLOutputTestCase()

BasicHTMLOutputTestCase

public BasicHTMLOutputTestCase(java.lang.String arg0)
Method Detail

getWebTestModule

protected WebTestModule getWebTestModule()
Description copied from class: BasicWebTestCase
Implemented by concrete subclasses.

Specified by:
getWebTestModule in class BasicWebTestCase

getHTMLOutputModule

protected abstract HTMLOutputModule getHTMLOutputModule()
Implemented by concrete subclasses.


getOutput

protected java.lang.String getOutput()
Delegates to HTMLOutputModule.getOutput()


getOutputAsBufferedReader

protected java.io.BufferedReader getOutputAsBufferedReader()
Delegates to HTMLOutputModule.getOutputAsBufferedReader()


getOutputAsW3CDocument

protected org.w3c.dom.Document getOutputAsW3CDocument()
Delegates to HTMLOutputModule.getOutputAsW3CDocument()


getOutputAsJDOMDocument

protected org.jdom.Document getOutputAsJDOMDocument()
Delegates to HTMLOutputModule.getOutputAsJDOMDocument()


getOutputAsWellformedXML

protected java.lang.String getOutputAsWellformedXML()
Delegates to HTMLOutputModule.getOutputAsWellformedXML()


setCaseSensitive

protected void setCaseSensitive(boolean caseSensitive)
Delegates to HTMLOutputModule.setCaseSensitive(boolean)


verifyOutput

protected void verifyOutput(java.lang.String expectedOutput)
Delegates to HTMLOutputModule.verifyOutput(java.lang.String)


verifyOutputContains

protected void verifyOutputContains(java.lang.String expectedOutput)
Delegates to HTMLOutputModule.verifyOutputContains(java.lang.String)


verifyOutputRegularExpression

protected void verifyOutputRegularExpression(java.lang.String expression)
Delegates to HTMLOutputModule.verifyOutputRegularExpression(java.lang.String)