Class EolAcceptanceTestUtil

    • Field Detail

      • THREADS

        public static final int[] THREADS
    • Constructor Detail

      • EolAcceptanceTestUtil

        protected EolAcceptanceTestUtil()
    • 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
      • 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)