Java Doc for TestGeneratorSetup.java in  » IDE-Netbeans » junit » org » netbeans » modules » junit » 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 » IDE Netbeans » junit » org.netbeans.modules.junit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.junit.TestGeneratorSetup

TestGeneratorSetup
final public class TestGeneratorSetup implements TestabilityJudge(Code)

author:
   Marian Petras



Constructor Summary
public  TestGeneratorSetup(boolean loadDefaults)
     Creates a new TestCreator.
public  TestGeneratorSetup(Map<CreateTestParam, Object> params)
    

Method Summary
public  EnumSet<Modifier>getMethodAccessModifiers()
     Tells which methods should be tested - public, protected, private or a combination of these.
public  TestabilityResultisClassTestable(CompilationInfo compInfo, TypeElement classElem)
     Checks whether the given class or at least one of its nested classes is testable.
public  booleanisGenerateAfter()
    
public  booleanisGenerateAfterClass()
    
public  booleanisGenerateBefore()
    
public  booleanisGenerateBeforeClass()
    
public  booleanisGenerateDefMethodBody()
    
public  booleanisGenerateMainMethod()
    
public  booleanisGenerateMethodBodyComment()
    
public  booleanisGenerateMethodJavadoc()
    
public  booleanisGenerateSetUp()
    
public  booleanisGenerateSuiteClasses()
    
public  booleanisGenerateTearDown()
    
public  booleanisMethodTestable(ExecutableElement method)
     Checks whether a test for the given method should be created.
public  booleanisSkipAbstractClasses()
    
public  booleanisSkipExceptionClasses()
    
public  booleanisSkipPackagePrivateClasses()
    
public  booleanisSkipTestClasses()
    
public  booleanisTestPackagePrivateMethods()
    
public  booleanisTestProtectedMethods()
    
public  booleanisTestPublicMethods()
    
public  voidsetGenerateAfter(boolean generate)
     Sets whether tearDown() method should be generated in test classes being created/updated.
public  voidsetGenerateAfterClass(boolean generate)
     Sets whether tearDown() method should be generated in test classes being created/updated.
public  voidsetGenerateBefore(boolean generate)
     Sets whether setUp() method should be generated in test classes being created/updated.
public  voidsetGenerateBeforeClass(boolean generate)
     Sets whether setUp() method should be generated in test classes being created/updated.
public  voidsetGenerateDefMethodBody(boolean generate)
     Sets whether default method bodies should be generated for newly created test methods.
public  voidsetGenerateMainMethod(boolean generate)
     Sets whether static method main(String args[]) should be generated in test classes.
public  voidsetGenerateMethodBodyComment(boolean generate)
     Sets whether method body comment should be generated for newly created test methods.
public  voidsetGenerateMethodJavadoc(boolean generate)
     Sets whether Javadoc comment should be generated for newly created test methods.
public  voidsetGenerateSetUp(boolean generate)
     Sets whether setUp() method should be generated in test classes being created/updated.
public  voidsetGenerateSuiteClasses(boolean generate)
     Sets whether test suite classes should be generated when creating tests for folders and/or packages.
public  voidsetGenerateTearDown(boolean generate)
     Sets whether tearDown() method should be generated in test classes being created/updated.
public  voidsetSkipAbstractClasses(boolean skip)
     Sets whether tests for abstract classes should be generated The default is false.
public  voidsetSkipExceptionClasses(boolean skip)
     Sets whether tests for exception classes should be generated The default is false.
public  voidsetSkipPackagePrivateClasses(boolean skip)
     Sets whether tests for package-private classes should be generated The default is false.
public  voidsetSkipTestClasses(boolean skip)
     Sets whether tests for test classes should be generated The default is true.
public  voidsetTestPackagePrivateMethods(boolean test)
     Sets whether package-private methods should be tested or not.
public  voidsetTestProtectedMethods(boolean test)
     Sets whether protected methods should be tested or not.
public  voidsetTestPublicMethods(boolean test)
     Sets whether public methods should be tested or not.


