Save This Page
Home » maven-2.0.9-src » org.apache.maven.cactus » sample » [javadoc | source]
org.apache.maven.cactus.sample
public class: TestSampleBodyTag [javadoc | source]
java.lang.Object
   org.apache.cactus.JspTestCase
      org.apache.maven.cactus.sample.TestSampleBodyTag
Tests of the SampleBodyTag class.
Method from org.apache.maven.cactus.sample.TestSampleBodyTag Summary:
endReplacement,   setUp,   tearDown,   testReplacement
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.maven.cactus.sample.TestSampleBodyTag Detail:
 public  void endReplacement(WebResponse theResponse) 
    Verifies that the target String has indeed been replaced in the tag's body.
 public  void setUp() 
    In addition to creating the tag instance and adding the pageContext to it, this method creates a BodyContent object and passes it to the tag.
 public  void tearDown() 
 public  void testReplacement() throws Exception 
    Sets the replacement target and replacement String on the tag, then calls doAfterBody(). Most of the assertion work is done in endReplacement().