package jetbrains.mps.testbench.junit.runners;

/*Generated by MPS */

import jetbrains.mps.annotations.GeneratedClass;
import org.junit.runners.ParentRunner;
import org.junit.runner.Runner;
import org.junit.runners.model.InitializationError;
import org.junit.runner.notification.RunNotifier;
import jetbrains.mps.RuntimeFlags;
import jetbrains.mps.TestMode;

@GeneratedClass(node = "r:eea68efb-2953-43f4-848f-9829ac5c7101(jetbrains.mps.testbench.junit.runners)/6944172844332338536", model = "r:eea68efb-2953-43f4-848f-9829ac5c7101(jetbrains.mps.testbench.junit.runners)")
public abstract class BaseMpsRunner extends ParentRunner<Runner> {
  public BaseMpsRunner(Class<?> aClass) throws InitializationError {
    super(aClass);
  }

  @Override
  public void run(RunNotifier notifier) {
    RuntimeFlags.setTestMode(TestMode.USUAL);
    super.run(notifier);
    RuntimeFlags.setTestMode(TestMode.NONE);
  }
}
