PageRenderTime 20ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/simulatest-environment/src/main/java/org/simulatest/environment/junit/SimulatestJUnit4ClassRunner.java

http://github.com/gabrielsuch/simulatest
Java | 23 lines | 17 code | 6 blank | 0 comment | 0 complexity | 467699945880951a715ee326847c987c MD5 | raw file
 1package org.simulatest.environment.junit;
 2
 3import org.junit.runner.notification.RunNotifier;
 4import org.junit.runners.BlockJUnit4ClassRunner;
 5import org.junit.runners.model.FrameworkMethod;
 6import org.junit.runners.model.InitializationError;
 7
 8public class SimulatestJUnit4ClassRunner extends BlockJUnit4ClassRunner {
 9
10	private final AbstractEnvironmentJUnitRunner runner;
11	
12	public SimulatestJUnit4ClassRunner(AbstractEnvironmentJUnitRunner runner, Class<?> clazz) throws InitializationError {
13		super(clazz);
14		this.runner = runner;
15	}
16	
17	@Override
18	protected void runChild(FrameworkMethod method, RunNotifier notifier) {
19		super.runChild(method, notifier);
20		runner.getEnvironmentRunner().insistenceLayer().resetCurrentLevel();
21	}
22
23}