|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.fuzzy.emf.ESMutateUtil
public class ESMutateUtil
A ESFuzzyUtil
class for tests using the ESEMFDataProvider
.
Constructor Summary | |
---|---|
ESMutateUtil(ESFuzzyEMFDataProvider dataProvider)
For internal use. |
Method Summary | |
---|---|
Collection<org.eclipse.emf.ecore.EClass> |
getEClassesToIgnore()
|
Collection<org.eclipse.emf.ecore.EPackage> |
getEPackages()
|
Collection<org.eclipse.emf.ecore.EStructuralFeature> |
getEStructuralFeaturesToIgnore()
|
int |
getMinObjectsCount()
|
Integer |
getMutationCount()
Returns how many mutation should be performed, if set |
String |
getRunResourcePath(String suffix)
|
org.eclipse.emf.common.util.URI |
getRunResourceURI(String suffix)
|
long |
getSeed()
|
int |
getSeedCount()
|
void |
mutate()
Mutate with the ESModelMutatorConfiguration from configuration file. |
void |
mutate(ESModelMutatorConfiguration mmc)
Mutate with a ESModelMutatorConfiguration . |
void |
saveEObject(org.eclipse.emf.ecore.EObject obj)
|
void |
saveEObject(org.eclipse.emf.ecore.EObject obj,
String suffix,
boolean discardDanglingHREF)
Save an EObject in the folder: artifacts/runs/configID. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ESMutateUtil(ESFuzzyEMFDataProvider dataProvider)
dataProvider
- The ESEMFDataProvider
of the test.Method Detail |
---|
public Collection<org.eclipse.emf.ecore.EPackage> getEPackages()
EPackage
of the ESEMFDataProvider
.public int getMinObjectsCount()
ESModelMutatorConfiguration
of the
ESEMFDataProvider
.public long getSeed()
ESEMFDataProvider
.public int getSeedCount()
ESEMFDataProvider
.public Collection<org.eclipse.emf.ecore.EClass> getEClassesToIgnore()
ESModelMutatorConfiguration
.public Collection<org.eclipse.emf.ecore.EStructuralFeature> getEStructuralFeaturesToIgnore()
EStructuralFeature
s to ignore in the current ESModelMutatorConfiguration
.public void mutate(ESModelMutatorConfiguration mmc)
ESModelMutatorConfiguration
.
mmc
- The ESModelMutatorConfiguration
to use for mutation.public void mutate()
ESModelMutatorConfiguration
from configuration file.
public void saveEObject(org.eclipse.emf.ecore.EObject obj)
obj
- The EObject
to save.saveEObject(EObject, String, boolean)
public void saveEObject(org.eclipse.emf.ecore.EObject obj, String suffix, boolean discardDanglingHREF)
EObject
in the folder: artifacts/runs/configID.
Use it for instance to save objects, when an error occurs.
The file name is always: COUNT_SUFFIX.xml so e.g. 3_testFile.xml
obj
- The EObject to save.suffix
- The suffix of the file: e.g. testFile. null
permitted.discardDanglingHREF
- Should the save ignore dangling hrefs?public String getRunResourcePath(String suffix)
suffix
- The suffix for the file: e.g. testFile. null
permitted.
public org.eclipse.emf.common.util.URI getRunResourceURI(String suffix)
suffix
- The suffix for the file: e.g. testFile. null
permitted.
URI
to the current run folder.public Integer getMutationCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |