/frameworks/base/test-runner/src/android/test/suitebuilder/annotation/ |
HasClassAnnotation.java | 21 import android.test.suitebuilder.TestMethod; 25 * A predicate that checks to see if a {@link android.test.suitebuilder.TestMethod} has a specific annotation on the 30 class HasClassAnnotation implements Predicate<TestMethod> { 38 public boolean apply(TestMethod testMethod) { 39 return testMethod.getEnclosingClass().getAnnotation(annotationClass) != null;
|
HasMethodAnnotation.java | 20 import android.test.suitebuilder.TestMethod; 25 * A predicate that checks to see if a the method represented by {@link TestMethod} has a certain 30 class HasMethodAnnotation implements Predicate<TestMethod> { 38 public boolean apply(TestMethod testMethod) { 39 return testMethod.getAnnotation(annotationClass) != null;
|
HasAnnotation.java | 21 import android.test.suitebuilder.TestMethod; 26 * A predicate that checks to see if a {@link TestMethod} has a specific annotation, either on the 31 public class HasAnnotation implements Predicate<TestMethod> { 33 private Predicate<TestMethod> hasMethodOrClassAnnotation; 41 public boolean apply(TestMethod testMethod) { 42 return hasMethodOrClassAnnotation.apply(testMethod);
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
AssignableFrom.java | 21 class AssignableFrom implements Predicate<TestMethod> { 29 public boolean apply(TestMethod testMethod) { 30 return root.isAssignableFrom(testMethod.getEnclosingClass());
|
TestPredicates.java | 34 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 =
|
TestMethod.java | 30 public class TestMethod { 36 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { 40 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { 46 public TestMethod(TestCase testCase) { 119 TestMethod that = (TestMethod) o;
|
TestSuiteBuilder.java | 46 private final Set<Predicate<TestMethod>> predicates = new HashSet<Predicate<TestMethod>>(); 121 public TestSuiteBuilder addRequirements(List<Predicate<TestMethod>> predicates) { 180 for (TestMethod test : testGrouping.getTests()) { 187 if (satisfiesAllPredicates(new TestMethod(testCase))) { 217 public final TestSuiteBuilder addRequirements(Predicate<TestMethod>... predicates) { 218 ArrayList<Predicate<TestMethod>> list = new ArrayList<Predicate<TestMethod>>(); 249 private boolean satisfiesAllPredicates(TestMethod test) { 250 for (Predicate<TestMethod> predicate : predicates) [all...] |
TestGrouping.java | 70 public List<TestMethod> getTests() { 71 List<TestMethod> testMethods = new ArrayList<TestMethod>(); 73 for (Method testMethod : getTestMethods(testCase)) { 74 testMethods.add(new TestMethod(testMethod, testCase));
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/annotation/ |
HasClassAnnotationTest.java | 19 import android.test.suitebuilder.TestMethod; 41 TestMethod testMethod = new TestMethod(method, aClass); 42 return new HasClassAnnotation(expectedClassification).apply(testMethod);
|
HasMethodAnnotationTest.java | 19 import android.test.suitebuilder.TestMethod; 43 TestMethod testMethod = new TestMethod(method, aClass); 44 return new HasMethodAnnotation(expectedClassification).apply(testMethod);
|
HasAnnotationTest.java | 19 import android.test.suitebuilder.TestMethod; 47 TestMethod testMethod = new TestMethod(method, aClass); 48 return new HasAnnotation(Example.class).apply(testMethod);
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/ |
TestGroupingTest.java | 42 List<TestMethod> tests = mGrouping.getTests();
|
AssignableFromTest.java | 52 private TestMethod testMethodFor(Class<? extends TestCase> aClass) 55 return new TestMethod(method, aClass);
|
/external/droiddriver/src/io/appium/droiddriver/runner/ |
TestRunner.java | 24 import android.test.suitebuilder.TestMethod; 141 List<Predicate<TestMethod>> getBuilderRequirements() { 142 List<Predicate<TestMethod>> requirements = new ArrayList<Predicate<TestMethod>>(); 143 requirements.add(new Predicate<TestMethod>() { 145 public boolean apply(TestMethod arg0) { 163 private <T extends Annotation> T getAnnotation(TestMethod testMethod, Class<T> clazz) { 164 T annotation = testMethod.getAnnotation(clazz); 166 annotation = testMethod.getEnclosingClass().getAnnotation(clazz) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
InvocationTargetExceptionTest.java | 31 static class TestMethod { 32 public TestMethod() { 134 Method mth = TestMethod.class.getDeclaredMethod( 137 Object ret = mth.invoke(new TestMethod(), new Object[0]); 156 Method mth = TestMethod.class.getDeclaredMethod( 159 Object ret = mth.invoke(new TestMethod(), new Object[0]); 177 Method mth = TestMethod.class.getDeclaredMethod( 180 Object ret = mth.invoke(new TestMethod(), new Object[0]); 198 Method mth = TestMethod.class.getDeclaredMethod( 201 Object ret = mth.invoke(new TestMethod(), new Object[0]) [all...] |
MethodTest.java | 35 static class TestMethod { 36 public TestMethod() { 161 class TestMethodSub extends TestMethod { 201 m1 = TestMethod.class.getMethod("invokeInstanceTest", new Class[0]); 210 m1 = TestMethod.class.getMethod("invokeStaticTest", new Class[0]); 224 Method m1 = TestMethod.class.getMethod("invokeInstanceTest", new Class[0]); 225 Method m2 = TestMethod.class.getMethod("invokeInstanceTest", (Class[]) null); 234 Method m1 = TestMethod.class.getDeclaredMethod("invokeInstanceTest", new Class[0]); 235 Method m2 = TestMethod.class.getDeclaredMethod("invokeInstanceTest", (Class[]) null); 249 mths = TestMethod.class.getDeclaredMethods() [all...] |
/external/junit/src/org/junit/internal/runners/ |
TestMethod.java | 20 public class TestMethod { 24 public TestMethod(Method method, TestClass testClass) {
|
JUnit4ClassRunner.java | 97 TestMethod testMethod= wrapMethod(method); 98 new MethodRoadie(test, testMethod, notifier, description).run(); 108 protected TestMethod wrapMethod(Method method) { 109 return new TestMethod(method, fTestClass);
|
/external/vogar/src/vogar/target/junit/ |
Junit4.java | 117 out.add(TestMethod.create(testClass, m, null)); 120 out.add(TestMethod.create(testClass, m, args)); 290 private static class TestMethod extends VogarJUnitTest { 294 private TestMethod(Class<?> testClass, Method method, 306 return new TestMethod(testClass, method, c, constructorArgs); 316 return new TestMethod(testClass, method, testClass.getConstructor(), null); 320 return new TestMethod(testClass, method,
|
Junit3.java | 129 out.add(TestMethod.create(testCaseClass, m)); 137 out.add(TestMethod.create(testCaseClass, testClass.getMethod(methodName))); 279 private static class TestMethod extends VogarJUnitTest { 283 private TestMethod(Class<? extends TestCase> testClass, Method method, 292 return new TestMethod(testClass, method, testClass.getConstructor(), new Object[0]); 296 return new TestMethod(testClass, method, testClass.getConstructor(String.class),
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/ |
TestDotTreeGenerator.cs | 43 [TestMethod]
|
TestFastLexer.cs | 44 [TestMethod]
|
/external/autotest/client/common_lib/cros/tendo/ |
buffet_dbus_helper.py | 38 if self.manager.TestMethod(TEST_MESSAGE) == TEST_MESSAGE:
|
/cts/tools/utils/ |
DescriptionGenerator.java | 425 void appendTestCases(Node elem, Collection<TestMethod> cases) { 430 for (TestMethod caze : cases) { 514 Collection<TestMethod> mCases; 522 TestClass(String name, Collection<TestMethod> cases) { 538 * Get all the TestMethod from a ClassDoc, including inherited methods. 541 * @return A collection of TestMethod. 543 Collection<TestMethod> getTestMethods(ExpectationStore expectationStore, 547 ArrayList<TestMethod> cases = new ArrayList<TestMethod>(); 582 cases.add(new TestMethod( [all...] |
/frameworks/base/test-runner/src/android/test/ |
InstrumentationTestRunner.java | 30 import android.test.suitebuilder.TestMethod; 317 Predicate<TestMethod> testSizePredicate = null; 318 Predicate<TestMethod> testAnnotationPredicate = null; 319 Predicate<TestMethod> testNotAnnotationPredicate = null; 417 List<Predicate<TestMethod>> getBuilderRequirements() { 418 return new ArrayList<Predicate<TestMethod>>(); 438 * Expected format: com.android.TestClass#testMethod 464 private Predicate<TestMethod> getSizePredicateFromArg(String sizeArg) { 483 private Predicate<TestMethod> getAnnotationPredicate(String annotationClassName) { 497 private Predicate<TestMethod> getNotAnnotationPredicate(String annotationClassName) [all...] |