- Timestamp:
- 2006-10-07T00:14:05+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/org/openstreetmap/josm/plugins/PluginLoaderTest.java
r149 r151 2 2 3 3 import java.io.File; 4 import java.lang.reflect.Field;5 4 6 5 import junit.framework.TestCase; … … 24 23 PluginProxy plugin = loader.loadPlugin(getClass().getName()+"$TestPlugin", new File("foo.jar")); 25 24 assertTrue(plugin.plugin instanceof TestPlugin); 26 Field nameField = Plugin.class.getDeclaredField("name");27 nameField.setAccessible(true);28 assertEquals("foo", nameField.get(plugin.plugin));29 25 } 30 26
Note:
See TracChangeset
for help on using the changeset viewer.