Class EvlAcceptanceTestUtil
- java.lang.Object
-
- org.eclipse.epsilon.test.util.EpsilonTestUtil
-
- org.eclipse.epsilon.eol.engine.test.acceptance.util.EolAcceptanceTestUtil
-
- org.eclipse.epsilon.evl.engine.test.acceptance.EvlAcceptanceTestUtil
-
public class EvlAcceptanceTestUtil extends EolAcceptanceTestUtil
- Since:
- 1.6
- Author:
- Sina Madani
-
-
Field Summary
Fields Modifier and Type Field Description static List<String[]>
allInputs
Nx3 array where N is number of test inputs;
0 is the script path, 1 is the model path, 2 is the metamodel path.static List<String[]>
cookbookInputs
Nx3 array where N is number of test inputs;
0 is the script path, 1 is the model path, 2 is the metamodel path.static String
cookbookMetamodel
static String[]
cookbookModels
static String[]
cookbookScripts
static List<String[]>
imdbInputs
Nx3 array where N is number of test inputs;
0 is the script path, 1 is the model path, 2 is the metamodel path.static String
imdbMetamodel
static String[]
imdbModels
static String[]
imdbScripts
static List<String[]>
javaInputs
Nx3 array where N is number of test inputs;
0 is the script path, 1 is the model path, 2 is the metamodel path.static String
javaMetamodel
static String[]
javaModels
static String[]
javaScripts
static String
metamodelsRoot
static String
modelsRoot
static String
scriptsRoot
static String
testsBase
static List<String[]>
thriftInputs
Nx3 array where N is number of test inputs;
0 is the script path, 1 is the model path, 2 is the metamodel path.static String
thriftMetamodel
static String[]
thriftModels
static String[]
thriftScripts
-
Fields inherited from class org.eclipse.epsilon.eol.engine.test.acceptance.util.EolAcceptanceTestUtil
THREADS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EvlAcceptanceTestUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String[]>
addAllInputs(String[] scripts, String[] models, String metamodel)
static Collection<EvlRunConfiguration>
getScenarios(Supplier<? extends IEvlModule>... moduleGetters)
static Collection<EvlRunConfiguration>
getScenarios(List<String[]> testInputs, boolean includeTest, Collection<Supplier<? extends IEvlModule>> moduleGetters)
static Collection<EvlRunConfiguration>
getScenarios(List<String[]> testInputs, boolean includeTest, Collection<Supplier<? extends IEvlModule>> moduleGetters, Function<String[],Integer> idCalculator)
A list of pre-configured Runnables which will call the execute() method on the provided module.static Collection<Supplier<? extends IEvlModule>>
modules()
static Collection<Supplier<? extends IEvlModule>>
modules(boolean includeStandard)
-
Methods inherited from class org.eclipse.epsilon.eol.engine.test.acceptance.util.EolAcceptanceTestUtil
addAllInputs, createModelProperties, executeReturnException, getScenarioID, getScenarios, parallelModules, testExceptionEquivalence, testExceptionEquivalenceBetweenModules, unwrapModules
-
Methods inherited from class org.eclipse.epsilon.test.util.EpsilonTestUtil
getTestBaseDir, printIfDifferent, testCollectionsHaveSameElements
-
-
-
-
Field Detail
-
testsBase
public static final String testsBase
-
metamodelsRoot
public static final String metamodelsRoot
-
scriptsRoot
public static final String scriptsRoot
-
modelsRoot
public static final String modelsRoot
-
javaMetamodel
public static final String javaMetamodel
- See Also:
- Constant Field Values
-
javaModels
public static final String[] javaModels
-
javaScripts
public static final String[] javaScripts
-
thriftMetamodel
public static final String thriftMetamodel
- See Also:
- Constant Field Values
-
thriftScripts
public static final String[] thriftScripts
-
thriftModels
public static final String[] thriftModels
-
cookbookMetamodel
public static final String cookbookMetamodel
- See Also:
- Constant Field Values
-
cookbookScripts
public static final String[] cookbookScripts
-
cookbookModels
public static final String[] cookbookModels
-
imdbMetamodel
public static final String imdbMetamodel
- See Also:
- Constant Field Values
-
imdbScripts
public static final String[] imdbScripts
-
imdbModels
public static final String[] imdbModels
-
allInputs
public static final List<String[]> allInputs
Nx3 array where N is number of test inputs;
0 is the script path, 1 is the model path, 2 is the metamodel path.
-
javaInputs
public static final List<String[]> javaInputs
Nx3 array where N is number of test inputs;
0 is the script path, 1 is the model path, 2 is the metamodel path.
-
thriftInputs
public static final List<String[]> thriftInputs
Nx3 array where N is number of test inputs;
0 is the script path, 1 is the model path, 2 is the metamodel path.
-
cookbookInputs
public static final List<String[]> cookbookInputs
Nx3 array where N is number of test inputs;
0 is the script path, 1 is the model path, 2 is the metamodel path.
-
-
Method Detail
-
getScenarios
public static Collection<EvlRunConfiguration> getScenarios(List<String[]> testInputs, boolean includeTest, Collection<Supplier<? extends IEvlModule>> moduleGetters, Function<String[],Integer> idCalculator) throws Exception
A list of pre-configured Runnables which will call the execute() method on the provided module.- Parameters:
modules
- A collection of IEvlModules to use in combination with each set of test data.- Throws:
Exception
-
modules
public static Collection<Supplier<? extends IEvlModule>> modules(boolean includeStandard)
-
addAllInputs
public static List<String[]> addAllInputs(String[] scripts, String[] models, String metamodel)
-
getScenarios
@SafeVarargs public static Collection<EvlRunConfiguration> getScenarios(Supplier<? extends IEvlModule>... moduleGetters) throws Exception
- Throws:
Exception
-
getScenarios
public static Collection<EvlRunConfiguration> getScenarios(List<String[]> testInputs, boolean includeTest, Collection<Supplier<? extends IEvlModule>> moduleGetters) throws Exception
- Throws:
Exception
-
modules
public static Collection<Supplier<? extends IEvlModule>> modules()
-
-