Java Doc for AbstractCiteDataTest.java in  » GIS » GeoServer » org » vfny » geoserver » testdata » 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 » GeoServer » org.vfny.geoserver.testdata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.vfny.geoserver.testdata.AbstractCiteDataTest

All known Subclasses:   org.vfny.geoserver.wms.responses.DefaultRasterMapProducerTest,  org.vfny.geoserver.wms.responses.map.SVGMapProducerTest,  org.vfny.geoserver.wms.responses.DefaultRasterLegendProducerTest,
AbstractCiteDataTest
abstract public class AbstractCiteDataTest extends TestCase (Code)

The properties files with CITE data are copied to the users' temp directory only the first time getCiteDataStore() is called, for each test run (i.e., they're not copied in setUp()).


author:
   Gabriel Roldan, Axios Engineering
version:
   $Id: AbstractCiteDataTest.java 7746 2007-11-13 15:38:35Z aaime $

Inner Class :static class ForceWGS84PropertyDataStore extends PropertyDataStore

Field Summary
public static  StringBASIC_POLYGONS_TYPE
    
public static  StringBRIDGES_TYPE
    
public static  StringBUILDINGS_TYPE
    
public static  String[]CITE_TYPE_NAMES
    
public static  StringDIVIDED_ROUTES_TYPE
    
static  CoordinateReferenceSystemFORCED_WGS84
    
public static  StringFORESTS_TYPE
    
public static  StringLAKES_TYPE
    
public static  StringMAP_NEATLINE_TYPE
    
public static  StringNAMED_PLACES_TYPE
    
public static  StringPONDS_TYPE
    
public static  StringROAD_SEGMENTS_TYPE
    
public static  StringSTREAMS_TYPE
    

Constructor Summary
public  AbstractCiteDataTest()
     Creates a new CiteTestData object.

Method Summary
protected  voidassertNotBlank(String testName, BufferedImage image, Color bgColor)
     Asserts that the image is not blank, in the sense that there must be pixels different from the passed background color.
public  DataStoregetCiteDataStore()
     Returns a DataStore containing CITE feature types.
protected  StylegetDefaultStyle(String citeTypeName)
    
protected  StylegetStyle(String styleName)
    
public  voidsetUp()
     does nothing but what super.setUp() does.
protected  voidshowImage(String frameName, BufferedImage image)
    
protected  voidshowImage(String frameName, long timeOut, BufferedImage image)
     Shows image in a Frame.
public  voidtearDown()
    

Field Detail
BASIC_POLYGONS_TYPE
public static String BASIC_POLYGONS_TYPE(Code)
featuretype name for CITE BasicPolygons features



BRIDGES_TYPE
public static String BRIDGES_TYPE(Code)
featuretype name for CITE Bridges features



BUILDINGS_TYPE
public static String BUILDINGS_TYPE(Code)
featuretype name for CITE Buildings features



CITE_TYPE_NAMES
public static String[] CITE_TYPE_NAMES(Code)
Convenient array with all the CITE type names for dealing with copying and deleting files



DIVIDED_ROUTES_TYPE
public static String DIVIDED_ROUTES_TYPE(Code)
featuretype name for CITE Divided Routes features



FORCED_WGS84
static CoordinateReferenceSystem FORCED_WGS84(Code)
Since the PropertyDataStore does not provides CRS support, we force feature types to be in WGS84



FORESTS_TYPE
public static String FORESTS_TYPE(Code)
featuretype name for CITE Forests features



LAKES_TYPE
public static String LAKES_TYPE(Code)
featuretype name for CITE Lakes features



MAP_NEATLINE_TYPE
public static String MAP_NEATLINE_TYPE(Code)
featuretype name for CITE Map Neatliine features



NAMED_PLACES_TYPE
public static String NAMED_PLACES_TYPE(Code)
featuretype name for CITE Named Places features



PONDS_TYPE
public static String PONDS_TYPE(Code)
featuretype name for CITE Ponds features



ROAD_SEGMENTS_TYPE
public static String ROAD_SEGMENTS_TYPE(Code)
featuretype name for CITE Road Segments features



STREAMS_TYPE
public static String STREAMS_TYPE(Code)
featuretype name for CITE Streams features




Constructor Detail
AbstractCiteDataTest
public AbstractCiteDataTest()(Code)
Creates a new CiteTestData object.




Method Detail
assertNotBlank
protected void assertNotBlank(String testName, BufferedImage image, Color bgColor)(Code)
Asserts that the image is not blank, in the sense that there must be pixels different from the passed background color.
Parameters:
  testName - the name of the test to throw meaningfull messages ifsomething goes wrong
Parameters:
  image - the imgage to check it is not "blank"
Parameters:
  bgColor - the background color for which differing pixels arelooked for



getCiteDataStore
public DataStore getCiteDataStore() throws IOException(Code)
Returns a DataStore containing CITE feature types. a property files backed DataStore which forces all theFeatureTypes it serves to be in WGS84 CRS.
throws:
  IOException - DOCUMENT ME!



getDefaultStyle
protected Style getDefaultStyle(String citeTypeName) throws Exception(Code)
DOCUMENT ME!
Parameters:
  citeTypeName - DOCUMENT ME! DOCUMENT ME!
throws:
  Exception - DOCUMENT ME!



getStyle
protected Style getStyle(String styleName) throws Exception(Code)
DOCUMENT ME!
Parameters:
  styleName - DOCUMENT ME! DOCUMENT ME!
throws:
  Exception - DOCUMENT ME!



setUp
public void setUp() throws Exception(Code)
does nothing but what super.setUp() does.
throws:
  Exception - should not do.



showImage
protected void showImage(String frameName, BufferedImage image)(Code)
DOCUMENT ME!
Parameters:
  frameName - DOCUMENT ME!
Parameters:
  image - DOCUMENT ME!



showImage
protected void showImage(String frameName, long timeOut, BufferedImage image)(Code)
Shows image in a Frame.
Parameters:
  frameName -
Parameters:
  timeOut -
Parameters:
  image -



tearDown
public void tearDown() throws Exception(Code)
deletes temporary files
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.