| org.geotools.data.DataTestCase org.geotools.data.mysql.MySQLDataStoreAPITest
MySQLDataStoreAPITest | public class MySQLDataStoreAPITest extends DataTestCase (Code) | | This class tests the MySQLDataStore API 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) | protected void | checkTypesInDataBase() | 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 extactly 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. | boolean | isLocked(String typeName, String fid) | protected void | killTestTables() | public static void | main(String[] args) | boolean | match(Feature expected, Feature actual) | public FeatureReader | reader(String typeName) | protected void | setUp() | protected void | setUpRiverTable() | protected void | setUpRoadTable() | public static Test | suite() | protected void | tearDown() | public void | testGetFeatureLockingExpire() | public void | testGetFeatureReader() | public void | testGetFeatureReaderConcurancy() | public void | testGetFeatureReaderFilterAutoCommit() | public void | testGetFeatureReaderMutability() | public void | testGetFeatureSourceRiver() | public void | testGetFeatureSourceRoad() | public void | testGetFeatureStoreAddFeatures() | public void | testGetFeatureStoreModifyFeatures1() | public void | testGetFeatureStoreModifyFeatures2() | public void | testGetFeatureStoreRemoveFeatures() | public void | testGetFeatureStoreSetFeatures() | public void | testGetFeatureTypes() | public void | testGetFeatureWriter() | public void | testGetFeatureWriterAppendTypeNameTransaction() | public void | testGetFeatureWriterClose() | public void | testGetFeatureWriterFilter() | public void | testGetFeatureWriterRemove() | public void | testGetFeatureWriterRemoveAll() | public void | testGetFeatureWriterTypeNameTransaction() | public void | testGetFeaturesWriterAdd() | public void | testGetFeaturesWriterModify() | public void | testGetSchemaRiver() | public void | testGetSchemaRoad() | public void | testLockFeatureInteraction() | public void | testLockFeatures() | 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) |
CHECK_TYPE | static boolean CHECK_TYPE(Code) | | |
MySQLDataStoreAPITest | public MySQLDataStoreAPITest(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! |
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! |
suite | public static Test suite()(Code) | | |
testGetFeatureLockingExpire | public void testGetFeatureLockingExpire() 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) | | |
testGetFeatureStoreRemoveFeatures | public void testGetFeatureStoreRemoveFeatures() throws IOException(Code) | | |
testGetFeatureTypes | public void testGetFeatureTypes()(Code) | | |
testGetFeatureWriter | public void testGetFeatureWriter() throws Exception(Code) | | |
testGetFeatureWriterAppendTypeNameTransaction | public void testGetFeatureWriterAppendTypeNameTransaction() throws Exception(Code) | | |
testGetFeatureWriterClose | public void testGetFeatureWriterClose() 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 - |
|
|