Class LoadModelTests.LoadModelWithSpy
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.eclipse.epsilon.workflow.tasks.EpsilonTask
-
- org.eclipse.epsilon.workflow.tasks.AbstractLoadModelTask
-
- org.eclipse.epsilon.workflow.tasks.emf.LoadEmfModelTask
-
- org.eclipse.epsilon.workflow.tasks.emf.LoadModelTests.LoadModelWithSpy
-
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- LoadModelTests
public static class LoadModelTests.LoadModelWithSpy extends LoadEmfModelTask
An extension to LoadModelTask that stubs out the createModel method to return a spy (which can be interrogated by the tests) rather than a real model.
-
-
Field Summary
Fields Modifier and Type Field Description static ModelSpy
spy
-
Fields inherited from class org.eclipse.epsilon.workflow.tasks.emf.LoadEmfModelTask
alias, cached, concurrent, expand, metamodelFile, metamodelUri, modelFile, modelUri, read, reuseUnmodifiedMetamodelFile, store, validate
-
Fields inherited from class org.eclipse.epsilon.workflow.tasks.AbstractLoadModelTask
name
-
Fields inherited from class org.eclipse.epsilon.workflow.tasks.EpsilonTask
failOnErrors, failOnWarnings, profile
-
-
Constructor Summary
Constructors Constructor Description LoadModelWithSpy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EmfModel
createEmfModel()
-
Methods inherited from class org.eclipse.epsilon.workflow.tasks.emf.LoadEmfModelTask
getAlias, getAliases, getMetamodelFile, getMetamodelUri, getModelFile, getModelUri, isCached, isConcurrent, isExpand, isRead, isReuseUnmodifiedMetamodelFile, isStore, isValidate, loadModel, setAlias, setAliases, setCached, setConcurrent, setExpand, setMetamodelFile, setMetamodelUri, setModelFile, setModelUri, setRead, setReuseUnmodifiedMetamodelFile, setStore, setValidate
-
Methods inherited from class org.eclipse.epsilon.workflow.tasks.AbstractLoadModelTask
executeImpl, getName, setName
-
Methods inherited from class org.eclipse.epsilon.workflow.tasks.EpsilonTask
execute, fail, getActiveTransactions, getBaseDir, getExtendedProperties, getModelRepository, getProjectRepository, getProjectStackFrame, isFailOnErrors, isFailOnWarnings, isProfile, setFailOnErrors, setFailOnWarnings, setProfile, setProjectRepository, usesSharedModelRepository, warn
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Field Detail
-
spy
public static ModelSpy spy
-
-
Method Detail
-
createEmfModel
protected EmfModel createEmfModel()
- Overrides:
createEmfModel
in classLoadEmfModelTask
-
-