Java Doc for ArcSDEDataStoreTest.java in  » GIS » GeoTools-2.4.1 » org » geotools » arcsde » data » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.arcsde.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.arcsde.data.ArcSDEDataStoreTest

ArcSDEDataStoreTest
public class ArcSDEDataStoreTest extends TestCase (Code)
ArcSDEDAtaStore test cases
author:
   Gabriel Roldan, Axios Engineering
version:
   $Id: ArcSDEDataStoreTest.java 27863 2007-11-12 20:34:34Z desruisseaux $


Field Summary
 FilterFactoryff
    

Constructor Summary
public  ArcSDEDataStoreTest()
     Creates a new ArcSDEDataStoreTest object.
public  ArcSDEDataStoreTest(String name)
     Creates a new ArcSDEDataStoreTest object.

Method Summary
public  void_testAutoFillSRS()
     This test is currently broken.
public  void_testStress()
    
protected  voidsetUp()
    
public static  Testsuite()
    
protected  voidtearDown()
    
public  voidtestAttributeOnlyQuery()
     to expose GEOT-408, tests that queries in which only non spatial attributes are requested does not fails due to the datastore trying to parse the geometry attribute.
public  voidtestBBoxFilterLines()
    
public  voidtestBBoxFilterPoints()
    
public  voidtestBBoxFilterPolygons()
    
public  voidtestFidFilters()
    
public  voidtestFinder()
    
public  voidtestGetFeatureReader()
     This method tests the feature reader by opening various simultaneous FeatureReaders using the 3 test tables.

I found experimentally that until 24 simultaneous streams can be opened by a single connection.

public  voidtestGetFeatureSourceLine()
    
public  voidtestGetFeatureSourcePoint()
    
public  voidtestGetFeatureSourcePoly()
    
public  voidtestGetFeaturesLine()
    
public  voidtestGetFeaturesPoint()
    
public  voidtestGetFeaturesPolygon()
    
public  voidtestGetSchema()
     tests that the schema for the defined tests tables are returned.
public  voidtestGetTypeNames()
     test that a ArcSDEDataStore that connects to de configured test database contains the tables defined by the parameters "point_table", "line_table" and "polygon_table", wether ot not they're defined as single table names or as full qualified sde table names (i.e.
public  voidtestMixedQueries()
     tests the datastore behavior when fetching data based on mixed queries.

"Mixed queries" refers to mixing alphanumeric and geometry based filters, since that is the natural separation of things in the Esri Java API for ArcSDE.

public  voidtestMoreThan1000FidFilters()
    
public  voidtestRespectsAttributeOrder()
     Checks that arcsde datastore returns featuretypes whose attributes are exactly in the requested order.
public  voidtestRestrictsAttributes()
     Checks that a query returns only the specified attributes.
public  voidtestSQLFilterLines()
    
public  voidtestSQLFilterPoints()
    
public  voidtestSQLFilterPolygons()
    

Field Detail
ff
FilterFactory ff(Code)
a filter factory for testing




Constructor Detail
ArcSDEDataStoreTest
public ArcSDEDataStoreTest()(Code)
Creates a new ArcSDEDataStoreTest object.



ArcSDEDataStoreTest
public ArcSDEDataStoreTest(String name)(Code)
Creates a new ArcSDEDataStoreTest object.
Parameters:
  name - a name for the junit test




Method Detail
_testAutoFillSRS
public void _testAutoFillSRS() throws Throwable(Code)
This test is currently broken. It's a placeholder for some logic that sfarber wrote which tries to guess the SRS of a featureclass, based on connecting to it via an SeLayer.
throws:
  Throwable -



_testStress
public void _testStress() throws Exception(Code)
DOCUMENT ME!
throws:
  Exception - DOCUMENT ME!



setUp
protected void setUp() throws Exception(Code)
loads testData/testparams.properties into a Properties object, wich is used to obtain test tables names and is used as parameter to find the DataStore
throws:
  Exception - DOCUMENT ME!



suite
public static Test suite()(Code)
Builds a test suite for all this class' tests with per suite initialization directed to ArcSDEDataStoreTest.oneTimeSetUp() and per suite clean up directed to ArcSDEDataStoreTest.oneTimeTearDown()



tearDown
protected void tearDown() throws Exception(Code)
DOCUMENT ME!
throws:
  Exception - DOCUMENT ME!



testAttributeOnlyQuery
public void testAttributeOnlyQuery() throws Exception(Code)
to expose GEOT-408, tests that queries in which only non spatial attributes are requested does not fails due to the datastore trying to parse the geometry attribute.
throws:
  Exception - DOCUMENT ME!



