public static class TestClassValidator.DefaultClassValidator extends java.lang.Object implements TestClassValidator.ClassValidator
ClassValidator
interface. This class is meant to become the base class for other, more
specific, validators.TestClassValidator
Constructor and Description |
---|
DefaultClassValidator() |
Modifier and Type | Method and Description |
---|---|
void |
setListener(TestClassValidator.ClassValidatorListener listener)
Sets the listener that will report to the user.
|
void |
validate(java.lang.Class cls)
Validates a given class and report infos, warnings and errors via
the ClassValidatorListener object (if any was set).
|
protected void |
validateOtherMethod(java.lang.reflect.Method method)
Validates all other methods whose name did not match either 'suite',
'setUp' or 'tearDown'.
|
protected void |
validateSetUpMethod(java.lang.reflect.Method method)
Verifies that the 'setUp' method is recognized by the JUnit
framework.
|
protected void |
validateSuiteMethod(java.lang.reflect.Method method)
Verifies that the 'suite' method is recognized by the JUnit
framework.
|
protected void |
validateTearDownMethod(java.lang.reflect.Method method)
Verifies that the 'tearDown' method is recognized by the JUnit
framework.
|
protected void |
validateTestMethod(java.lang.reflect.Method method)
Verifies that the 'test' method is recognized by the JUnit
framework.
|
public void setListener(TestClassValidator.ClassValidatorListener listener)
TestClassValidator.ClassValidator
setListener
in interface TestClassValidator.ClassValidator
public void validate(java.lang.Class cls)
TestClassValidator.ClassValidator
validate
in interface TestClassValidator.ClassValidator
protected void validateSuiteMethod(java.lang.reflect.Method method)
The method must:
protected void validateSetUpMethod(java.lang.reflect.Method method)
The method must:
protected void validateTearDownMethod(java.lang.reflect.Method method)
The method must:
protected void validateTestMethod(java.lang.reflect.Method method)
The method must:
protected void validateOtherMethod(java.lang.reflect.Method method)
Copyright © ${project.year} ${project.holder}. All Rights Reserved.