| org.geotools.data.DataTestCase org.geotools.data.AbstractDataStoreTest
All known Subclasses: org.geotools.data.hsql.HsqlDataStoreTest,
AbstractDataStoreTest | abstract public class AbstractDataStoreTest extends DataTestCase (Code) | | An abstract super class for testing datastore implementations. All datastore implementations should
has a test case that extends this class.
author: Jesse Eichar, Refractions Research |
Method Summary | |
void | assertCovered(Feature[] features, FeatureReader reader) | void | assertCovers(String msg, FeatureCollection c1, FeatureCollection c2) | public void | atestGetFeatureSourceRoad() | boolean | contains(Object[] array, Object expected) | boolean | containsFeature(Object[] array, Object expected) | boolean | containsFeatureCollection(FeatureCollection fc, Feature f) | boolean | containsLax(Feature[] array, Feature expected) | boolean | covers(FeatureCollection features, Feature[] array) Ensure that FeatureReader reader contains extactly the contents of
array. | boolean | covers(FeatureReader reader, Feature[] array) Ensure that FeatureReader reader contains extactly the contents of
array. | boolean | covers(FeatureIterator reader, Feature[] array) | boolean | coversLax(FeatureReader reader, Feature[] array) | boolean | coversLax(FeatureIterator reader, Feature[] array) | abstract public DataStore | createDataStore() Creates a new instance of the datastore. | void | dump(FeatureReader reader) | void | dump(Object[] array) | SimpleFeature[] | grabArray(FeatureCollection features, int size) | public boolean | isFeatureEqual(Feature feature1, Feature feature2) This function is stolen from DefaultFeature equals method. | boolean | isLocked(String typeName, String fid) | boolean | match(Feature expected, Feature actual) | protected void | setUp() | protected void | tearDown() | abstract public DataStore | tearDownDataStore(DataStore data) This method must remove the roads and rivers types from the datastore. | public void | testCreateSchema() | public void | testFeatureEvents() | public void | testFixture() | public void | testGetFeatureLockingExpire() | public void | testGetFeatureReader() | public void | testGetFeatureReaderConcurancy() | public void | testGetFeatureReaderFilterAutoCommit() | public void | testGetFeatureReaderFilterTransaction() | public void | testGetFeatureReaderMutability() | public void | testGetFeatureSourceRiver() | public void | testGetFeatureStoreAddFeatures() | public void | testGetFeatureStoreModifyFeatures1() | public void | testGetFeatureStoreModifyFeatures2() | public void | testGetFeatureStoreRemoveFeatures() | public void | testGetFeatureStoreSetFeatures() | public void | testGetFeatureStoreTransactionSupport() | public void | testGetFeatureTypes() | public void | testGetFeatureWriter() | public void | testGetFeatureWriterAppendTypeNameTransaction() | public void | testGetFeatureWriterFilter() | public void | testGetFeatureWriterRemove() | public void | testGetFeatureWriterTransaction() Test two transactions one removing feature, and one adding a feature. | public void | testGetFeatureWriterTypeNameTransaction() | public void | testGetFeaturesWriterAdd() | public void | testGetFeaturesWriterModify() | public void | testGetSchema() | public void | testLockFeatureInteraction() | public void | testLockFeatures() | public void | testUnLockFeatures() |
AbstractDataStoreTest | public AbstractDataStoreTest(String arg0)(Code) | | |
atestGetFeatureSourceRoad | public void atestGetFeatureSourceRoad() throws IOException(Code) | | |
containsFeature | boolean containsFeature(Object[] array, Object expected)(Code) | | Checks that a given Feature array contains the specified feature
Parameters: array - must be an array of features Parameters: expected - the expected feature we're looking for true if the feature is found, false otherwise |
containsFeatureCollection | boolean containsFeatureCollection(FeatureCollection fc, Feature f)(Code) | | Checks that a given FeatureCollection contains the specified feature
Parameters: fc - the feature collection we're going to search Parameters: f - the feature we're looking for true if the feature is in the feature collection, falseotherwise |
containsLax | boolean containsLax(Feature[] array, Feature expected)(Code) | | Like contain but based on match rather than equals
Parameters: array - DOCUMENT ME! Parameters: expected - DOCUMENT ME! DOCUMENT ME! |
createDataStore | abstract public DataStore createDataStore() throws Exception(Code) | | Creates a new instance of the datastore. The datastore must not have a
roads or rivers type.
throws: Exception - |
isFeatureEqual | public boolean isFeatureEqual(Feature feature1, Feature feature2)(Code) | | This function is stolen from DefaultFeature equals method. We want to
check for equality except for featureId which we expect to be
different.
Parameters: feature1 - the Feature to test against. Parameters: feature2 - the Feature to test for equality. true if the object is equal, false otherwise. |
match | boolean match(Feature expected, Feature actual)(Code) | | Compare based on attributes not getID allows comparison of Diff contents
Parameters: expected - DOCUMENT ME! Parameters: actual - DOCUMENT ME! DOCUMENT ME! |
tearDownDataStore | abstract public DataStore tearDownDataStore(DataStore data) throws Exception(Code) | | This method must remove the roads and rivers types from the datastore.
It must also close all connections to the datastore if it has
connections and get rid of any temporary files.
Parameters: data - DOCUMENT ME! throws: Exception - |
testGetFeatureLockingExpire | public void testGetFeatureLockingExpire() throws Exception(Code) | | |
testGetFeatureStoreAddFeatures | public void testGetFeatureStoreAddFeatures() throws IOException(Code) | | |
testGetFeatureStoreModifyFeatures1 | public void testGetFeatureStoreModifyFeatures1() throws IOException(Code) | | |
testGetFeatureStoreModifyFeatures2 | public void testGetFeatureStoreModifyFeatures2() throws IOException(Code) | | |
testGetFeatureStoreRemoveFeatures | public void testGetFeatureStoreRemoveFeatures() throws IOException(Code) | | |
testGetFeatureStoreSetFeatures | public void testGetFeatureStoreSetFeatures() throws IOException(Code) | | |
testGetFeatureStoreTransactionSupport | public void testGetFeatureStoreTransactionSupport() throws Exception(Code) | | |
testGetFeatureTypes | public void testGetFeatureTypes()(Code) | | |
testGetFeatureWriterAppendTypeNameTransaction | public void testGetFeatureWriterAppendTypeNameTransaction() throws Exception(Code) | | |
testGetFeatureWriterTransaction | public void testGetFeatureWriterTransaction() throws Exception(Code) | | Test two transactions one removing feature, and one adding a feature.
throws: Exception - DOCUMENT ME! |
testLockFeatureInteraction | public void testLockFeatureInteraction() throws IOException(Code) | | |
|
|