Constructor Detail
TestGeneratorSetup
public TestGeneratorSetup(boolean loadDefaults)(Code)
Creates a new TestCreator.
Parameters:
  loadDefaults - true if defaults should be loadedfrom JUnitSettings;false otherwise



TestGeneratorSetup
public TestGeneratorSetup(Map<CreateTestParam, Object> params)(Code)




Method Detail
getMethodAccessModifiers
public EnumSet<Modifier> getMethodAccessModifiers()(Code)
Tells which methods should be tested - public, protected, private or a combination of these. EnumSet of access modifiers that determine which methodsshould be tested (for which test skeletons should be created).



isClassTestable
public TestabilityResult isClassTestable(CompilationInfo compInfo, TypeElement classElem)(Code)
Checks whether the given class or at least one of its nested classes is testable.
Parameters:
  compInfo - used for CompilationInfo.getElementsand CompilationInfo.getTypes
Parameters:
  classElem - class to be checked TestabilityResult that isOk, if the class is testable or carriesthe information why the class is not testable



isGenerateAfter
public boolean isGenerateAfter()(Code)



isGenerateAfterClass
public boolean isGenerateAfterClass()(Code)



isGenerateBefore
public boolean isGenerateBefore()(Code)



isGenerateBeforeClass
public boolean isGenerateBeforeClass()(Code)



isGenerateDefMethodBody
public boolean isGenerateDefMethodBody()(Code)



isGenerateMainMethod
public boolean isGenerateMainMethod()(Code)



isGenerateMethodBodyComment
public boolean isGenerateMethodBodyComment()(Code)



isGenerateMethodJavadoc
public boolean isGenerateMethodJavadoc()(Code)



isGenerateSetUp
public boolean isGenerateSetUp()(Code)



isGenerateSuiteClasses
public boolean isGenerateSuiteClasses()(Code)



isGenerateTearDown
public boolean isGenerateTearDown()(Code)



isMethodTestable
public boolean isMethodTestable(ExecutableElement method)(Code)
Checks whether a test for the given method should be created. Access modifiers of the given method are compared to this creator's settings.
Parameters:
  m - method to be checked true if this creator is configured to create testsfor methods having the given method's access modifiers;false otherwise



isSkipAbstractClasses
public boolean isSkipAbstractClasses()(Code)



isSkipExceptionClasses
public boolean isSkipExceptionClasses()(Code)



isSkipPackagePrivateClasses
public boolean isSkipPackagePrivateClasses()(Code)



isSkipTestClasses
public boolean isSkipTestClasses()(Code)



isTestPackagePrivateMethods
public boolean isTestPackagePrivateMethods()(Code)



isTestProtectedMethods
public boolean isTestProtectedMethods()(Code)



isTestPublicMethods
public boolean isTestPublicMethods()(Code)



setGenerateAfter
public void setGenerateAfter(boolean generate)(Code)
Sets whether tearDown() method should be generated in test classes being created/updated. The default is true.
Parameters:
  generate - true if tearDown() methodshould be generated; false otherwise
See Also:   TestGeneratorSetup.setGenerateSetUp
See Also:   TestGeneratorSetup.setGenerateMainMethod



setGenerateAfterClass
public void setGenerateAfterClass(boolean generate)(Code)
Sets whether tearDown() method should be generated in test classes being created/updated. The default is true.
Parameters:
  generate - true if tearDown() methodshould be generated; false otherwise
See Also:   TestGeneratorSetup.setGenerateSetUp
See Also:   TestGeneratorSetup.setGenerateMainMethod



setGenerateBefore
public void setGenerateBefore(boolean generate)(Code)
Sets whether setUp() method should be generated in test classes being created/updated. The default is true.
Parameters:
  generate - true if setUp() methodshould be generated; false otherwise
See Also:   TestGeneratorSetup.setGenerateTearDown
See Also:   TestGeneratorSetup.setGenerateMainMethod



