.
| Method from org.apache.cactus.sample.servlet.unit.TestSetUpTearDown Detail: |
public void endTearDown(WebResponse theResponse) {
assertEquals("tear down header",
theResponse.getConnection().getHeaderField("Teardownheader"));
}
Verify that tearDown() has been called and that it created
an HTTP reponse header. |
protected void setUp() {
session.setAttribute("setUpFlag", "a setUp test flag");
}
Put a value in the session to verify that this method is called prior
to the test, and that it can access servlet implicit objects. |
protected void tearDown() {
response.setHeader("Teardownheader", "tear down header");
}
Set an HTTP response header to verify that this method is called after
the test, and that it can access servlet implicit objects. |
public void testSetUp() {
assertEquals("a setUp test flag", session.getAttribute("setUpFlag"));
}
Verify that setUp() has been called and that it put a
value in the session object. |
public void testTearDown() {
}
Verify that tearDown() has been called and that it created
an HTTP reponse header. |