@Override protected void runChild(Runner runner, RunNotifier notifier) { // This is ugly but, for now, ORM class loading is inconsistent. // It sometimes use ClassLoaderService which takes into account AvailableSettings.CLASSLOADERS, and sometimes // ReflectHelper#classForName() which uses the TCCL. // See https://hibernate.atlassian.net/browse/HHH-13136 for more information. ClassLoader originalClassLoader = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader( ( (ParentRunner<?>) runner ).getTestClass().getJavaClass().getClassLoader() ); super.runChild( runner, notifier ); } finally { Thread.currentThread().setContextClassLoader( originalClassLoader ); } }
/** {@inheritDoc} */ @Override protected void runChild(Runner runner, RunNotifier ntf) { System.setProperty(IGNITE_DISCOVERY_HISTORY_SIZE, "100"); CacheContinuousQueryVariationsTest.singleNode = false; super.runChild(runner, ntf); }
/** */ @Override protected void runChild(Runner runner, RunNotifier ntf) { cntr.getAndIncrement(); super.runChild(runner, ntf); } }
/** */ @Override protected void runChild(Runner runner, RunNotifier ntf) { cntr.getAndIncrement(); super.runChild(runner, ntf); } }
/** {@inheritDoc} */ @Override protected void runChild(Runner runner, RunNotifier ntf) { System.setProperty(IGNITE_DISCOVERY_HISTORY_SIZE, "100"); CacheContinuousQueryVariationsTest.singleNode = true; super.runChild(runner, ntf); } }
/** */ @Override protected void runChild(Runner runner, RunNotifier ntf) { cntr.getAndIncrement(); super.runChild(runner, ntf); } }
@Override protected void runChild(Runner runner, RunNotifier notifier) { notifier.addListener(new OurListener()); super.runChild(runner, notifier); }
@Override protected void runChild(final Runner runner, final RunNotifier notifier) { if (beforeTestExecution((Class<? extends AbstractGremlinTest>) runner.getDescription().getTestClass())) super.runChild(runner, notifier); afterTestExecution((Class<? extends AbstractGremlinTest>) runner.getDescription().getTestClass()); }
@Override protected void runChild(Runner runner, RunNotifier notifier) { // this is kinda a hack but the intent is to ensure that each individual // test is able to tear down the environment *after* the // suite.tearDown() method is called, in general the child runner // methods are always called before the parent runner if (runner instanceof GeoWaveITRunner) { itRunner = (GeoWaveITRunner) runner; } super.runChild(runner, notifier); }
@Override protected void runChild(Runner runner, final RunNotifier notifier) { super.runChild(runner, notifier); } }
@Override protected void runChild(Runner runner, RunNotifier notifier) { super.runChild(runner, notifier); }
@Override protected void runChild(Runner runner, RunNotifier notifier) { if (liveStreamListener != null) { notifier.addListener(liveStreamListener.getSubListener()); } super.runChild(runner, notifier); } }
@Override protected void runChild(Runner runner, RunNotifier notifier) { if (liveStreamListener != null) { notifier.addListener(liveStreamListener.getSubListener()); } super.runChild(runner, notifier); } }
@Override protected void runChild(final Runner runner, final RunNotifier notifier) { if (beforeTestExecution((Class<? extends AbstractGremlinTest>) runner.getDescription().getTestClass())) super.runChild(runner, notifier); afterTestExecution((Class<? extends AbstractGremlinTest>) runner.getDescription().getTestClass()); }
protected void runChild(Runner runner, RunNotifier notifier) { try { final Class<?> suiteClass = getTestClass().getJavaClass(); Method initFactoryMethod = suiteClass.getMethod("init", (Class<?>[]) null); final TestLifecycle lifecycle = (TestLifecycle) initFactoryMethod.invoke(null, (Object[]) null); super.runChild(new BlockJUnit4ClassRunner(runner.getDescription().getTestClass()) { @Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { lifecycle.onInit(); super.runChild(method, notifier); lifecycle.onDestroy(); } @Override protected Object createTest() throws Exception { Object createTest = super.createTest(); try { Method identityManagerSetter = createTest.getClass().getMethod("setIdentityManager", new Class[] { IdentityManager.class }); identityManagerSetter.invoke(createTest, lifecycle.createIdentityManager()); } catch (Exception e) { e.printStackTrace(); } return createTest; } }, notifier); } catch (Exception e) { e.printStackTrace(); } }