org.apache.bcel
Class FieldAnnotationsTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.bcel.AbstractTestCase
              extended by org.apache.bcel.FieldAnnotationsTestCase
All Implemented Interfaces:
junit.framework.Test

public class FieldAnnotationsTestCase
extends AbstractTestCase


Constructor Summary
FieldAnnotationsTestCase()
           
 
Method Summary
 void checkAnnotatedField(JavaClass clazz, String fieldname, String AnnotationEntryName, String AnnotationEntryElementName, String AnnotationEntryElementValue)
           
 void checkValue(AnnotationEntry a, String name, String tostring)
           
 void testFieldAnnotationEntrys()
          Check field AnnotationEntrys are retrievable.
 void testFieldAnnotationEntrysReadWrite()
          Check field AnnotationEntrys (de)serialize ok.
 void testFieldAnnotationModification()
          Check we can load in a class, modify its field AnnotationEntrys, save it, reload it and everything is correct.
 
Methods inherited from class org.apache.bcel.AbstractTestCase
createFruitAnnotationEntry, createRepos, createTestdataFile, dumpAnnotationEntries, dumpAnnotationEntries, dumpAttributes, findAttribute, findAttribute, getMethod, getTestClass, wipe, wipe
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldAnnotationsTestCase

public FieldAnnotationsTestCase()
Method Detail

testFieldAnnotationEntrys

public void testFieldAnnotationEntrys()
                               throws ClassNotFoundException
Check field AnnotationEntrys are retrievable.

Throws:
ClassNotFoundException

testFieldAnnotationEntrysReadWrite

public void testFieldAnnotationEntrysReadWrite()
                                        throws ClassNotFoundException,
                                               IOException
Check field AnnotationEntrys (de)serialize ok.

Throws:
ClassNotFoundException
IOException

testFieldAnnotationModification

public void testFieldAnnotationModification()
                                     throws ClassNotFoundException
Check we can load in a class, modify its field AnnotationEntrys, save it, reload it and everything is correct.

Throws:
ClassNotFoundException

checkAnnotatedField

public void checkAnnotatedField(JavaClass clazz,
                                String fieldname,
                                String AnnotationEntryName,
                                String AnnotationEntryElementName,
                                String AnnotationEntryElementValue)

checkValue

public void checkValue(AnnotationEntry a,
                       String name,
                       String tostring)


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.