FileDocCategorySizeDatePackage
HasMethodAnnotationTest.javaAPI DocAndroid 1.5 API1893Wed May 06 22:42:02 BST 2009android.test.suitebuilder.annotation

HasMethodAnnotationTest

public class HasMethodAnnotationTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
private booleanmethodHasAnnotation(java.lang.Class aClass, java.lang.String methodName, java.lang.Class expectedClassification)

        Method method = aClass.getMethod(methodName);
        TestMethod testMethod = new TestMethod(method, aClass);
        return new HasMethodAnnotation(expectedClassification).apply(testMethod);
    
public voidtestMethodWithSpecifiedAttribute()

        assertTrue(methodHasAnnotation(AnnotatedMethodExample.class,
                "testThatIsAnnotated", Smoke.class));
    
public voidtestMethodWithoutSpecifiedAttribute()

        assertFalse(methodHasAnnotation(AnnotatedMethodExample.class,
                "testThatIsNotAnnotated", Smoke.class));