public class EUnitTask extends ExecutableModuleTask implements EUnitTestListener
| Modifier and Type | Class and Description |
|---|---|
class |
EUnitTask.RunTargetOperationContributor |
class |
EUnitTask.TaskCollection
Class for a nested element which simply contains tasks.
|
assertions, code, exportsVariableNestedElements, fine, modelNestedElements, module, parameterNestedElements, result, setBeans, src, uri, usesVariableNestedElementsfailOnErrors, failOnWarnings, profileEXTENSION_POINT_ID| Constructor and Description |
|---|
EUnitTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCase(EUnitModule module,
EUnitTest test)
Notification sent after running a test case.
|
void |
beforeCase(EUnitModule module,
EUnitTest test)
Notification sent before running a test case.
|
EUnitTask.TaskCollection |
createModelTasks() |
IEolExecutableModule |
createModule() |
protected void |
examine() |
String |
getPackage()
Returns the package in which all tests will be contained.
|
File |
getToDir()
Returns the destination directory for the JUnit-like report.
|
protected void |
initialize() |
boolean |
isReport()
Returns
true if a XML report compatible with the <junit> Ant task should be generated. |
void |
setPackage(String packageName)
Changes the package in which all tests will be contained.
|
void |
setReport(boolean generate)
Changes whether an XML report compatible with the <junit> Ant task should be generated.
|
void |
setToDir(File f)
Changes the destination directory for the JUnit-like report.
|
addText, addVariables, configureModule, createExports, createModel, createParameter, createUses, executeImpl, exportVariable, getSrc, getTaskName, getUri, isAssertions, isDebug, isFine, isGUI, isSetBeans, populateModelRepository, setAssertions, setDebug, setFine, setGUI, setSetBeans, setSrc, setUri, useResults, useVariableexecute, fail, getActiveTransactions, getBaseDir, getExtendedProperties, getProjectRepository, getProjectStackFrame, isFailOnErrors, isFailOnWarnings, isProfile, setFailOnErrors, setFailOnWarnings, setProfile, setProjectRepository, warnbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeprotected void initialize()
throws Exception
initialize in class ExecutableModuleTaskExceptionprotected void examine()
throws Exception
examine in class ExecutableModuleTaskExceptionpublic IEolExecutableModule createModule()
createModule in class ExecutableModuleTaskpublic void beforeCase(EUnitModule module, EUnitTest test)
EUnitTestListenerbeforeCase in interface EUnitTestListenermodule - EUnit module under execution.test - Description of the test case: its result has not been set yet.public void afterCase(EUnitModule module, EUnitTest test)
EUnitTestListenerafterCase in interface EUnitTestListenermodule - EUnit module under execution.test - Test case, with its result set.public EUnitTask.TaskCollection createModelTasks()
public File getToDir()
public void setToDir(File f)
getToDir() for the default value.public String getPackage()
EUnitModule.DEFAULT_PACKAGE.public void setPackage(String packageName)
public boolean isReport()
true if a XML report compatible with the <junit> Ant task should be generated.public void setReport(boolean generate)
generate - If true, the XML report will be generated. Otherwise, it will not be generated.Copyright © 2016. All rights reserved.