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, postOperationStatements
parseProblems, 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, toString
assignAnnotations, assignComment, assignComments, createAst, extractComments, getParseProblems, getSourceFile, getSourceUri, invokeMainRule, parse, parse, parse, parse
getChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParseProblems, parse
public static final String DEFAULT_PACKAGE
public Object executeImpl() throws EolRuntimeException
executeImpl
in class EolModule
EolRuntimeException
public EUnitTest getSuiteRoot() throws EolRuntimeException
EolRuntimeException
public void runSuite(EUnitTest node) throws EolRuntimeException
EolRuntimeException
protected List<ModelBindings> getModelBindings(Operation opTest) throws EolRuntimeException
EolRuntimeException
public boolean addTestListener(EUnitTestListener listener)
public boolean removeTestListener(EUnitTestListener listener)
public List getSelectedOperations()
public void setSelectedOperations(List attribute) throws EolRuntimeException
EolRuntimeException
public 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.