FileDocCategorySizeDatePackage
AnnotationFormatErrorTest.javaAPI DocAndroid 1.5 API2958Wed May 06 22:41:02 BST 2009org.apache.harmony.annotation.tests.java.lang.annotation

AnnotationFormatErrorTest

public class AnnotationFormatErrorTest extends TestCase
Test case of java.lang.annotation.AnnotationFormatError

Fields Summary
Constructors Summary
Methods Summary
public voidtest_constructorLjava_lang_String()

tests
java.lang.annotation.AnnotationFormatError#AnnotationFormatError(String)

        AnnotationFormatError e = new AnnotationFormatError("some message");
        assertEquals("some message", e.getMessage());
    
public voidtest_constructorLjava_lang_StringLjava_lang_Throwable()

tests
java.lang.annotation.AnnotationFormatError#AnnotationFormatError(String,Throwable)

        IllegalArgumentException iae = new IllegalArgumentException();
        AnnotationFormatError e = new AnnotationFormatError("some message", iae);
        assertEquals("some message", e.getMessage());
        assertSame(iae, e.getCause());
    
public voidtest_constructorLjava_lang_Throwable()

tests
java.lang.annotation.AnnotationFormatError#AnnotationFormatError(Throwable)

        IllegalArgumentException iae = new IllegalArgumentException();
        AnnotationFormatError e = new AnnotationFormatError(iae);
        assertSame(iae, e.getCause());