Class EolAcceptanceTestUtil
- java.lang.Object
-
- org.eclipse.epsilon.test.util.EpsilonTestUtil
-
- org.eclipse.epsilon.eol.engine.test.acceptance.util.EolAcceptanceTestUtil
-
- Direct Known Subclasses:
EclAcceptanceTestUtil
,EgxAcceptanceTestUtil
,EtlAcceptanceTestUtil
,EvlAcceptanceTestUtil
public class EolAcceptanceTestUtil extends EpsilonTestUtil
- Since:
- 1.6
- Author:
- Sina Madani
-
-
Field Summary
Fields Modifier and Type Field Description static int[]
THREADS
-
Constructor Summary
Constructors Modifier Constructor Description protected
EolAcceptanceTestUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.String[]>
addAllInputs(java.lang.String[] scripts, java.lang.String[] models, java.lang.String metamodel, java.lang.String scriptExt, java.lang.String scriptRoot, java.lang.String modelRoot, java.lang.String metamodelRoot)
static StringProperties
createModelProperties(java.nio.file.Path modelFile, java.nio.file.Path metamodelFile)
static EolRuntimeException
executeReturnException(java.lang.String code, IEolModule module)
static int
getScenarioID(java.lang.String[] inputs)
static <M extends IEolModule,C extends EolRunConfiguration>
java.util.Collection<C>getScenarios(java.lang.Class<C> clazz, java.util.List<java.lang.String[]> testInputs, java.util.Collection<java.util.function.Supplier<? extends M>> moduleGetters, java.util.function.Function<java.lang.String[],java.lang.Integer> idCalculator, java.lang.Class<?> inputResourceOwner)
static <M extends IEolModule>
java.util.Collection<java.util.function.Supplier<? extends M>>parallelModules(int[] parallelisms, java.util.function.Supplier<M> standardModuleGetter, java.util.function.Function<java.lang.Integer,M>... parallelModuleConstructors)
static void
testExceptionEquivalence(EolRuntimeException expected, EolRuntimeException actual)
static void
testExceptionEquivalenceBetweenModules(java.lang.String code)
static <M extends IEolModule>
java.util.Collection<? extends M>unwrapModules(java.util.Collection<java.util.function.Supplier<? extends M>> moduleGetters)
-
Methods inherited from class org.eclipse.epsilon.test.util.EpsilonTestUtil
getTestBaseDir, printIfDifferent, testCollectionsHaveSameElements
-
-
-
-
Method Detail
-
testExceptionEquivalenceBetweenModules
public static void testExceptionEquivalenceBetweenModules(java.lang.String code) throws java.lang.Exception
- Throws:
java.lang.Exception
-
executeReturnException
public static EolRuntimeException executeReturnException(java.lang.String code, IEolModule module) throws java.lang.Exception
- Throws:
java.lang.Exception
-
testExceptionEquivalence
public static void testExceptionEquivalence(EolRuntimeException expected, EolRuntimeException actual)
-
addAllInputs
public static java.util.List<java.lang.String[]> addAllInputs(java.lang.String[] scripts, java.lang.String[] models, java.lang.String metamodel, java.lang.String scriptExt, java.lang.String scriptRoot, java.lang.String modelRoot, java.lang.String metamodelRoot)
-
getScenarioID
public static int getScenarioID(java.lang.String[] inputs)
-
createModelProperties
public static StringProperties createModelProperties(java.nio.file.Path modelFile, java.nio.file.Path metamodelFile)
-
getScenarios
public static <M extends IEolModule,C extends EolRunConfiguration> java.util.Collection<C> getScenarios(java.lang.Class<C> clazz, java.util.List<java.lang.String[]> testInputs, java.util.Collection<java.util.function.Supplier<? extends M>> moduleGetters, java.util.function.Function<java.lang.String[],java.lang.Integer> idCalculator, java.lang.Class<?> inputResourceOwner) throws java.lang.Exception
- Throws:
java.lang.Exception
-
unwrapModules
public static <M extends IEolModule> java.util.Collection<? extends M> unwrapModules(java.util.Collection<java.util.function.Supplier<? extends M>> moduleGetters)
-
parallelModules
@SafeVarargs public static <M extends IEolModule> java.util.Collection<java.util.function.Supplier<? extends M>> parallelModules(int[] parallelisms, java.util.function.Supplier<M> standardModuleGetter, java.util.function.Function<java.lang.Integer,M>... parallelModuleConstructors)
-
-