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

holmos.webtest.junitextentions.excute.ExcuteRunnable Maven / Gradle / Ivy

There is a newer version: 1.0.2u10
Show newest version
package holmos.webtest.junitextentions.excute;

import holmos.webtest.junitextentions.parameters.HolmosFrameWorkMethod;

import java.util.ArrayList;

import org.junit.runner.notification.RunNotifier;

/**
 * 窜行方法执行器
 * 
 * @author 吴银龙([email protected])
 * */
public class ExcuteRunnable implements Runnable{
	/**代执行的方法*/
	private MethodRunner methodRunner;
	private HolmosFrameWorkMethod method;
	public ExcuteRunnable(HolmosFrameWorkMethod method,Object target,ArrayListparameters,RunNotifier notifier){
		this.methodRunner=new MethodRunner(method, target, parameters,notifier);
		this.method=method;
	}

	@Override
	public void run() {
		methodRunner.runHolmosMethod();
		method.setExecuted();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy