Home
last modified time | relevance | path

Searched refs:TestMethod (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestPredicates.java34 public static final Predicate<TestMethod> SELECT_INSTRUMENTATION =
36 public static final Predicate<TestMethod> REJECT_INSTRUMENTATION =
39 public static final Predicate<TestMethod> SELECT_SMOKE = new HasAnnotation(Smoke.class);
40 public static final Predicate<TestMethod> SELECT_SMALL = new HasAnnotation(SmallTest.class);
41 public static final Predicate<TestMethod> SELECT_MEDIUM = new HasAnnotation(MediumTest.class);
42 public static final Predicate<TestMethod> SELECT_LARGE = new HasAnnotation(LargeTest.class);
43 public static final Predicate<TestMethod> REJECT_SUPPRESSED =
DTestSuiteBuilder.java48 private final Set<Predicate<TestMethod>> predicates = new HashSet<Predicate<TestMethod>>();
123 public TestSuiteBuilder addRequirements(List<Predicate<TestMethod>> predicates) { in addRequirements()
182 for (TestMethod test : testGrouping.getTests()) { in build()
189 if (satisfiesAllPredicates(new TestMethod(testCase))) { in build()
219 public final TestSuiteBuilder addRequirements(Predicate<TestMethod>... predicates) { in addRequirements()
220 ArrayList<Predicate<TestMethod>> list = new ArrayList<Predicate<TestMethod>>(); in addRequirements()
251 private boolean satisfiesAllPredicates(TestMethod test) { in satisfiesAllPredicates()
252 for (Predicate<TestMethod> predicate : predicates) { in satisfiesAllPredicates()
260 private void addTest(TestMethod testMethod) throws Exception { in addTest()
DTestMethod.java30 public class TestMethod { class
36 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { in TestMethod() method in TestMethod
40 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { in TestMethod() method in TestMethod
46 public TestMethod(TestCase testCase) { in TestMethod() method in TestMethod
119 TestMethod that = (TestMethod) o; in equals()
DAssignableFrom.java21 class AssignableFrom implements Predicate<TestMethod> {
29 public boolean apply(TestMethod testMethod) { in apply()
DTestGrouping.java70 public List<TestMethod> getTests() { in getTests()
71 List<TestMethod> testMethods = new ArrayList<TestMethod>(); in getTests()
74 testMethods.add(new TestMethod(testMethod, testCase)); in getTests()
/frameworks/base/test-runner/src/android/test/suitebuilder/annotation/
DHasAnnotation.java21 import android.test.suitebuilder.TestMethod;
31 public class HasAnnotation implements Predicate<TestMethod> {
33 private Predicate<TestMethod> hasMethodOrClassAnnotation;
41 public boolean apply(TestMethod testMethod) { in apply()
DHasMethodAnnotation.java20 import android.test.suitebuilder.TestMethod;
30 class HasMethodAnnotation implements Predicate<TestMethod> {
38 public boolean apply(TestMethod testMethod) { in apply()
DHasClassAnnotation.java21 import android.test.suitebuilder.TestMethod;
30 class HasClassAnnotation implements Predicate<TestMethod> {
38 public boolean apply(TestMethod testMethod) { in apply()
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/annotation/
DHasClassAnnotationTest.java19 import android.test.suitebuilder.TestMethod;
41 TestMethod testMethod = new TestMethod(method, aClass); in classHasAnnotation()
DHasMethodAnnotationTest.java19 import android.test.suitebuilder.TestMethod;
43 TestMethod testMethod = new TestMethod(method, aClass); in methodHasAnnotation()
DHasAnnotationTest.java19 import android.test.suitebuilder.TestMethod;
47 TestMethod testMethod = new TestMethod(method, aClass); in hasExampleAnnotation()
/frameworks/base/test-runner/src/android/test/
DInstrumentationCoreTestRunner.java35 import android.test.suitebuilder.TestMethod;
197 List<Predicate<TestMethod>> getBuilderRequirements() { in getBuilderRequirements()
198 List<Predicate<TestMethod>> builderRequirements = in getBuilderRequirements()
200 Predicate<TestMethod> brokenTestPredicate = in getBuilderRequirements()
204 Predicate<TestMethod> sideEffectPredicate = in getBuilderRequirements()
DInstrumentationTestRunner.java30 import android.test.suitebuilder.TestMethod;
303 Predicate<TestMethod> testSizePredicate = null; in onCreate()
304 Predicate<TestMethod> testAnnotationPredicate = null; in onCreate()
305 Predicate<TestMethod> testNotAnnotationPredicate = null; in onCreate()
394 List<Predicate<TestMethod>> getBuilderRequirements() { in getBuilderRequirements()
395 return new ArrayList<Predicate<TestMethod>>(); in getBuilderRequirements()
441 private Predicate<TestMethod> getSizePredicateFromArg(String sizeArg) { in getSizePredicateFromArg()
460 private Predicate<TestMethod> getAnnotationPredicate(String annotationClassName) { in getAnnotationPredicate()
474 private Predicate<TestMethod> getNotAnnotationPredicate(String annotationClassName) { in getNotAnnotationPredicate()
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
DAssignableFromTest.java52 private TestMethod testMethodFor(Class<? extends TestCase> aClass) in testMethodFor()
55 return new TestMethod(method, aClass); in testMethodFor()
DTestSuiteBuilderTest.java159 private Predicate<TestMethod> testsWhoseNameContains(final String string) { in testsWhoseNameContains()
160 return new Predicate<TestMethod>() { in testsWhoseNameContains()
161 public boolean apply(TestMethod testMethod) { in testsWhoseNameContains()
DTestGroupingTest.java42 List<TestMethod> tests = mGrouping.getTests(); in testGetTests_noPublicConstructor()
/frameworks/base/docs/html/sdk/api_diff/3/
DmissingSinces.txt97 NO DOC BLOCK: android.test.suitebuilder.TestMethod Constructor (java.lang.String, java.lang.Class<?…
98 NO DOC BLOCK: android.test.suitebuilder.TestMethod Constructor (junit.framework.TestCase)
/frameworks/base/docs/html/
Dsitemap.txt3558 http://developer.android.com/reference/android/test/suitebuilder/TestMethod.html
4235 http://developer.android.com/sdk/api_diff/3/changes/android.test.suitebuilder.TestMethod.html
/frameworks/base/api/
Dcurrent.txt19786 public class TestMethod {
19787 …ctor public TestMethod(java.lang.reflect.Method, java.lang.Class<? extends junit.framework.TestCas…
19788 ctor public TestMethod(java.lang.String, java.lang.Class<? extends junit.framework.TestCase>);
19789 ctor public TestMethod(junit.framework.TestCase);
19800 …rements(java.util.List<com.android.internal.util.Predicate<android.test.suitebuilder.TestMethod>>);
19801 …lder addRequirements(com.android.internal.util.Predicate<android.test.suitebuilder.TestMethod>...);
D14.txt19786 public class TestMethod {
19787 …ctor public TestMethod(java.lang.reflect.Method, java.lang.Class<? extends junit.framework.TestCas…
19788 ctor public TestMethod(java.lang.String, java.lang.Class<? extends junit.framework.TestCase>);
19789 ctor public TestMethod(junit.framework.TestCase);
19800 …rements(java.util.List<com.android.internal.util.Predicate<android.test.suitebuilder.TestMethod>>);
19801 …lder addRequirements(com.android.internal.util.Predicate<android.test.suitebuilder.TestMethod>...);