private Class<?> getExcludedCategory(Class<?> klass) { ExcludeCategory annotation = klass.getAnnotation(ExcludeCategory.class); return annotation == null ? null : annotation.value(); }
private static boolean isAnyExcluded(Class<?> klass) { ExcludeCategory annotation= klass.getAnnotation(ExcludeCategory.class); return annotation == null || annotation.matchAny(); }
@Categories.ExcludeCategory({DBTests.class, NonBuildTests.class}) @Suite.SuiteClasses({ org.alfresco.repo.site.SiteMembershipTest.class,
@Categories.ExcludeCategory({DBTests.class, NonBuildTests.class}) @Suite.SuiteClasses({
@Categories.ExcludeCategory({DBTests.class, NonBuildTests.class}) @Suite.SuiteClasses({
@Categories.ExcludeCategory({DBTests.class, NonBuildTests.class}) @Suite.SuiteClasses({ org.alfresco.repo.usage.RepoUsageComponentTest.class,
@ExcludeCategory(NonPrepushTest.class) @SuiteClasses( { AGMaterializerTests.class,
@Categories.ExcludeCategory(NonBuildTests.class) @Suite.SuiteClasses({
@Categories.ExcludeCategory({DBTests.class, NonBuildTests.class}) @Suite.SuiteClasses({
@Categories.ExcludeCategory({DBTests.class, NonBuildTests.class}) @Suite.SuiteClasses({ org.alfresco.repo.domain.node.NodeDAOTest.class,
@Categories.ExcludeCategory({DBTests.class, NonBuildTests.class}) @Suite.SuiteClasses({ org.alfresco.repo.action.evaluator.IsSubTypeEvaluatorTest.class,
@Categories.ExcludeCategory({DBTests.class, NonBuildTests.class}) @Suite.SuiteClasses({
@Categories.ExcludeCategory({DBTests.class, NonBuildTests.class}) @Suite.SuiteClasses({
/** * Category marker for tests known to be broken. * Marker should be removed when test is fixed. * <p> * Suite for 'ant test-broken'. * Known to fail. * When they are fixed, should be categorized as PrepushTest. */ @RunWith(Categories.class) @IncludeCategory(Broken.class) @ExcludeCategory(NotApplicableForAgraph.class) @SuiteClasses( {TutorialTests.class, QuickTests.class, AGConnPoolClosingTest.class, AGRepositoryConnectionTests.class}) public static class Broken implements NonPrepushTest { }
/** * Category marker for stress tests. * <p> * Suite for 'ant test-stress' */ @RunWith(Categories.class) @IncludeCategory(Stress.class) @ExcludeCategory(Prepush.class) @SuiteClasses( {QuickTests.class, TransactionStressTest.class, AGConnPoolClosingTest.class, AGConnPoolSessionTest.class }) public static class Stress implements NonPrepushTest { }
private static boolean isAnyExcluded(Class<?> klass) { ExcludeCategory annotation= klass.getAnnotation(ExcludeCategory.class); return annotation == null || annotation.matchAny(); }
private static boolean isAnyExcluded(Class<?> klass) { ExcludeCategory annotation= klass.getAnnotation(ExcludeCategory.class); return annotation == null || annotation.matchAny(); }
private static Set<Class<?>> getExcludedCategory(Class<?> klass) { ExcludeCategory annotation= klass.getAnnotation(ExcludeCategory.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)); }
private static Set<Class<?>> getExcludedCategory(Class<?> klass) { ExcludeCategory annotation= klass.getAnnotation(ExcludeCategory.class); return createSet(annotation == null ? null : annotation.value()); }