org.vfny.geoserver.requests
Class DescribeSuite

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.vfny.geoserver.requests.RequestTestCase
              extended byorg.vfny.geoserver.requests.DescribeSuite
All Implemented Interfaces:
junit.framework.Test

public class DescribeSuite
extends RequestTestCase

Tests the get capabilities request handling.


Field Summary
 
Fields inherited from class org.vfny.geoserver.requests.RequestTestCase
factory
 
Constructor Summary
DescribeSuite(java.lang.String testName)
          Constructor with super.
 
Method Summary
protected  KvpRequestReader getKvpReader(java.util.Map kvps)
          This should return the appropriate xml reader to be used in running the tests.
protected  XmlRequestReader getXmlReader()
          This should return the appropriate xml reader to be used in running the tests.
 void setUp()
           
static junit.framework.Test suite()
           
 void testKvp1()
          Checks to make sure that a standard KVP request is handled correctly.
 void testKvp2()
          Checks to make sure that a standard non-matching KVP request is handled correctly.
 void testXml1()
          Check to make sure that a standard XML request is handled correctly.
 void testXml2()
          Check to make sure that a standard XML request is handled correctly.
 
Methods inherited from class org.vfny.geoserver.requests.RequestTestCase
runKvpTest, runXmlTest
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, 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
 

Constructor Detail

DescribeSuite

public DescribeSuite(java.lang.String testName)
Constructor with super.

Parameters:
testName - The name of this test.
Method Detail

suite

public static junit.framework.Test suite()

setUp

public void setUp()

getXmlReader

protected XmlRequestReader getXmlReader()
Description copied from class: RequestTestCase
This should return the appropriate xml reader to be used in running the tests.

Specified by:
getXmlReader in class RequestTestCase
Returns:
DOCUMENT ME!

getKvpReader

protected KvpRequestReader getKvpReader(java.util.Map kvps)
Description copied from class: RequestTestCase
This should return the appropriate xml reader to be used in running the tests.

Specified by:
getKvpReader in class RequestTestCase
Returns:
DOCUMENT ME!

testXml1

public void testXml1()
              throws java.lang.Exception
Check to make sure that a standard XML request is handled correctly.

Throws:
java.lang.Exception - If anything goes wrong.

testXml2

public void testXml2()
              throws java.lang.Exception
Check to make sure that a standard XML request is handled correctly.

Throws:
java.lang.Exception - If anything goes wrong.

testKvp1

public void testKvp1()
              throws java.lang.Exception
Checks to make sure that a standard KVP request is handled correctly.

Throws:
java.lang.Exception - If anything goes wrong.

testKvp2

public void testKvp2()
              throws java.lang.Exception
Checks to make sure that a standard non-matching KVP request is handled correctly.

Throws:
java.lang.Exception - If anything goes wrong.