public boolean isDefinedOnClassLevel() { return getAnnotationOnClassLevel() != null; }
public boolean isDefinedOnClassLevel() { return getAnnotationOnClassLevel() != null; }
public boolean isDefinedOnClassLevel() { return getAnnotationOnClassLevel() != null; }
public Collection<T> fetchAll() { final Set<T> all = new HashSet<T>(); all.addAll(annotatedMethods.values()); final T annotationOnClassLevel = getAnnotationOnClassLevel(); if (annotationOnClassLevel != null) { all.add(annotationOnClassLevel); } return all; }
public Collection<T> fetchAll() { final Set<T> all = new HashSet<T>(); all.addAll(annotatedMethods.values()); final T annotationOnClassLevel = getAnnotationOnClassLevel(); if (annotationOnClassLevel != null) { all.add(annotationOnClassLevel); } return all; }
/** * Fetches annotation for a given test class. If annotation is defined on method * level it's returned as a result. Otherwise class level annotation is returned if present. * * @return T annotation or null if not found. */ public T fetchUsingFirst(Method testMethod) { T usedAnnotation = getAnnotationOnClassLevel(); if (isDefinedOn(testMethod)) { usedAnnotation = fetchFrom(testMethod); } return usedAnnotation; }
/** * * Fetches annotation for a given test class. If annotation is defined on method * level it's returned as a result. Otherwise class level annotation is returned if present. * * @return T annotation or null if not found. * */ public T fetchUsingFirst(Method testMethod) { T usedAnnotation = getAnnotationOnClassLevel(); if (isDefinedOn(testMethod)) { usedAnnotation = fetchFrom(testMethod); } return usedAnnotation; }
/** * * Fetches annotation for a given test class. If annotation is defined on method * level it's returned as a result. Otherwise class level annotation is returned if present. * * @return T annotation or null if not found. * */ public T fetchUsingFirst(Method testMethod) { T usedAnnotation = getAnnotationOnClassLevel(); if (isDefinedOn(testMethod)) { usedAnnotation = fetchFrom(testMethod); } return usedAnnotation; }