testBBoxFilterLines
public void testBBoxFilterLines() throws Exception(Code)
DOCUMENT ME!
throws:
  Exception - DOCUMENT ME!



testBBoxFilterPoints
public void testBBoxFilterPoints() throws Exception(Code)
DOCUMENT ME!
throws:
  Exception - DOCUMENT ME!



testBBoxFilterPolygons
public void testBBoxFilterPolygons() throws Exception(Code)
DOCUMENT ME!
throws:
  Exception - DOCUMENT ME!



testFidFilters
public void testFidFilters() throws Exception(Code)
Test that FID filters are correctly handled
throws:
  Exception - DOCUMENT ME!



testFinder
public void testFinder() throws IOException(Code)
DOCUMENT ME!
throws:
  IOException - DOCUMENT ME!



testGetFeatureReader
public void testGetFeatureReader() throws IOException, IllegalAttributeException(Code)
This method tests the feature reader by opening various simultaneous FeatureReaders using the 3 test tables.

I found experimentally that until 24 simultaneous streams can be opened by a single connection. Each featurereader has an ArcSDE stream opened until its close() method is called or hasNext() returns flase, wich automatically closes the stream. If more than 24 simultaneous streams are tryied to be opened upon a single SeConnection, an exception is thrown by de Java ArcSDE API saying that a "NETWORK I/O OPERATION FAILED"


throws:
  IOException - DOCUMENT ME!
throws:
  IllegalAttributeException - DOCUMENT ME!



testGetFeatureSourceLine
public void testGetFeatureSourceLine() throws IOException(Code)
DOCUMENT ME!
throws:
  IOException - DOCUMENT ME!



testGetFeatureSourcePoint
public void testGetFeatureSourcePoint() throws IOException(Code)
test that getFeatureSource over the point_table table works
throws:
  IOException - DOCUMENT ME!



testGetFeatureSourcePoly
public void testGetFeatureSourcePoly() throws IOException(Code)
DOCUMENT ME!
throws:
  IOException - DOCUMENT ME!



testGetFeaturesLine
public void testGetFeaturesLine() throws IOException(Code)
DOCUMENT ME!
throws:
  IOException - DOCUMENT ME!



testGetFeaturesPoint
public void testGetFeaturesPoint() throws IOException(Code)
DOCUMENT ME!
throws:
  IOException - DOCUMENT ME!



testGetFeaturesPolygon
public void testGetFeaturesPolygon() throws IOException(Code)
DOCUMENT ME!
throws:
  IOException - DOCUMENT ME!



testGetSchema
public void testGetSchema() throws IOException(Code)
tests that the schema for the defined tests tables are returned.
throws:
  IOException - DOCUMENT ME!



testGetTypeNames
public void testGetTypeNames() throws IOException(Code)
test that a ArcSDEDataStore that connects to de configured test database contains the tables defined by the parameters "point_table", "line_table" and "polygon_table", wether ot not they're defined as single table names or as full qualified sde table names (i.e. SDE.SDE.TEST_POINT)
throws:
  IOException -



testMixedQueries
public void testMixedQueries() throws Exception(Code)
tests the datastore behavior when fetching data based on mixed queries.

"Mixed queries" refers to mixing alphanumeric and geometry based filters, since that is the natural separation of things in the Esri Java API for ArcSDE. This is necessary since mixed queries sometimes are problematic. So this test ensures that:

  • A mixed query respects all filters
  • A mixed query does not fails when getBounds() is performed
  • A mixed query does not fails when size() is performed


throws:
  Exception - DOCUMENT ME!



testMoreThan1000FidFilters
public void testMoreThan1000FidFilters() throws Exception(Code)



testRespectsAttributeOrder
public void testRespectsAttributeOrder() throws IOException, IllegalAttributeException(Code)
Checks that arcsde datastore returns featuretypes whose attributes are exactly in the requested order.
throws:
  IOException - DOCUMENT ME!
throws:
  IllegalAttributeException - DOCUMENT ME!



testRestrictsAttributes
public void testRestrictsAttributes() throws IOException, IllegalAttributeException(Code)
Checks that a query returns only the specified attributes.
throws:
  IOException -
throws:
  IllegalAttributeException -



testSQLFilterLines
public void testSQLFilterLines() throws Exception(Code)
DOCUMENT ME!
throws:
  Exception - DOCUMENT ME!



testSQLFilterPoints
public void testSQLFilterPoints() throws Exception(Code)
DOCUMENT ME!
throws:
  Exception - DOCUMENT ME!



testSQLFilterPolygons
public void testSQLFilterPolygons() throws Exception(Code)
DOCUMENT ME!
throws:
  Exception - DOCUMENT ME!



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.