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).
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
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
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)
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)
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)
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