setGenerateBeforeClass
public void setGenerateBeforeClass(boolean generate)(Code)
Sets whether setUp() method should be generated in test classes being created/updated. The default is true.
Parameters:
  generate - true if setUp() methodshould be generated; false otherwise
See Also:   TestGeneratorSetup.setGenerateTearDown
See Also:   TestGeneratorSetup.setGenerateMainMethod



setGenerateDefMethodBody
public void setGenerateDefMethodBody(boolean generate)(Code)
Sets whether default method bodies should be generated for newly created test methods. The default is true.
Parameters:
  generate - true if default method bodies shouldbe generated; false otherwise



setGenerateMainMethod
public void setGenerateMainMethod(boolean generate)(Code)
Sets whether static method main(String args[]) should be generated in test classes. The default is true.
Parameters:
  generate - true if the method should be generated;false otherwise
See Also:   TestGeneratorSetup.setGenerateSetUp
See Also:   TestGeneratorSetup.setGenerateTearDown



setGenerateMethodBodyComment
public void setGenerateMethodBodyComment(boolean generate)(Code)
Sets whether method body comment should be generated for newly created test methods. The default is true.
Parameters:
  generate - true if method body comment shouldbe generated; false otherwise



setGenerateMethodJavadoc
public void setGenerateMethodJavadoc(boolean generate)(Code)
Sets whether Javadoc comment should be generated for newly created test methods. The default is true.
Parameters:
  generate - true if Javadoc comment shouldbe generated; false otherwise



setGenerateSetUp
public void setGenerateSetUp(boolean generate)(Code)
Sets whether setUp() method should be generated in test classes being created/updated. The default is true.
Parameters:
  generate - true if setUp() methodshould be generated; false otherwise
See Also:   TestGeneratorSetup.setGenerateTearDown
See Also:   TestGeneratorSetup.setGenerateMainMethod



setGenerateSuiteClasses
public void setGenerateSuiteClasses(boolean generate)(Code)
Sets whether test suite classes should be generated when creating tests for folders and/or packages.
Parameters:
  generate - true if test suite classes shouldbe generated; false otherwise



setGenerateTearDown
public void setGenerateTearDown(boolean generate)(Code)
Sets whether tearDown() method should be generated in test classes being created/updated. The default is true.
Parameters:
  generate - true if tearDown() methodshould be generated; false otherwise
See Also:   TestGeneratorSetup.setGenerateSetUp
See Also:   TestGeneratorSetup.setGenerateMainMethod



setSkipAbstractClasses
public void setSkipAbstractClasses(boolean skip)(Code)
Sets whether tests for abstract classes should be generated The default is false.
Parameters:
  test - false if abstract classes should be skippedduring test creation;true otherwise



setSkipExceptionClasses
public void setSkipExceptionClasses(boolean skip)(Code)
Sets whether tests for exception classes should be generated The default is false.
Parameters:
  test - false if exception classes should be skippedduring test creation;true otherwise



setSkipPackagePrivateClasses
public void setSkipPackagePrivateClasses(boolean skip)(Code)
Sets whether tests for package-private classes should be generated The default is false.
Parameters:
  test - false if package-private classes shouldbe skipped during test creation;true otherwise



setSkipTestClasses
public void setSkipTestClasses(boolean skip)(Code)
Sets whether tests for test classes should be generated The default is true.
Parameters:
  test - false if test classes should be skippedduring test creation;true otherwise



setTestPackagePrivateMethods
public void setTestPackagePrivateMethods(boolean test)(Code)
Sets whether package-private methods should be tested or not. The default is true.
Parameters:
  test - true if package-private methods should betested;false if package-private methods should beskipped



setTestProtectedMethods
public void setTestProtectedMethods(boolean test)(Code)
Sets whether protected methods should be tested or not. The default is true.
Parameters:
  test - true if protected methods should be tested;false if protected methods should be skipped



setTestPublicMethods
public void setTestPublicMethods(boolean test)(Code)
Sets whether public methods should be tested or not. The default is true.
Parameters:
  test - true if public methods should be tested;false if public methods should be skipped



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.