| 
JUnit-addons version 1.4  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--junitx.ant.TestClassValidatorTask
Validate a JUnit TestCase or TestSuite and outline potential errors in the definition of the classes.
  <taskdef name="TestValidator"
              classname="junitx.ant.TestClassValidatorTask"
              classpath="junit-addons-3.7.x.jar" />
  <validator verbose="off">
    <classpath>
      <pathelement location="classes" />
      <fileset dir="lib">
        <include name="\*\*.jar"/>
        <include name="\*\*.zip"/>
      </fileset>
    </classpath>
    <fileset dir="classes">
      <include name="*-/*Suite.class"/>
      <include name="*-/*Test.class"/>
    </fileset>
  </validator>
 
| Field Summary | 
| Fields inherited from class org.apache.tools.ant.Task | 
description, location, target, taskName, taskType, wrapper | 
| Fields inherited from class org.apache.tools.ant.ProjectComponent | 
project | 
| Constructor Summary | |
TestClassValidatorTask()
 | 
|
| Method Summary | |
 void | 
addFileset(org.apache.tools.ant.types.FileSet set)
Add a new fileset instance to this task.  | 
 org.apache.tools.ant.types.Path | 
createClasspath()
Creates a nested classpath element  | 
 void | 
execute()
Called by the project to let the task do it's work.  | 
 void | 
setClasspath(org.apache.tools.ant.types.Path classpath)
Set the classpath to be used for this validation.  | 
 void | 
setClasspathRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a CLASSPATH defined elsewhere.  | 
 void | 
setVerbose(boolean verbose)
Used to force listing of all names of processed files.  | 
| Methods inherited from class org.apache.tools.ant.Task | 
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName | 
| Methods inherited from class org.apache.tools.ant.ProjectComponent | 
getProject, setProject | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public TestClassValidatorTask()
| Method Detail | 
public void execute()
             throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - if someting goes wrong with the buildpublic void setClasspath(org.apache.tools.ant.types.Path classpath)
public org.apache.tools.ant.types.Path createClasspath()
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
public void addFileset(org.apache.tools.ant.types.FileSet set)
set - the new fileset containing the rules to get the testcases.public void setVerbose(boolean verbose)
verbose - "true" or "on"
  | 
JUnit-addons version 1.4  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||