Searched refs:TestMethod (Results 1 – 11 of 11) sorted by relevance
48 private final Set<Predicate<TestMethod>> predicates = new HashSet<Predicate<TestMethod>>();124 public TestSuiteBuilder addRequirements(List<Predicate<TestMethod>> predicates) { in addRequirements()183 for (TestMethod test : testGrouping.getTests()) { in build()190 if (satisfiesAllPredicates(new TestMethod(testCase))) { in build()221 public final TestSuiteBuilder addRequirements(Predicate<TestMethod>... predicates) { in addRequirements()222 ArrayList<Predicate<TestMethod>> list = new ArrayList<Predicate<TestMethod>>(); in addRequirements()248 private boolean satisfiesAllPredicates(TestMethod test) { in satisfiesAllPredicates()249 for (Predicate<TestMethod> predicate : predicates) { in satisfiesAllPredicates()257 private void addTest(TestMethod testMethod) throws Exception { in addTest()
30 static final Predicate<TestMethod> REJECT_INSTRUMENTATION =33 static final Predicate<TestMethod> SELECT_SMOKE = hasAnnotation(Smoke.class);35 static final Predicate<TestMethod> REJECT_SUPPRESSED = not(hasAnnotation(Suppress.class));41 public static Predicate<TestMethod> hasAnnotation(Class<? extends Annotation> annotationClass) { in hasAnnotation()45 private static class HasAnnotation implements Predicate<TestMethod> {54 public boolean apply(TestMethod testMethod) { in apply()
34 public class TestMethod { class40 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { in TestMethod() method in TestMethod44 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { in TestMethod() method in TestMethod50 public TestMethod(TestCase testCase) { in TestMethod() method in TestMethod123 TestMethod that = (TestMethod) o; in equals()
21 class AssignableFrom implements Predicate<TestMethod> {29 public boolean apply(TestMethod testMethod) { in apply()
68 public List<TestMethod> getTests() { in getTests()69 List<TestMethod> testMethods = new ArrayList<TestMethod>(); in getTests()72 testMethods.add(new TestMethod(testMethod, testCase)); in getTests()
28 import android.test.suitebuilder.TestMethod;198 private static final Predicate<TestMethod> SELECT_SMALL = hasAnnotation(SmallTest.class);202 private static final Predicate<TestMethod> SELECT_LARGE = hasAnnotation(LargeTest.class);322 Predicate<TestMethod> testSizePredicate = null; in onCreate()323 Predicate<TestMethod> testAnnotationPredicate = null; in onCreate()324 Predicate<TestMethod> testNotAnnotationPredicate = null; in onCreate()420 List<Predicate<TestMethod>> getBuilderRequirements() { in getBuilderRequirements()421 return new ArrayList<Predicate<TestMethod>>(); in getBuilderRequirements()467 private Predicate<TestMethod> getSizePredicateFromArg(String sizeArg) { in getSizePredicateFromArg()486 private Predicate<TestMethod> getAnnotationPredicate(String annotationClassName) { in getAnnotationPredicate()[all …]
52 private TestMethod testMethodFor(Class<? extends TestCase> aClass) in testMethodFor()55 return new TestMethod(method, aClass); in testMethodFor()
47 TestMethod testMethod = new TestMethod(method, aClass); in hasExampleAnnotation()
172 private Predicate<TestMethod> testsWhoseNameContains(final String string) { in testsWhoseNameContains()173 return new Predicate<TestMethod>() { in testsWhoseNameContains()174 public boolean apply(TestMethod testMethod) { in testsWhoseNameContains()
42 List<TestMethod> tests = mGrouping.getTests(); in testGetTests_noPublicConstructor()
269 @Deprecated public class TestMethod {270 …ctor @Deprecated public TestMethod(java.lang.reflect.Method, Class<? extends junit.framework.TestC…271 ctor @Deprecated public TestMethod(String, Class<? extends junit.framework.TestCase>);272 ctor @Deprecated public TestMethod(junit.framework.TestCase);