public class EUnitModule extends EolModule
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PACKAGE
Default package name for the JUnit reports.
|
compilationContext, context, declaredModelDeclarations, declaredOperations, imports, main, modelDeclarations, operations, postOperationStatementsparseProblems, parser, sourceFile, sourceUri| Constructor and Description |
|---|
EUnitModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addTestListener(EUnitTestListener listener) |
Object |
executeImpl() |
static String |
getBasename(ModuleElement moduleElement) |
String |
getClassName()
Returns the "class name" to be used for this module in JUnit-style reports.
|
List<Pair<Operation,String>> |
getDataVariableNames() |
ArrayList<Operation> |
getInlineModelOperations() |
protected List<ModelBindings> |
getModelBindings(Operation opTest) |
String |
getPackage()
Returns the package name to use in the reports.
|
String |
getQualifiedName()
Returns the logical name of this module as if it was a Java class, for the JUnit-style reports.
|
File |
getReportDirectory()
Returns the destination directory for the JUnit-style XML report.
|
List |
getSelectedOperations() |
ArrayList<Operation> |
getSetups() |
EUnitTest |
getSuiteRoot() |
ArrayList<Operation> |
getSuiteSetups() |
ArrayList<Operation> |
getSuiteTeardowns() |
ArrayList<Operation> |
getTeardowns() |
ArrayList<Operation> |
getTests() |
boolean |
isAnnotatedAs(Operation operation,
String annotation) |
boolean |
removeTestListener(EUnitTestListener listener) |
void |
runSuite(EUnitTest node) |
void |
setPackage(String packageName)
Changes the package name to use in the reports.
|
void |
setReportDirectory(File reportFile)
Changes the destination directory for the JUnit-style XML report.
|
void |
setSelectedOperations(List attribute) |
adapt, build, checkImports, clearCache, compile, createLexer, createParser, execute, getCompilationContext, getContext, getDeclaredModelDeclarations, getDeclaredOperations, getImportConfiguration, getImports, getImportsByExtension, getMain, getMainRule, getModelDelcarations, getOperations, getParentModule, getPostOperationStatements, prepareContext, setContext, setMain, setParentModule, toStringassignAnnotations, assignComment, assignComments, createAst, extractComments, getParseProblems, getSourceFile, getSourceUri, invokeMainRule, parse, parse, parse, parsegetChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUriclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParseProblems, parsepublic static final String DEFAULT_PACKAGE
public Object executeImpl() throws EolRuntimeException
executeImpl in class EolModuleEolRuntimeExceptionpublic EUnitTest getSuiteRoot() throws EolRuntimeException
EolRuntimeExceptionpublic void runSuite(EUnitTest node) throws EolRuntimeException
EolRuntimeExceptionprotected List<ModelBindings> getModelBindings(Operation opTest) throws EolRuntimeException
EolRuntimeExceptionpublic boolean addTestListener(EUnitTestListener listener)
public boolean removeTestListener(EUnitTestListener listener)
public List getSelectedOperations()
public void setSelectedOperations(List attribute) throws EolRuntimeException
EolRuntimeExceptionpublic void setReportDirectory(File reportFile)
null,
no report will be written.public File getReportDirectory()
setReportDirectory(File).public String getClassName()
public String getPackage()
DEFAULT_PACKAGE.public void setPackage(String packageName)
DEFAULT_PACKAGE.public String getQualifiedName()
public static String getBasename(ModuleElement moduleElement)
Copyright © 2018. All rights reserved.