/** * @return the annotations that should be attached to this runner's * description. */ protected Annotation[] getRunnerAnnotations() { return fTestClass.getAnnotations(); }
/** * @return the annotations that should be attached to this runner's * description. */ protected Annotation[] getRunnerAnnotations() { return testClass.getAnnotations(); }
@Override public Annotation[] getRunnerAnnotations() { Annotation[] allAnnotations = getTestClass().getAnnotations(); List<Annotation> annotationsWithoutRunWith = new ArrayList<>(); for (Annotation annotation : allAnnotations) { if (!annotation.annotationType().equals(RunWith.class)) { annotationsWithoutRunWith.add(annotation); } } return annotationsWithoutRunWith.toArray(new Annotation[0]); } }
/** * @return the annotations that should be attached to this runner's * description. */ protected Annotation[] getRunnerAnnotations() { return fTestClass.getAnnotations(); }
private boolean isRepeatRunnerEnabled() { Annotation[] annotations = getTestClass().getAnnotations(); boolean repeatAnnotation = false; for (Annotation each : annotations) { if (each.annotationType().equals(Repeat.class)) { repeatAnnotation = true; } } return repeatAnnotation; }
protected Statement withRepeat(Statement statement) { Annotation[] annotations = getTestClass().getAnnotations(); int repetition = 1; for (Annotation each : annotations) { if (each.annotationType().equals(Repeat.class)) { repetition = ((Repeat) each).value(); } } return new RepetitionStatement(statement, repetition, threadContextUpdater); }
/** * @return the annotations that should be attached to this runner's * description. */ protected Annotation[] getRunnerAnnotations() { return testClass.getAnnotations(); }
/** * @return the annotations that should be attached to this runner's * description. */ protected Annotation[] getRunnerAnnotations() { return testClass.getAnnotations(); }
/** * @return the annotations that should be attached to this runner's * description. */ protected Annotation[] getRunnerAnnotations() { return fTestClass.getAnnotations(); }
/** * @return the annotations that should be attached to this runner's * description. */ protected Annotation[] getRunnerAnnotations() { return fTestClass.getAnnotations(); }
/** * ParrentRunner.getRunnerAnnotations() was introduced in junit 4.10 * for earlier versions this method must be manually defined * * @since 1.0.1 */ protected Annotation[] getRunnerAnnotations() { return getTestClass().getAnnotations(); }
/** * ParrentRunner.getRunnerAnnotations() was introduced in junit 4.10 * for earlier versions this method must be manually defined * * @since 1.0.1 */ protected Annotation[] getRunnerAnnotations() { return getTestClass().getAnnotations(); }
/** * @return the annotations that should be attached to this runner's * description. */ protected Annotation[] getRunnerAnnotations() { return getOriginalTestClass().getAnnotations(); }
@Override public Description getDescription() { if (children.size() == 1) return children.get(0).getDescription(); Annotation[] annotations = getTestClass().getAnnotations(); Description description = Description.createSuiteDescription(getName(), annotations); for (Runner child : children) description.addChild(describeChild(child)); return description; } }
@Override public Description getDescription() { if (description == null) { description = Description.createSuiteDescription(getName(), getTestClass().getAnnotations()); List<FrameworkMethod> resultMethods = getListOfMethods(); for (FrameworkMethod method : resultMethods) description.addChild(describeMethod(method)); } return description; }
@Override public Description getDescription() { if (description == null) { description = Description.createSuiteDescription(getName(), getTestClass().getAnnotations()); List<FrameworkMethod> resultMethods = parameterisedRunner.returnListOfMethods(); for (FrameworkMethod method : resultMethods) description.addChild(describeMethod(method)); } return description; }
@Override public Description getDescription() { if (description == null) { description = Description.createSuiteDescription(getName(), getTestClass().getAnnotations()); List<FrameworkMethod> resultMethods = parameterisedRunner.returnListOfMethods(); for (FrameworkMethod method : resultMethods) description.addChild(describeMethod(method)); } return description; }
@Override public Description getDescription() { Description description = Description.createSuiteDescription(getName(), getTestClass().getAnnotations()); for (FrameworkMethod child : getFilteredChildren()) { description.addChild(describeChild(child)); } return description; }
@Override public Description getDescription() { if (description == null) { description = Description.createSuiteDescription(getName(), getTestClass().getAnnotations()); List<FrameworkMethod> resultMethods = parameterisedRunner.returnListOfMethods(); for (FrameworkMethod method : resultMethods) description.addChild(describeMethod(method)); } return description; }
@Override public Description getDescription() { if (description == null) { description = Description.createSuiteDescription(getName(), getTestClass().getAnnotations()); List<FrameworkMethod> resultMethods = parameterisedRunner.returnListOfMethods(); for (FrameworkMethod method : resultMethods) description.addChild(describeMethod(method)); } return description; }