org.virtualmock.taskdef
Class VMUnitTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.tools.ant.taskdefs.optional.junit.JUnitTask
              extended byorg.virtualmock.taskdef.VMUnitTask

public class VMUnitTask
extends org.apache.tools.ant.taskdefs.optional.junit.JUnitTask

Custom Ant task to execute JUnit tests in VirtualMock environment.

Version:
$Revision: 1.6 $
Author:
Chad Woolley

Nested Class Summary
 
Nested classes inherited from class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.SummaryAttribute
 
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
VMUnitTask()
          Overridden constructor from superclass.
 
Method Summary
 org.apache.tools.ant.types.Path createClasspath()
          Overridden method to handle classpath.
 void execute()
          Perform execution of the task, first performing necessary setup to run VirtualMock unit tests.
 
Methods inherited from class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
addClasspathEntry, addEnv, addFormatter, addSysproperty, addTest, allTests, createBatchTest, createJvmarg, createWatchdog, execute, getDefaultOutput, getIndividualTests, getOutput, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, setDir, setErrorProperty, setFailureProperty, setFiltertrace, setFork, setHaltonerror, setHaltonfailure, setIncludeantruntime, setJvm, setMaxmemory, setNewenvironment, setPrintsummary, setShowOutput, setTimeout
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, 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

VMUnitTask

public VMUnitTask()
           throws java.lang.Exception
Overridden constructor from superclass.

Throws:
java.lang.Exception - if any exception occurs in constructor
Method Detail

createClasspath

public org.apache.tools.ant.types.Path createClasspath()
Overridden method to handle classpath. It will take the classpath that is currently specified, and append all elements required to support the VirtualMock environment.

Returns:
the modified classpath

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Perform execution of the task, first performing necessary setup to run VirtualMock unit tests.

Throws:
org.apache.tools.ant.BuildException - DOCUMENT ME! (Constructor Exception)


Copyright © 2003-2005 Virtual Mock. All Rights Reserved.