Changeset 922 for trunk/autoquest-plugin-core-test/src
- Timestamp:
- 10/16/12 15:04:25 (12 years ago)
- Location:
- trunk/autoquest-plugin-core-test/src/test/java/de/ugoe/cs
- Files:
-
- 1 added
- 1 deleted
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-core-test/src/test/java/de/ugoe/cs/autoquest/plugin/PluginLoaderTest.java
r772 r922 1 package de.ugoe.cs. quest.plugin;1 package de.ugoe.cs.autoquest.plugin; 2 2 3 3 import java.io.File; … … 8 8 9 9 import org.junit.*; 10 11 import de.ugoe.cs.autoquest.plugin.PluginLoader; 12 import de.ugoe.cs.autoquest.plugin.PluginLoaderException; 13 import de.ugoe.cs.autoquest.plugin.QuestPlugin; 10 14 import static org.junit.Assert.*; 11 15 … … 32 36 @Test(expected = java.lang.IllegalArgumentException.class) 33 37 public void testPluginLoader_3() throws Exception { 34 new PluginLoader(new File("testdata/de.ugoe.cs. quest.plugin.PluginLoaderTest/jfcmonitor.jar"));38 new PluginLoader(new File("testdata/de.ugoe.cs.autoquest.plugin.PluginLoaderTest/jfcmonitor.jar")); 35 39 } 36 40 … … 137 141 public void testGetClassPathFromJar_1() throws Exception { 138 142 PluginLoader loader = new PluginLoader(new File(".")); 139 File jarFile = new File("testdata/de.ugoe.cs. quest.plugin.PluginLoaderTest/jfcmonitor.jar");143 File jarFile = new File("testdata/de.ugoe.cs.autoquest.plugin.PluginLoaderTest/jfcmonitor.jar"); 140 144 141 145 String[] expected = new String[]{ "file:" + jarFile.getParentFile().getAbsolutePath()+"/javahelperlib.jar" }; … … 149 153 public void testGetClassPathFromJar_2() throws Exception { 150 154 PluginLoader loader = new PluginLoader(new File(".")); 151 File jarFile = new File("testdata/de.ugoe.cs. quest.plugin.PluginLoaderTest/jmi.jar");155 File jarFile = new File("testdata/de.ugoe.cs.autoquest.plugin.PluginLoaderTest/jmi.jar"); 152 156 153 157 String[] expected = new String[]{ }; … … 160 164 @Test 161 165 public void testLoad_1() throws Exception { 162 PluginLoader loader = new PluginLoader(new File("testdata/de.ugoe.cs. quest.plugin.PluginLoaderTest"));166 PluginLoader loader = new PluginLoader(new File("testdata/de.ugoe.cs.autoquest.plugin.PluginLoaderTest")); 163 167 164 168 loader.load(); … … 170 174 assertNotNull(plugin); 171 175 assertEquals("Mock Plugin", plugin.getTitle()); 172 assertEquals(Arrays.asList(new String[]{"de.ugoe.cs. quest.plugin.mock.commands"}), plugin.getCommandPackages());176 assertEquals(Arrays.asList(new String[]{"de.ugoe.cs.autoquest.plugin.mock.commands"}), plugin.getCommandPackages()); 173 177 } 174 178 175 179 @Test 176 180 public void testLoad_2() throws Exception { 177 PluginLoader loader = new PluginLoader(new File("testdata/de.ugoe.cs. quest.plugin.PluginLoaderTestInvalid_1"));181 PluginLoader loader = new PluginLoader(new File("testdata/de.ugoe.cs.autoquest.plugin.PluginLoaderTestInvalid_1")); 178 182 179 183 try { … … 186 190 @Test 187 191 public void testLoad_3() throws Exception { 188 PluginLoader loader = new PluginLoader(new File("testdata/de.ugoe.cs. quest.plugin.PluginLoaderTestInvalid_2"));192 PluginLoader loader = new PluginLoader(new File("testdata/de.ugoe.cs.autoquest.plugin.PluginLoaderTestInvalid_2")); 189 193 190 194 try { … … 197 201 @Test 198 202 public void testLoad_4() throws Exception { 199 PluginLoader loader = new PluginLoader(new File("testdata/de.ugoe.cs. quest.plugin.PluginLoaderTestInvalid_3"));203 PluginLoader loader = new PluginLoader(new File("testdata/de.ugoe.cs.autoquest.plugin.PluginLoaderTestInvalid_3")); 200 204 201 205 try {
Note: See TracChangeset
for help on using the changeset viewer.