Java Doc for DataUtilsTest.java in  » GIS » GeoTools-2.4.1 » org » geotools » data » vpf » util » 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.data.vpf.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.data.vpf.util.DataUtilsTest

DataUtilsTest
public class DataUtilsTest extends TestCase implements DataTypesDefinition(Code)
File DataUtilsTest.java is automaticaly generated by 'unittestsgen' application. Code generator is created for java sources and for 'junit' package by "Artur Hefczyc"
You should fulfil test methods with proper code for testing purpose. All methods where you should put your code are below and their names starts with 'test'.
You can run unit tests in many ways, however prefered are:
  • Run tests for one class only, for example for this class you can run tests with command:
     java -cp "jar/thisjarfile.jar;lib/junit.jar" org.geotools.vpf.util.DataUtilsTest
     
  • Run tests for all classes in one command call. Code generator creates also TestAll.class which runs all available tests:
     java -cp "jar/thisjarfile.jar;lib/junit.jar" TestAll
     
  • But the most prefered way is to run all tests from Ant just after compilation process finished.
    To do it. You need:
    1. Ant package from Ant
    2. JUnit package from JUnit
    3. Put some code in your build.xml file to tell Ant how to test your package. Sample code for Ant's build.xml you can find in created file: sample-junit-build.xml. And remember to have junit.jar in CLASSPATH before you run Ant. To generate reports by ant you must have xalan.jar in your ANT_HOME/lib/ directory.


Field Summary
final public static  Class[]RESULT_TYPES
    
final public static  int[][]TEST_RESULTS
    
final public static  byte[][]TEST_SAMPLES
    
final public static  char[]TEST_TYPES
    
protected  DataUtilsvarDataUtils
     Instance of tested class.

Constructor Summary
public  DataUtilsTest(String name)
     Public constructor for creating testing class.

Method Summary
public static  voidmain(String[] args)
     This main method is used for run tests for this class only from command line.
protected  voidsetUp()
     This method is called every time before particular test execution.
public static  Testsuite()
     Returns all tests which should be performed for testing class. By default it returns only name of testing class.
public  voidtestDecodeData13740087263052374()
    
public  voidtestDecodeDouble1374008726()
    
public  voidtestDecodeFloat1374008726()
    
public  voidtestDecodeInt1374008726()
    
public  voidtestDecodeShort1374008726()
    
public  voidtestToBigEndian1374008726()
    
public  voidtestUnsigByteToInt3039496()
    

Field Detail
RESULT_TYPES
final public static Class[] RESULT_TYPES(Code)



TEST_RESULTS
final public static int[][] TEST_RESULTS(Code)



TEST_SAMPLES
final public static byte[][] TEST_SAMPLES(Code)



TEST_TYPES
final public static char[] TEST_TYPES(Code)



varDataUtils
protected DataUtils varDataUtils(Code)
Instance of tested class.




Constructor Detail
DataUtilsTest
public DataUtilsTest(String name)(Code)
Public constructor for creating testing class.




Method Detail
main
public static void main(String[] args)(Code)
This main method is used for run tests for this class only from command line.



setUp
protected void setUp()(Code)
This method is called every time before particular test execution. It creates new instance of tested class and it can perform some more actions which are necessary for performs tests.



suite
public static Test suite()(Code)
Returns all tests which should be performed for testing class. By default it returns only name of testing class. Instance of this is then created with its constructor.



testDecodeData13740087263052374
public void testDecodeData13740087263052374()(Code)
Method for testing original source method: java.lang.Object decodeData(byte[], char) from tested class



testDecodeDouble1374008726
public void testDecodeDouble1374008726()(Code)
Method for testing original source method: double decodeDouble(byte[]) from tested class



testDecodeFloat1374008726
public void testDecodeFloat1374008726()(Code)
Method for testing original source method: float decodeFloat(byte[]) from tested class



testDecodeInt1374008726
public void testDecodeInt1374008726()(Code)
Method for testing original source method: int decodeInt(byte[]) from tested class



testDecodeShort1374008726
public void testDecodeShort1374008726()(Code)
Method for testing original source method: short decodeShort(byte[]) from tested class



testToBigEndian1374008726
public void testToBigEndian1374008726()(Code)
Method for testing original source method: byte[] toBigEndian(byte[]) from tested class



testUnsigByteToInt3039496
public void testUnsigByteToInt3039496()(Code)
Method for testing original source method: int unsigByteToInt(byte) from tested class



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