| org.geotools.data.postgis.AbstractPostgisDataTestCase org.geotools.data.postgis.PostgisDataStoreAPIOnlineTest
All known Subclasses: org.geotools.data.postgis.TransparentVersionedOnlineTest, org.geotools.data.postgis.TransparentUnversionedOnlineTest,
PostgisDataStoreAPIOnlineTest | public class PostgisDataStoreAPIOnlineTest extends AbstractPostgisDataTestCase (Code) | | This class tests the PostgisDataStoreAPI, against the same tests as MemoryDataStore.
The test fixture is available in the shared DataTestCase, really the common elements should move
to a shared DataStoreAPITestCase.
This class does require your own DataStore, it will create a table populated with the Features
from the test fixture, and run a test, and then remove the table.
Because of the nature of this testing process you cannot run these tests in conjunction with
another user, so they cannot be implemented against the public server.
A simple properties file has been constructed, fixture.properties , which you may
direct to your own potgis database installation.
author: Jody Garnett, Refractions Research |
Method Summary | |
void | assertContains(Object[] array, Object expected) | void | assertCovered(Feature[] features, FeatureReader reader) | void | assertCovers(String msg, FeatureCollection c1, FeatureCollection c2) | public static void | assertEquals(String message, String expected, String actual) | void | assertMatch(Feature[] array, Feature feature) | void | assertMatched(Feature[] array, FeatureReader reader) | boolean | contains(Object[] array, Object expected) | boolean | containsLax(Feature[] array, Feature expected) | public int | count(String typeName) | boolean | covers(FeatureReader reader, Feature[] array) Ensure that FeatureReader reader contains exactly the contents of array. | boolean | covers(FeatureIterator reader, Feature[] array) | boolean | coversLax(FeatureReader reader, Feature[] array) | void | dump(String message, FeatureReader reader) | void | dump(String message, Object[] array) | public Feature | feature(String typeName, String fid) | public Feature | findFeature(FeatureReader reader, String attributeName, Object value) Seach for feature based on AttributeType. | protected boolean | isEnvelopeComputingEnabled() | boolean | isLocked(String typeName, String fid) | boolean | match(Feature expected, Feature actual) | public FeatureReader | reader(String typeName) | protected void | tearDown() | public void | testBoundsReproject() | public void | testCreateSchema() | public void | testGeometryFactoryHintsCS() | public void | testGeometryFactoryHintsGF() | public void | testGetFeatureLockingExpire() | public void | testGetFeatureReader() | public void | testGetFeatureReaderConcurrency() | public void | testGetFeatureReaderFilterAutoCommit() | public void | testGetFeatureReaderFilterPrePost() | public void | testGetFeatureReaderFilterPrePost2() | public void | testGetFeatureReaderFilterTransaction() | public void | testGetFeatureReaderMutability() | public void | testGetFeatureReaderRetypeBug() | public void | testGetFeatureReaderRetypeBug2() | public void | testGetFeatureSourceRiver() | public void | testGetFeatureSourceRoad() | public void | testGetFeatureStoreAddFeatures() | public void | testGetFeatureStoreModifyFeatures1() | public void | testGetFeatureStoreModifyFeatures2() | public void | testGetFeatureStoreModifyFeatures3() | public void | testGetFeatureStoreRemoveAllFeatures() | public void | testGetFeatureStoreRemoveFeatures() | public void | testGetFeatureStoreSetFeatures() | public void | testGetFeatureTypes() | public void | testGetFeatureWriterAppendTypeNameTransaction() | public void | testGetFeatureWriterClose() | public void | testGetFeatureWriterConcurrency() Tests that if 2 transactions attempt to modify the same feature without committing, that the
second transaction does not lock up waiting to obtain the lock. | public void | testGetFeatureWriterFilter() | public void | testGetFeatureWriterRemove() | public void | testGetFeatureWriterRemoveAll() | 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 | testGetSchemaRiver() | public void | testGetSchemaRoad() | public void | testGetSchemaRoadUnregisteredGeomColumn() | public void | testLockFeatureInteraction() | public void | testLockFeatures() | public void | testOidFidMapper() | public void | testUnLockFeatures() | protected void | updateRiverFeaturesFixture() This is a quick hack to have our fixture reflect the FIDs in the database. | protected void | updateRoadFeaturesFixture() This is a quick hack to have our fixture reflect the FIDs in the database. | public FeatureWriter | writer(String typeName) | public void | xtestGetFeatureWriter() |
PostgisDataStoreAPIOnlineTest | public PostgisDataStoreAPIOnlineTest(String test)(Code) | | Constructor for MemoryDataStoreTest.
Parameters: test - throws: AssertionError - DOCUMENT ME! |
assertMatched | void assertMatched(Feature[] array, FeatureReader reader) throws Exception(Code) | | Ensure readers contents match those in the feature array
Implemented using match on attribute types, not feature id
Parameters: array - DOCUMENT ME! Parameters: reader - DOCUMENT ME! throws: Exception - DOCUMENT ME! |
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! |
isEnvelopeComputingEnabled | protected boolean isEnvelopeComputingEnabled()(Code) | | Return true if the datastore is capable of computing the road bounds given a query
|
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! |
testBoundsReproject | public void testBoundsReproject() throws Exception(Code) | | |
testGeometryFactoryHintsCS | public void testGeometryFactoryHintsCS() throws IOException(Code) | | |
testGeometryFactoryHintsGF | public void testGeometryFactoryHintsGF() throws IOException(Code) | | |
testGetFeatureLockingExpire | public void testGetFeatureLockingExpire() throws Exception(Code) | | |
testGetFeatureReaderRetypeBug | public void testGetFeatureReaderRetypeBug() throws Exception(Code) | | |
testGetFeatureReaderRetypeBug2 | public void testGetFeatureReaderRetypeBug2() throws Exception(Code) | | |
testGetFeatureSourceRoad | public void testGetFeatureSourceRoad() throws IOException(Code) | | |
testGetFeatureStoreAddFeatures | public void testGetFeatureStoreAddFeatures() throws IOException(Code) | | |
testGetFeatureStoreModifyFeatures1 | public void testGetFeatureStoreModifyFeatures1() throws IOException(Code) | | |
testGetFeatureStoreModifyFeatures2 | public void testGetFeatureStoreModifyFeatures2() throws IOException(Code) | | |
testGetFeatureStoreModifyFeatures3 | public void testGetFeatureStoreModifyFeatures3() throws IOException(Code) | | Test with a filter that won't be matched after the modification is done, was throwing an NPE
before the fix
throws: IOException - |
testGetFeatureStoreRemoveAllFeatures | public void testGetFeatureStoreRemoveAllFeatures() throws IOException(Code) | | |
testGetFeatureStoreRemoveFeatures | public void testGetFeatureStoreRemoveFeatures() throws IOException(Code) | | |
testGetFeatureTypes | public void testGetFeatureTypes()(Code) | | |
testGetFeatureWriterAppendTypeNameTransaction | public void testGetFeatureWriterAppendTypeNameTransaction() throws Exception(Code) | | |
testGetFeatureWriterClose | public void testGetFeatureWriterClose() throws Exception(Code) | | |
testGetFeatureWriterConcurrency | public void testGetFeatureWriterConcurrency() throws Exception(Code) | | Tests that if 2 transactions attempt to modify the same feature without committing, that the
second transaction does not lock up waiting to obtain the lock.
author: chorner throws: IOException - throws: IllegalAttributeException - throws: SQLException - |
testGetSchemaRoadUnregisteredGeomColumn | public void testGetSchemaRoadUnregisteredGeomColumn() throws Exception(Code) | | |
testLockFeatureInteraction | public void testLockFeatureInteraction() throws IOException(Code) | | |
updateRiverFeaturesFixture | protected void updateRiverFeaturesFixture() throws Exception(Code) | | This is a quick hack to have our fixture reflect the FIDs in the database.
When the dataStore learns how to preserve our FeatureIds this won't be required.
throws: Exception - DOCUMENT ME! |
updateRoadFeaturesFixture | protected void updateRoadFeaturesFixture() throws Exception(Code) | | This is a quick hack to have our fixture reflect the FIDs in the database.
When the dataStore learns how to preserve our FeatureIds this won't be required.
throws: Exception - |
xtestGetFeatureWriter | public void xtestGetFeatureWriter() throws Exception(Code) | | |
|
|