org.vfny.geoserver.requests
Class TransactionSuite

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.vfny.geoserver.requests.RequestTestCase
              extended byorg.vfny.geoserver.requests.TransactionSuite
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
DeleteSuite, InsertSuite, UpdateSuite

public class TransactionSuite
extends RequestTestCase

Tests the get feature request handling.


Field Summary
protected  GeoServer config
           
protected static org.geotools.filter.FilterFactory factory
          Holds mappings between HTTP and ASCII encodings
protected static java.util.logging.Logger LOGGER
          Class logger
protected  org.geotools.feature.FeatureType schema
           
protected  org.geotools.feature.Feature testFeature
           
 
Constructor Summary
TransactionSuite(java.lang.String testName)
          Constructor with super.
 
Method Summary
protected static boolean assertEquals(TransactionRequest baseRequest, TransactionRequest testRequest)
          Handles actual XML test running details.
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.
static void main(java.lang.String[] args)
           
 void setUp()
           
static junit.framework.Test suite()
           
 
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
 

Field Detail

LOGGER

protected static final java.util.logging.Logger LOGGER
Class logger


factory

protected static org.geotools.filter.FilterFactory factory
Holds mappings between HTTP and ASCII encodings


schema

protected org.geotools.feature.FeatureType schema

testFeature

protected org.geotools.feature.Feature testFeature

config

protected GeoServer config
Constructor Detail

TransactionSuite

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

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

main

public static void main(java.lang.String[] args)

suite

public static junit.framework.Test suite()

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

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!

assertEquals

protected static boolean assertEquals(TransactionRequest baseRequest,
                                      TransactionRequest testRequest)
Handles actual XML test running details.

Parameters:
baseRequest - Base request, for comparison.
testRequest - File name to parse.
Returns:
true if the test passed.