Package org.eclipse.epsilon.eunit
Class EUnitModule
java.lang.Object
org.eclipse.epsilon.common.module.AbstractModuleElement
org.eclipse.epsilon.eol.AbstractModule
org.eclipse.epsilon.eol.EolModule
org.eclipse.epsilon.eunit.EUnitModule
- All Implemented Interfaces:
IModule,ModuleElement,IEolModule,IEUnitModule
-
Field Summary
FieldsFields inherited from class org.eclipse.epsilon.eol.EolModule
context, declaredModelDeclarations, declaredOperations, imports, main, modelDeclarations, operations, postOperationStatementsFields inherited from class org.eclipse.epsilon.eol.AbstractModule
parseProblems, parser, sourceFile, sourceUri -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddTestListener(EUnitTestListener listener) static StringgetBasename(ModuleElement moduleElement) Returns the "class name" to be used for this module in JUnit-style reports.protected List<ModelBindings>getModelBindings(Operation opTest) Returns the path to the directory which will store the clones used to freeze models during comparisons.Returns the package name to use in the reports.Returns the logical name of this module as if it was a Java class, for the JUnit-style reports.Returns the destination directory for the JUnit-style XML report.List<?>getTests()booleanisAnnotatedAs(Operation operation, String annotation) booleanremoveTestListener(EUnitTestListener listener) voidvoidsetModelCloneDirectory(File modelCloneDirectory) Changes the model clone directory.voidsetPackage(String packageName) Changes the package name to use in the reports.voidsetReportDirectory(File reportFile) If not null, a JUnit-style XML report will be saved to the specific destination directory.voidsetSelectedOperations(List<?> attribute) Methods inherited from class org.eclipse.epsilon.eol.EolModule
adapt, build, checkImports, clearCache, createDebugger, createLexer, createParser, execute, getContext, getDeclaredModelDeclarations, getDeclaredOperations, getImportConfiguration, getImportManager, getImports, getImportsByExtension, getMain, getMainRule, getModelDeclarations, getOperations, getParentModule, getPostOperationStatements, prepareContext, setContext, setImportManager, setMain, setParentModule, toStringMethods inherited from class org.eclipse.epsilon.eol.AbstractModule
assignAnnotations, assignComment, assignComments, createAst, extractComments, getParseProblems, getSourceFile, getSourceUri, invokeMainRule, parse, parseMethods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUriMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.epsilon.eol.IEolModule
configure, createDebugger, execute, getConfigurationProperties, getContext, getDeclaredModelDeclarations, getDeclaredOperations, getImportManager, getImports, getMain, getModelDeclarations, getOperations, getParentModule, getParseProblems, getPostOperationStatements, parse, setContext, setImportManager, setParentModuleMethods inherited from interface org.eclipse.epsilon.common.module.IModule
createAst, getSourceUri, parse, parse, parse, parse, parseMethods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
build, getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
Field Details
-
DEFAULT_PACKAGE
Default package name for the JUnit reports.- See Also:
-
-
Constructor Details
-
EUnitModule
public EUnitModule()
-
-
Method Details
-
getTests
- Specified by:
getTestsin interfaceIEUnitModule
-
getInlineModelOperations
- Specified by:
getInlineModelOperationsin interfaceIEUnitModule
-
getSetups
- Specified by:
getSetupsin interfaceIEUnitModule
-
getTeardowns
- Specified by:
getTeardownsin interfaceIEUnitModule
-
getSuiteSetups
- Specified by:
getSuiteSetupsin interfaceIEUnitModule
-
getSuiteTeardowns
- Specified by:
getSuiteTeardownsin interfaceIEUnitModule
-
getCustomComparators
- Specified by:
getCustomComparatorsin interfaceIEUnitModule
-
getDataVariableNames
- Specified by:
getDataVariableNamesin interfaceIEUnitModule
-
isAnnotatedAs
- Specified by:
isAnnotatedAsin interfaceIEUnitModule
-
executeImpl
- Overrides:
executeImplin classEolModule- Throws:
EolRuntimeException
-
getSuiteRoot
- Specified by:
getSuiteRootin interfaceIEUnitModule- Throws:
EolRuntimeException
-
runSuite
- Specified by:
runSuitein interfaceIEUnitModule- Throws:
EolRuntimeException
-
getModelBindings
- Throws:
EolRuntimeException
-
addTestListener
- Specified by:
addTestListenerin interfaceIEUnitModule
-
removeTestListener
- Specified by:
removeTestListenerin interfaceIEUnitModule
-
getSelectedOperations
- Specified by:
getSelectedOperationsin interfaceIEUnitModule
-
setSelectedOperations
- Specified by:
setSelectedOperationsin interfaceIEUnitModule- Throws:
EolRuntimeException
-
setReportDirectory
If not null, a JUnit-style XML report will be saved to the specific destination directory. By default, it is not generated.- Specified by:
setReportDirectoryin interfaceIEUnitModule
-
getReportDirectory
Returns the destination directory for the JUnit-style XML report. For details about possible values, seesetReportDirectory(File).- Specified by:
getReportDirectoryin interfaceIEUnitModule
-
getClassName
Returns the "class name" to be used for this module in JUnit-style reports. It is the basename of the .eunit file, without the extension.- Specified by:
getClassNamein interfaceIEUnitModule
-
getPackage
Returns the package name to use in the reports. By default, it isDEFAULT_PACKAGE.- Specified by:
getPackagein interfaceIEUnitModule
-
setPackage
Changes the package name to use in the reports. By default, it isDEFAULT_PACKAGE.- Specified by:
setPackagein interfaceIEUnitModule
-
getQualifiedName
Returns the logical name of this module as if it was a Java class, for the JUnit-style reports.- Specified by:
getQualifiedNamein interfaceIEUnitModule
-
getModelCloneDirectory
Description copied from interface:IEUnitModuleReturns the path to the directory which will store the clones used to freeze models during comparisons. By default, this will be#DEFAULT_EUNIT_MODEL_CLONE_DIRin the current directory. If set tonull, the operating system's system-wide temporary folder will be used.- Specified by:
getModelCloneDirectoryin interfaceIEUnitModule
-
setModelCloneDirectory
Description copied from interface:IEUnitModuleChanges the model clone directory.- Specified by:
setModelCloneDirectoryin interfaceIEUnitModule- See Also:
-
getBasename
-