Changeset 10093 in josm for trunk/test/unit
- Timestamp:
- 2016-04-01T15:40:44+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTest.java
r9870 r10093 2 2 package org.openstreetmap.josm.plugins; 3 3 4 import static org.junit.Assert.assertEquals; 5 import static org.junit.Assert.assertFalse; 4 6 import static org.junit.Assert.assertNotNull; 5 7 import static org.junit.Assert.assertTrue; 6 8 9 import java.util.ArrayList; 7 10 import java.util.Arrays; 8 11 import java.util.List; … … 11 14 import org.junit.Test; 12 15 import org.openstreetmap.josm.JOSMFixture; 16 import org.openstreetmap.josm.Main; 13 17 import org.openstreetmap.josm.plugins.PluginHandler.DeprecatedPlugin; 14 18 import org.openstreetmap.josm.tools.Utils; … … 58 62 } 59 63 } 64 65 /** 66 * Unit test of {@link PluginHandler#filterDeprecatedPlugins}. 67 */ 68 @Test 69 public void testFilterDeprecatedPlugins() { 70 List<String> plugins = new ArrayList<>(Arrays.asList("foo", "bar", "imagery")); 71 PluginHandler.filterDeprecatedPlugins(Main.parent, plugins); 72 assertEquals(2, plugins.size()); 73 assertFalse(plugins.contains("imagery")); 74 } 75 76 /** 77 * Unit test of {@link PluginHandler#filterUnmaintainedPlugins}. 78 */ 79 @Test 80 public void testFilterUnmaintainedPlugins() { 81 List<String> plugins = new ArrayList<>(Arrays.asList("foo", "bar", "gpsbabelgui")); 82 PluginHandler.filterUnmaintainedPlugins(Main.parent, plugins); 83 assertEquals(2, plugins.size()); 84 assertFalse(plugins.contains("gpsbabelgui")); 85 } 60 86 }
Note:
See TracChangeset
for help on using the changeset viewer.