public class ESEMFDataProvider extends Object implements ESFuzzyEMFDataProvider
ESFuzzyDataProvider
provides
generated models
using the functionality of an ESAbstractModelMutator. TestConfig, defining model etc. TestResults to create a test run for
reporting purpose.| Modifier and Type | Field and Description |
|---|---|
static String |
MUTATOR_EDITINGDOMAIN
Options constant for the
EditingDomain for the ESAbstractModelMutator. |
static String |
MUTATOR_EXC_LOG
Options constant for the exception log set for the mutator.
|
static String |
PROP_CONFIGS_FILE
Property specifying the path to the config file for the
ESEMFDataProvider. |
static String |
PROP_EMFDATAPROVIDER
Prefix of the properties concerning the
ESEMFDataProvider. |
| Constructor and Description |
|---|
ESEMFDataProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Call finish as last action of the
ESEMFDataProvider. |
org.eclipse.emf.ecore.EObject |
get(int count)
See
ESFuzzyDataProvider. |
ESTestConfig |
getConfig()
Returns the config specifying this run of this provider.
|
int |
getCurrentSeedCount()
Returns the current seed that is used to generate the model.
|
Collection<org.eclipse.emf.ecore.EPackage> |
getEPackages()
Returns a collection of
EPackages that are
being considered to be generated/mutated. |
List<org.junit.runner.notification.RunListener> |
getListener() |
ESModelMutatorConfiguration |
getModelMutatorConfiguration()
Returns the currently active
ESModelMutatorConfiguration. |
long |
getSeed()
Returns the current seed for this data provider.
|
List<ESFuzzyTest> |
getTestsToRun() |
ESFuzzyUtil |
getUtil() |
void |
init()
Init the
ESEMFDataProvider. |
void |
setMutator(ESAbstractModelMutator modelMutator)
Sets the mutator to be used in order to generate and mutate data.
|
void |
setOptions(Map<String,Object> options)
Set the options for the
ESEMFDataProvider. |
void |
setTestClass(org.junit.runners.model.TestClass testClass) |
int |
size() |
public static final String PROP_EMFDATAPROVIDER
ESEMFDataProvider.public static final String PROP_CONFIGS_FILE
ESEMFDataProvider.public static final String MUTATOR_EXC_LOG
Set of RuntimeException.public static final String MUTATOR_EDITINGDOMAIN
EditingDomain for the ESAbstractModelMutator.public void init()
ESEMFDataProvider.init in interface ESFuzzyDataProvider<org.eclipse.emf.ecore.EObject>public org.eclipse.emf.ecore.EObject get(int count)
ESFuzzyDataProvider.get in interface ESFuzzyDataProvider<org.eclipse.emf.ecore.EObject>count - Which run is it?EObject.public void finish()
ESEMFDataProvider. Used for
saving the results.public int size()
size in interface ESFuzzyDataProvider<org.eclipse.emf.ecore.EObject>public void setTestClass(org.junit.runners.model.TestClass testClass)
setTestClass in interface ESFuzzyDataProvider<org.eclipse.emf.ecore.EObject>testClass - The TestClass of this run.public List<org.junit.runner.notification.RunListener> getListener()
getListener in interface ESFuzzyDataProvider<org.eclipse.emf.ecore.EObject>RunListener of this ESEMFDataProvider.public List<ESFuzzyTest> getTestsToRun()
getTestsToRun in interface ESFuzzyDataProvider<org.eclipse.emf.ecore.EObject>ESFuzzyTests to run or null if all tests should run.public int getCurrentSeedCount()
getCurrentSeedCount in interface ESFuzzyEMFDataProviderESFuzzyEMFDataProvider.getCurrentSeedCount()public long getSeed()
getSeed in interface ESFuzzyEMFDataProviderESFuzzyEMFDataProvider.getSeed()public Collection<org.eclipse.emf.ecore.EPackage> getEPackages()
EPackages that are
being considered to be generated/mutated.getEPackages in interface ESFuzzyEMFDataProviderEPackage of the model to generate/mutate.ESFuzzyEMFDataProvider.getEPackages()public ESFuzzyUtil getUtil()
getUtil in interface ESFuzzyDataProvider<org.eclipse.emf.ecore.EObject>ESMutateUtil for this ESEMFDataProvider.public ESTestConfig getConfig()
getConfig in interface ESFuzzyEMFDataProviderESFuzzyEMFDataProvider.getConfig()public void setOptions(Map<String,Object> options)
ESEMFDataProvider.setOptions in interface ESFuzzyDataProvider<org.eclipse.emf.ecore.EObject>options - the options.public ESModelMutatorConfiguration getModelMutatorConfiguration()
ESModelMutatorConfiguration.getModelMutatorConfiguration in interface ESFuzzyEMFDataProvidergetModelMutatorConfiguration in interface ESFuzzyDataProvider<org.eclipse.emf.ecore.EObject>ESModelMutatorConfigurationESFuzzyEMFDataProvider.getModelMutatorConfiguration()public void setMutator(ESAbstractModelMutator modelMutator)
setMutator in interface ESFuzzyDataProvider<org.eclipse.emf.ecore.EObject>modelMutator - the ESAbstractModelMutator to be usedESFuzzyDataProvider.setMutator(org.eclipse.emf.emfstore.modelmutator.ESAbstractModelMutator)Copyright © 2017. All rights reserved.