|
|||||||||
| Home >> All >> jreversepro >> [ tester overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
jreversepro.tester
Class TestBase

java.lang.Objectjreversepro.tester.TestBase
- public abstract class TestBase
- extends java.lang.Object
A base class to run tests around. Modelled slightly after junit. I'd like to rewrite with junit later. Maybe...
| Field Summary | |
private TestContext |
context
|
private java.lang.Class |
newClass
|
private java.lang.Class |
originalClass
|
| Constructor Summary | |
TestBase()
|
|
| Method Summary | |
abstract java.lang.String |
getClassName()
the name of the class we are testing |
TestContext |
getContext()
Describe getContext method here. |
java.lang.Class |
getNewClass()
Describe setNewClass method here. |
java.lang.Class |
getOriginalClass()
Describe getOriginalClass method here. |
void |
init()
initialize for the tests to run 1 - load original class 2 - decompile / recompile class and load |
int |
invokeInt(java.lang.Object o,
java.lang.String method)
|
void |
log(java.lang.String message)
log a message to the test log |
void |
setContext(TestContext context)
Describe setContext method here. |
void |
teardown()
kill the classes. |
abstract void |
test(java.lang.Class classtotest)
perform the actual tests on either to original class or the new class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
originalClass
private java.lang.Class originalClass
newClass
private java.lang.Class newClass
context
private TestContext context
| Constructor Detail |
TestBase
public TestBase()
| Method Detail |
getClassName
public abstract java.lang.String getClassName()
- the name of the class we are testing
test
public abstract void test(java.lang.Class classtotest)
- perform the actual tests on either to original
class or the new class
getContext
public TestContext getContext()
- Describe
getContextmethod here.
setContext
public void setContext(TestContext context)
- Describe
setContextmethod here.
getOriginalClass
public java.lang.Class getOriginalClass()
- Describe
getOriginalClassmethod here.
getNewClass
public java.lang.Class getNewClass()
- Describe
setNewClassmethod here.
init
public void init()
- initialize for the tests to run
1 - load original class
2 - decompile / recompile class and load
teardown
public void teardown()
- kill the classes. maybe delete the intermediate files?
log
public void log(java.lang.String message)
- log a message to the test log
invokeInt
public int invokeInt(java.lang.Object o, java.lang.String method)
|
|||||||||
| Home >> All >> jreversepro >> [ tester overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
jreversepro.tester.TestBase