All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.behaviortest.api.engine.ExecutionTest Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package br.com.behaviortest.api.engine;

import java.util.Map;
import java.util.Map.Entry;

import br.com.behaviortest.api.common.LogExecution;
import br.com.behaviortest.api.engine.inicializer.ExecutionInicializer;
import br.com.behaviortest.model.design.Script;

/**
 * @author 		Felipe Rudolfe
 * @since  		9 de jan de 2020
 */
public class ExecutionTest {

	private ExecutionTest() {}

	public static void start(Map> mapTest) {

		LogExecution.runScripts();

		for (Entry> entry : mapTest.entrySet()) {

			// TODO melhorar, se possível com thread, possibilitando execução em paralelo
			Class clazz = entry.getValue();
			ExecutionInicializer task = new ExecutionInicializer(clazz);
			task.run();
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy