|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--com.markcrocker.purifier.StackMapGenTest
Field Summary | |
private static java.lang.String |
fileName
|
Fields inherited from class junit.framework.TestCase |
fName |
Constructor Summary | |
StackMapGenTest(java.lang.String name)
|
Method Summary | |
private static void |
createTest(org.apache.bcel.classfile.Method method,
int methodIndex,
java.lang.String className,
org.apache.bcel.generic.ConstantPoolGen cpg,
junit.framework.TestSuite suite)
Creates a new anonymous inner StackMapGenTest for the specified method and adds it to the test suite. |
static void |
main(java.lang.String[] args)
Main method will automatically run the tests in the console. |
static junit.framework.Test |
suite()
A test suite that generates StackMapGen.generateStackMap TestCases for every method in every class File in the TestCases directory and subdirectories. |
static junit.framework.Test |
suite(java.io.File testFile,
int methodIndex)
A test suite that generates StackMapGen.generateStackMap TestCases for methods in a class File. |
private static junit.framework.Test |
suite(java.io.File testFile,
int methodIndex,
java.lang.String methodName)
A test suite that generates StackMapGen.generateStackMap TestCases for methods in a class File. |
static junit.framework.Test |
suite(java.io.File testFile,
java.lang.String methodName)
A test suite that generates a StackMapGen.generateStackMap TestCase for a method matching methodName in a class File. |
void |
testGenerateStackMap(org.apache.bcel.generic.MethodGen mg,
org.apache.bcel.generic.ConstantPoolGen cpg)
Tests StackMapGen.generateStackMap method by comparing it against the pre- existing StackMap. |
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, format |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static final java.lang.String fileName
Constructor Detail |
public StackMapGenTest(java.lang.String name)
Method Detail |
public void testGenerateStackMap(org.apache.bcel.generic.MethodGen mg, org.apache.bcel.generic.ConstantPoolGen cpg)
public static junit.framework.Test suite()
public static junit.framework.Test suite(java.io.File testFile, java.lang.String methodName)
public static junit.framework.Test suite(java.io.File testFile, int methodIndex)
private static junit.framework.Test suite(java.io.File testFile, int methodIndex, java.lang.String methodName)
private static void createTest(org.apache.bcel.classfile.Method method, int methodIndex, java.lang.String className, org.apache.bcel.generic.ConstantPoolGen cpg, junit.framework.TestSuite suite)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |