1 package org.columba.core.plugin; 19 20 import java.io.File ; 21 22 import junit.framework.TestCase; 23 24 import org.columba.core.io.DiskIO; 25 26 30 public class PluginFinderTest extends TestCase { 31 32 private File file; 33 34 37 protected void setUp() throws Exception { 38 file = new File ("test_config"); 40 file.mkdir(); 41 42 } 43 44 47 protected void tearDown() throws Exception { 48 DiskIO.deleteDirectory(file); 50 } 51 52 public void test() { 53 File [] pluginFolders = PluginFinder.searchPlugins(); 55 56 for (int i = 0; i < pluginFolders.length; i++) { 57 System.out.println("plugin-directory=" + pluginFolders[i]); 58 } 59 } 60 } | Popular Tags |