|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.bcel.AbstractTestCase
org.apache.bcel.FieldAnnotationsTestCase
public class FieldAnnotationsTestCase
| 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 |
|---|
public FieldAnnotationsTestCase()
| Method Detail |
|---|
public void testFieldAnnotationEntrys()
throws ClassNotFoundException
ClassNotFoundException
public void testFieldAnnotationEntrysReadWrite()
throws ClassNotFoundException,
IOException
ClassNotFoundException
IOException
public void testFieldAnnotationModification()
throws ClassNotFoundException
ClassNotFoundException
public void checkAnnotatedField(JavaClass clazz,
String fieldname,
String AnnotationEntryName,
String AnnotationEntryElementName,
String AnnotationEntryElementValue)
public void checkValue(AnnotationEntry a,
String name,
String tostring)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||