|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.cactus.internal.AbstractCactusTestCase
org.apache.cactus.ServletTestCase
org.apache.cactus.JspTestCase
test.util.MakumbaJspTestCase
public class MakumbaJspTestCase
Utility class which enables it to quickly write tests based on the execution of a JSP. Since we know the expected result, we can fetch this result and store it into a file, and then compare the next executions of the test against this file.
| Field Summary |
|---|
| Fields inherited from class org.apache.cactus.JspTestCase |
|---|
out, pageContext |
| Fields inherited from class org.apache.cactus.ServletTestCase |
|---|
config, request, response, session |
| Constructor Summary | |
|---|---|
MakumbaJspTestCase()
|
|
| Method Summary | |
|---|---|
protected boolean |
compareTest(String result)
Compares a test output to its stored (expected) result. |
protected void |
fetchValidTestResult(String output,
boolean record)
Method that helps to fetch the result of a test, on the first run. |
| Methods inherited from class org.apache.cactus.JspTestCase |
|---|
createProtocolHandler |
| Methods inherited from class org.apache.cactus.internal.AbstractCactusTestCase |
|---|
runBare, runBareServer |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.cactus.internal.CactusTestCase |
|---|
runBareServer |
| Constructor Detail |
|---|
public MakumbaJspTestCase()
| Method Detail |
|---|
protected boolean compareTest(String result)
throws Exception
result - the new result, from the currently running test
true if this worked out, false otherwise.
FileNotFoundException - in case the comparison basis file is not found, this indicates it
Exception
protected void fetchValidTestResult(String output,
boolean record)
output - the result (HTML code) of the page that was ran correctly.record - TODO
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||