private Class<?> getIncludedCategory(Class<?> klass) { IncludeCategory annotation = klass.getAnnotation(IncludeCategory.class); return annotation == null ? null : annotation.value(); }
private static Set<Class<?>> getIncludedCategory(Class<?> klass) { IncludeCategory annotation= klass.getAnnotation(IncludeCategory.class); return createSet(annotation == null ? null : annotation.value()); }
private Class<?> getIncludedCategory(Class<?> klass) { IncludeCategory annotation = klass.getAnnotation(IncludeCategory.class); return annotation == null ? null : annotation.value(); }
private static Set<Class<?>> getIncludedCategory(Class<?> klass) { IncludeCategory annotation= klass.getAnnotation(IncludeCategory.class); return createSet(annotation == null ? null : annotation.value()); }
static CategoriesFilter forTestSuite(Class<?> testSuiteClass) { List<Class<?>> includedCategories = new ArrayList<>(); List<Class<?>> excludedCategories = new ArrayList<>(); IncludeCategory includeCategoryAnnotation= testSuiteClass.getAnnotation(IncludeCategory.class); if (includeCategoryAnnotation != null) { includedCategories.addAll(Arrays.asList(includeCategoryAnnotation.value())); } IncludeCategories includeCategoriesAnnotation= testSuiteClass.getAnnotation(IncludeCategories.class); if (includeCategoriesAnnotation != null) { includedCategories.addAll(Arrays.asList(includeCategoriesAnnotation.value())); } ExcludeCategory excludeCategoryAnnotation= testSuiteClass.getAnnotation(ExcludeCategory.class); if (excludeCategoryAnnotation != null) { excludedCategories.addAll(Arrays.asList(excludeCategoryAnnotation.value())); } ExcludeCategories excludeCategoriesAnnotation= testSuiteClass.getAnnotation(ExcludeCategories.class); if (excludeCategoriesAnnotation != null) { excludedCategories.addAll(Arrays.asList(excludeCategoriesAnnotation.value())); } return (includedCategories.isEmpty() && excludedCategories.isEmpty() ? null : new CategoriesFilter(includedCategories, excludedCategories)); }
static CategoriesFilter forTestSuite(Class<?> testSuiteClass) { List<Class<?>> includedCategories = new ArrayList<>(); List<Class<?>> excludedCategories = new ArrayList<>(); IncludeCategory includeCategoryAnnotation= testSuiteClass.getAnnotation(IncludeCategory.class); if (includeCategoryAnnotation != null) { includedCategories.addAll(Arrays.asList(includeCategoryAnnotation.value())); } IncludeCategories includeCategoriesAnnotation= testSuiteClass.getAnnotation(IncludeCategories.class); if (includeCategoriesAnnotation != null) { includedCategories.addAll(Arrays.asList(includeCategoriesAnnotation.value())); } ExcludeCategory excludeCategoryAnnotation= testSuiteClass.getAnnotation(ExcludeCategory.class); if (excludeCategoryAnnotation != null) { excludedCategories.addAll(Arrays.asList(excludeCategoryAnnotation.value())); } ExcludeCategories excludeCategoriesAnnotation= testSuiteClass.getAnnotation(ExcludeCategories.class); if (excludeCategoriesAnnotation != null) { excludedCategories.addAll(Arrays.asList(excludeCategoriesAnnotation.value())); } return (includedCategories.isEmpty() && excludedCategories.isEmpty() ? null : new CategoriesFilter(includedCategories, excludedCategories)); }
private Class<?> getIncludedCategory(Class<?> klass) { IncludeCategory annotation = klass.getAnnotation(IncludeCategory.class); return annotation == null ? null : annotation.value(); }
private static Set<Class<?>> getIncludedCategory(Class<?> klass) { IncludeCategory annotation= klass.getAnnotation(IncludeCategory.class); return createSet(annotation == null ? null : annotation.value()); }
private Class<?> getIncludedCategory(Class<?> klass) { IncludeCategory annotation = klass.getAnnotation(IncludeCategory.class); return annotation == null ? null : annotation.value(); }