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

HasClassAnnotationTest

public class HasClassAnnotationTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
private booleanclassHasAnnotation(java.lang.Class aClass, java.lang.Class expectedClassification)

        Method method = aClass.getMethod("testSomeTest");

        TestMethod testMethod = new TestMethod(method, aClass);
        return new HasClassAnnotation(expectedClassification).apply(testMethod);
    
public voidtestShouldTellIfParentClassDoesNotHaveSpecifiedClassification()

        assertFalse(classHasAnnotation(NonSmokeTestExample.class, Smoke.class));
    
public voidtestShouldTellIfParentClassHasSpecifiedClassification()

        assertTrue(classHasAnnotation(SmokeTestExample.class, Smoke.class));