1 19 20 package org.netbeans.modules.junit; 21 22 import java.util.Map ; 23 import org.netbeans.modules.junit.plugin.JUnitPlugin; 24 import org.netbeans.modules.junit.plugin.JUnitPlugin.CreateTestParam; 25 import org.netbeans.modules.junit.plugin.JUnitPlugin.Location; 26 import org.openide.filesystems.FileObject; 27 28 32 public abstract class JUnitPluginTrampoline { 33 34 35 public static JUnitPluginTrampoline DEFAULT; 36 37 40 { 41 Class c = JUnitPlugin.class; 42 try { 43 Class.forName(c.getName(), true, c.getClassLoader()); 44 } catch (ClassNotFoundException ex) { 45 ex.printStackTrace(); 46 } 47 } 48 49 50 public JUnitPluginTrampoline() {} 51 52 60 public abstract Location getTestLocation( 61 JUnitPlugin plugin, 62 Location sourceLocation); 63 64 72 public abstract Location getTestedLocation( 73 JUnitPlugin plugin, 74 Location testLocation); 75 76 90 public abstract FileObject[] createTests( 91 JUnitPlugin plugin, 92 FileObject[] filesToTest, 93 FileObject targetRoot, 94 Map <CreateTestParam, Object > params); 95 96 } 97 | Popular Tags |