public class ESMutateUtil extends Object implements ESFuzzyUtil
ESFuzzyUtil class for tests using the ESEMFDataProvider.| Constructor and Description |
|---|
ESMutateUtil(ESFuzzyEMFDataProvider dataProvider)
For internal use.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
public ESMutateUtil(ESFuzzyEMFDataProvider dataProvider)
dataProvider - The ESEMFDataProvider of the test.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()
EStructuralFeatures 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.xmlobj - 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()
Copyright © 2017. All rights reserved.