|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.vfny.geoserver.requests.RequestTestCase
Abstract test case to run request tests. Subclasses must implement getXmlReader and getKvpReader to be able to call the runXmlTest and runKvpTest. If one of the readers does not exist it is fine to just return null, as long as that test runner is not called by the client at all.
Field Summary | |
protected static org.geotools.filter.FilterFactory |
factory
Holds mappings between HTTP and ASCII encodings |
Constructor Summary | |
RequestTestCase(java.lang.String testName)
Constructor with super. |
Method Summary | |
protected abstract KvpRequestReader |
getKvpReader(java.util.Map kvps)
This should return the appropriate xml reader to be used in running the tests. |
protected abstract XmlRequestReader |
getXmlReader()
This should return the appropriate xml reader to be used in running the tests. |
protected boolean |
runKvpTest(Request baseRequest,
java.lang.String requestString,
boolean match)
Handles actual XML test running details. |
protected boolean |
runXmlTest(Request baseRequest,
java.lang.String fileName,
boolean match)
Handles actual XML test running details. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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 |
Field Detail |
protected static org.geotools.filter.FilterFactory factory
Constructor Detail |
public RequestTestCase(java.lang.String testName)
testName
- The name of the test.Method Detail |
protected boolean runXmlTest(Request baseRequest, java.lang.String fileName, boolean match) throws java.lang.Exception
baseRequest
- Base request, for comparison.fileName
- File name to parse.match
- Whether or not base request and parse request should match.
java.lang.Exception
- If there is any problem running the test.protected abstract XmlRequestReader getXmlReader()
protected boolean runKvpTest(Request baseRequest, java.lang.String requestString, boolean match) throws java.lang.Exception
baseRequest
- Base request, for comparison.requestString
- File name to parse.match
- Whether or not base request and parse request should match.
java.lang.Exception
- If there is any problem running the test.protected abstract KvpRequestReader getKvpReader(java.util.Map kvps)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |