use of android.test.suitebuilder.TestMethod in project android_frameworks_base by DirtyUnicorns.
the class HasMethodAnnotationTest method methodHasAnnotation.
private boolean methodHasAnnotation(Class<? extends TestCase> aClass, String methodName, Class<? extends Annotation> expectedClassification) throws NoSuchMethodException {
Method method = aClass.getMethod(methodName);
TestMethod testMethod = new TestMethod(method, aClass);
return new HasMethodAnnotation(expectedClassification).apply(testMethod);
}
use of android.test.suitebuilder.TestMethod in project android_frameworks_base by DirtyUnicorns.
the class HasAnnotationTest method hasExampleAnnotation.
private boolean hasExampleAnnotation(Class<? extends TestCase> aClass, String methodName) throws NoSuchMethodException {
Method method = aClass.getMethod(methodName);
TestMethod testMethod = new TestMethod(method, aClass);
return new HasAnnotation(Example.class).apply(testMethod);
}
use of android.test.suitebuilder.TestMethod in project android_frameworks_base by DirtyUnicorns.
the class HasClassAnnotationTest method classHasAnnotation.
private boolean classHasAnnotation(Class<? extends TestCase> aClass, Class<Smoke> expectedClassification) throws NoSuchMethodException {
Method method = aClass.getMethod("testSomeTest");
TestMethod testMethod = new TestMethod(method, aClass);
return new HasClassAnnotation(expectedClassification).apply(testMethod);
}
use of android.test.suitebuilder.TestMethod in project android_frameworks_base by crdroidandroid.
the class HasAnnotationTest method hasExampleAnnotation.
private boolean hasExampleAnnotation(Class<? extends TestCase> aClass, String methodName) throws NoSuchMethodException {
Method method = aClass.getMethod(methodName);
TestMethod testMethod = new TestMethod(method, aClass);
return new HasAnnotation(Example.class).apply(testMethod);
}
use of android.test.suitebuilder.TestMethod in project android_frameworks_base by crdroidandroid.
the class HasMethodAnnotationTest method methodHasAnnotation.
private boolean methodHasAnnotation(Class<? extends TestCase> aClass, String methodName, Class<? extends Annotation> expectedClassification) throws NoSuchMethodException {
Method method = aClass.getMethod(methodName);
TestMethod testMethod = new TestMethod(method, aClass);
return new HasMethodAnnotation(expectedClassification).apply(testMethod);
}
Aggregations