Java Doc for SpikeTestGen.java in  » Testing » TestGen4J » com » spikesource » spiketestgen » 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 » Testing » TestGen4J » com.spikesource.spiketestgen 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.spikesource.spiketestgen.SpikeTestGen

SpikeTestGen
final public class SpikeTestGen (Code)
SpikeTestGen is a doclet, which, with the help of class and method signatures given by Classdoc , * generates unit test cases requiring just the class files of the package under test. It decouples the test code and test data using the open source tool called JTestCase. Unit Test cases are then fed to JUnit and results are taken.
version:
   0.1.4-alpha
author:
   Manish Marathe *


Field Summary
final protected static  StringOPTION_OUTPUT_DIR
     Specifies the output directory.


Method Summary
public static  voidendTestClass(String className)
     End the testclass file.
public static  StringgetMethodReturnType(MethodDoc method)
     Returns the return type of original method.
public static  String[]getParameters(StringBuffer allParams, MethodDoc method)
     Get the method Parameter list.
public static  StringgetToken(StringTokenizer tokens, int tokenReqNum)
     Retrieves a particular token from the array of tokens, given the token number to be retrieved.
public static  intoptionLength(String option)
     Retrieve the option length for a particular option.
public static  voidprintNotice(String msg)
     This function prints the important information passed in form of String to the Standard Output.
public static  booleanstart(RootDoc root)
     Main method of the doclet.
public static  voidtestMethod(StringBuffer allParams, MethodDoc method, String[] methodArray, int[] methodNumArray, int currentMethod, String className, String dataFile)
     Get the method Parameter list.
public static  booleanvalidOptions(String[][] options, DocErrorReporter reporter)
     Verify if the options given are valid.

Field Detail
OPTION_OUTPUT_DIR
final protected static String OPTION_OUTPUT_DIR(Code)
Specifies the output directory.





Method Detail
endTestClass
public static void endTestClass(String className)(Code)
End the testclass file.
Parameters:
  className - Name of the original class.



getMethodReturnType
public static String getMethodReturnType(MethodDoc method)(Code)
Returns the return type of original method.
Parameters:
  method - Name of the original class.return type of the method.



getParameters
public static String[] getParameters(StringBuffer allParams, MethodDoc method)(Code)
Get the method Parameter list.
Parameters:
  allParams - All parameters of the method.
Parameters:
  method - Array of all methods.method Parameters



getToken
public static String getToken(StringTokenizer tokens, int tokenReqNum)(Code)
Retrieves a particular token from the array of tokens, given the token number to be retrieved.
Parameters:
  tokens - An array of tokens, which is anObject of StringTokenizer.
Parameters:
  tokenReqNum - Token Number, specifying the indexof the token in requestReturns the requested token.



optionLength
public static int optionLength(String option)(Code)
Retrieve the option length for a particular option.
Parameters:
  option - Get the option length.Option length.



printNotice
public static void printNotice(String msg)(Code)
This function prints the important information passed in form of String to the Standard Output.
Parameters:
  msg - String to be printed as a Notice.



start
public static boolean start(RootDoc root)(Code)
Main method of the doclet. Parses the information given by Classdoc in the form of class and method signatures.
Parameters:
  root - Contains parsed information from Classdoc/Javadoc.Returns true if the operations in the method are valid.



testMethod
public static void testMethod(StringBuffer allParams, MethodDoc method, String[] methodArray, int[] methodNumArray, int currentMethod, String className, String dataFile) throws IOException(Code)
Get the method Parameter list.
Parameters:
  allParams - All parameters of the method.
Parameters:
  method - Array of all methods.
Parameters:
  methodArray - Method name for overridden methods.
Parameters:
  methodNumArray - Number of overridden methods.
Parameters:
  currentMethod - Integer value of current method.
Parameters:
  className - Name of the original class.
Parameters:
  dataFile - Name of the XML data file.
throws:
  IOException - Throws IOException.



validOptions
public static boolean validOptions(String[][] options, DocErrorReporter reporter)(Code)
Verify if the options given are valid.
Parameters:
  options - Doclet options
Parameters:
  reporter - Error reporterReturns true if the -d option is valid.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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