java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.jxcl.jxunit.cover.stmt.TestStmtCoverage
- All Implemented Interfaces:
- junit.framework.Test
- public class TestStmtCoverage
- extends junit.framework.TestCase
This is derived from org.jxcl.cl.TestTransformer; it instruments
the test-data classes and the classes synthesized by ClassFactory.
All of the instrumented classes are run and checked to see that
they produce normal output, despite the instrumentation ;-)
| Fields inherited from class junit.framework.TestCase |
|
| 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 |
cfg
private org.jxcl.cl.ControlFlowGraph cfg
cp
private java.net.URL[] cp
- Classpath.
delegating
private java.lang.String[] delegating
include
private java.lang.String[] include
exclude
private java.lang.String[] exclude
spy
private org.jxcl.cl.GraphXformer spy
talker
private org.jxcl.cl.GraphXformer talker
talker2
private org.jxcl.cl.GraphXformer talker2
hdumper
private org.jxcl.cl.MethodXformer hdumper
idumper
private org.jxcl.cl.MethodXformer idumper
stmtReg
private StmtRegistry stmtReg
jxLoader
private org.jxcl.cl.JXClassLoader jxLoader
TestStmtCoverage
public TestStmtCoverage(java.lang.String name)
setUp
public void setUp()
- Description copied from class:
junit.framework.TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
loadAsRunTest
private org.jxcl.cl.RunTest loadAsRunTest(java.lang.String name)
checkInstrumentation
private void checkInstrumentation(java.lang.Object rt)
- Check that the class has been properly instrumented by
org.jxcl.jxunit.cover.stmt. At the moment this means only that the
hitcount array, public static int[] z$$z is one of the class's
fields. We also check that it has NOT been initialized,
although we will eventually make sure that it has been.
testFinally
public void testFinally()