use of android.test.suitebuilder.annotation.HasAnnotation in project android_frameworks_base by ParanoidAndroid.
the class InstrumentationCoreTestRunner method getBuilderRequirements.
@Override
List<Predicate<TestMethod>> getBuilderRequirements() {
List<Predicate<TestMethod>> builderRequirements = super.getBuilderRequirements();
Predicate<TestMethod> brokenTestPredicate = Predicates.not(new HasAnnotation(BrokenTest.class));
builderRequirements.add(brokenTestPredicate);
if (!singleTest) {
Predicate<TestMethod> sideEffectPredicate = Predicates.not(new HasAnnotation(SideEffect.class));
builderRequirements.add(sideEffectPredicate);
}
return builderRequirements;
}
Aggregations