use of android.test.suitebuilder.TestMethod in project android_frameworks_base by crdroidandroid.
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);
}
Aggregations