@Override protected void runChild(final FrameworkMethod method, final RunNotifier notifier) { synchronized (permitToGo) { if (concurrentTestMethods.contains(method)) { if (invocations.compareAndSet(1, 0)) { runThemAll(concurrentTestMethods, notifier); } } else { super.runChild(method, notifier); } } }
@Override public void runChild(FrameworkMethod method, RunNotifier notifier) { ExcludeOnTravis condition = method.getAnnotation(ExcludeOnTravis.class); if (condition == null) { super.runChild(method, notifier); } else if (System.getenv("TRAVIS") != null) { notifier.fireTestIgnored(describeChild(method)); } else { super.runChild(method, notifier); } } }
@Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { TestUtil.setTestName(method.getName()); try { super.runChild(method, notifier); } finally { TestUtil.setTestName(null); } } }
@Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { TestUtil.setTestName(method.getName()); try { super.runChild(method, notifier); } finally { TestUtil.setTestName(null); } } }
@Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { TestUtil.setTestName(method.getName()); try { super.runChild(method, notifier); } finally { TestUtil.setTestName(null); } } }
@Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { TestUtil.setTestName(method.getName()); try { super.runChild(method, notifier); } finally { TestUtil.setTestName(null); } } }
@Override protected void runChild(final FrameworkMethod method, RunNotifier notifier) { Description description = describeChild(method); if (method.getAnnotation(Repeat.class) != null && method.getAnnotation(Ignore.class) == null) { runRepeatedly(methodBlock(method), description, notifier); } super.runChild(method, notifier); }
@Override public void runChild(FrameworkMethod method, RunNotifier notifier) { MinVersion methodCondition = method.getAnnotation(MinVersion.class); MinVersion classCondition = this.getTestClass().getJavaClass().getAnnotation(MinVersion.class); String versionStr = VersionInfo.getVersion(); int version = VersionUtil.encodeVersion(versionStr); if ( (methodCondition == null || version >= VersionUtil.encodeVersion(methodCondition.value())) && (classCondition == null || version >= VersionUtil.encodeVersion(classCondition.value()))) { super.runChild(method, notifier); } else { notifier.fireTestIgnored(describeChild(method)); } }
@Override protected void runChild(final FrameworkMethod method, final RunNotifier notifier) { for (int i = 0; i < repeatCount(method); i++) super.runChild(method, notifier); }
@Override protected void runChild(final FrameworkMethod method, final RunNotifier notifier) { for (int i = 0; i < repeatCount(method); i++) super.runChild(method, notifier); }
/** * @see org.junit.runners.BlockJUnit4ClassRunner#runChild(org.junit.runners.model.FrameworkMethod, org.junit.runner.notification.RunNotifier) */ @Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { publishApi(method); super.runChild(method, notifier); retireApi(); }
@Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { boolean transactional = isTransactional(method); if (transactional) { runInTransaction(method, notifier); } else { super.runChild(method, notifier); } }
/** * @see org.junit.runners.BlockJUnit4ClassRunner#runChild(org.junit.runners.model.FrameworkMethod, org.junit.runner.notification.RunNotifier) */ @Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { publishApi(method); super.runChild(method, notifier); retireApi(); }
@Override public void runChild(final FrameworkMethod method, RunNotifier notifier) { startWeld(); try { super.runChild(method, notifier); } finally { stopWeld(); } }
@Override public void runChild(final FrameworkMethod method, RunNotifier notifier) { startWeld(); try { super.runChild(method, notifier); } finally { stopWeld(); } }
@Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { // execute test method log.info("LOG00110: Running test method {}#{}", getTestClass().getName(), method.getName()); super.runChild(method, notifier); }
@Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { storeTestMethodName(method.getName()); super.runChild(method, notifier); removeTestMethodName(); }
@Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { String deploymentId = null; if (method.getAnnotation(Ignore.class) == null && method.getAnnotation(AppDeployment.class) != null) { deploymentId = deployAppDefinition(method); } super.runChild(method, notifier); if (deploymentId != null) { deleteDeployment(deploymentId); } assertDatabaseEmpty(method); }
@Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { if (handleIgnored(method, notifier)) return; TestMethod testMethod = parameterisedRunner.testMethodFor(method); if (parameterisedRunner.shouldRun(testMethod)) { parameterisedRunner.runParameterisedTest(testMethod, methodBlock(method), notifier); } else { verifyMethodCanBeRunByStandardRunner(testMethod); super.runChild(method, notifier); } }
@Override protected void runChild(FrameworkMethod method, RunNotifier notifier) { boolean isLongRunning = isLongRunning(method); if(isLongRunning && !includeLongRunning){ Description description = describeChild(method); notifier.fireTestIgnored(description); }else{ super.runChild(method, notifier); } }