Search in sources :

Example 1 with HasAnnotation

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;
}
Also used : BrokenTest(dalvik.annotation.BrokenTest) HasAnnotation(android.test.suitebuilder.annotation.HasAnnotation) TestMethod(android.test.suitebuilder.TestMethod) Predicate(com.android.internal.util.Predicate) SideEffect(dalvik.annotation.SideEffect)

Aggregations

TestMethod (android.test.suitebuilder.TestMethod)1 HasAnnotation (android.test.suitebuilder.annotation.HasAnnotation)1 Predicate (com.android.internal.util.Predicate)1 BrokenTest (dalvik.annotation.BrokenTest)1 SideEffect (dalvik.annotation.SideEffect)1