package Sequenic.T2ext.Instrumenter; import java.io.File; import java.lang.reflect.Method; import java.util.LinkedList; import java.util.List; import org.junit.AfterClass; import org.junit.Test; public class ClassInstrumenterTest1 { public Method getMethod(String mname, Class C){ Method[] methods = C.getDeclaredMethods() ; for (int i=0; i tmethods = new LinkedList() ; tmethods.add(m) ; ClassInstrumenter CI = new ClassInstrumenter(C,tmethods) ; CI.tpath = "SimpleTargetClass0.new.class" ; CFGBunchFile cfgBunch = CI.doInstrumentingInjectDebug(); for (CFG cfg : cfgBunch.cfgs) cfg.simplePrint() ; } @AfterClass public static void cleanup(){ //Clean up some files created by test1 File f1 = new File("SimpleTargetClass0.new.class"); if(f1.exists()) f1.deleteOnExit(); f1 = new File("SimpleTargetClass0.new.cfgs"); if(f1.exists()) f1.deleteOnExit(); } }