org.apache.bcel
Class AbstractTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.bcel.AbstractTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractCounterVisitorTestCase, AnnotationAccessFlagTestCase, AnnotationDefaultAttributeTestCase, AnnotationGenTestCase, AnonymousClassTestCase, ElementValueGenTestCase, EnclosingMethodAttributeTestCase, EnumAccessFlagTestCase, FieldAnnotationsTestCase, GeneratingAnnotatedClassesTestCase, InstructionFinderTest, InstructionFinderTestCase

public abstract class AbstractTestCase
extends junit.framework.TestCase


Constructor Summary
AbstractTestCase()
           
 
Method Summary
 AnnotationEntryGen createFruitAnnotationEntry(ConstantPoolGen cp, String aFruit, boolean visibility)
           
 SyntheticRepository createRepos(String cpentry)
           
protected  File createTestdataFile(String name)
           
protected  String dumpAnnotationEntries(AnnotationEntry[] as)
           
protected  String dumpAnnotationEntries(AnnotationEntryGen[] as)
           
protected  String dumpAttributes(Attribute[] as)
           
protected  Attribute findAttribute(String name, Attribute[] all)
           
protected  Attribute[] findAttribute(String name, JavaClass clazz)
           
protected  Method getMethod(JavaClass cl, String methodname)
           
protected  JavaClass getTestClass(String name)
           
protected  boolean wipe(String name)
           
protected  boolean wipe(String dir, String name)
           
 
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

AbstractTestCase

public AbstractTestCase()
Method Detail

createTestdataFile

protected File createTestdataFile(String name)

getTestClass

protected JavaClass getTestClass(String name)
                          throws ClassNotFoundException
Throws:
ClassNotFoundException

getMethod

protected Method getMethod(JavaClass cl,
                           String methodname)

wipe

protected boolean wipe(String name)

wipe

protected boolean wipe(String dir,
                       String name)

createRepos

public SyntheticRepository createRepos(String cpentry)

findAttribute

protected Attribute[] findAttribute(String name,
                                    JavaClass clazz)

findAttribute

protected Attribute findAttribute(String name,
                                  Attribute[] all)

dumpAttributes

protected String dumpAttributes(Attribute[] as)

dumpAnnotationEntries

protected String dumpAnnotationEntries(AnnotationEntry[] as)

dumpAnnotationEntries

protected String dumpAnnotationEntries(AnnotationEntryGen[] as)

createFruitAnnotationEntry

public AnnotationEntryGen createFruitAnnotationEntry(ConstantPoolGen cp,
                                                     String aFruit,
                                                     boolean visibility)


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