kopia lustrzana https://github.com/JOSM/MapWithAI
FIXUP: Test needed to be corrected for adding the MapWithAI preferences to the data menu
Signed-off-by: Taylor Smock <taylor.smock@kaart.com>pull/1/head
rodzic
f82a296c60
commit
59f6ee8671
|
@ -86,7 +86,8 @@ public class MapWithAIPluginTest {
|
|||
throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
|
||||
Field menuEntries = MapWithAIPlugin.class.getDeclaredField("MENU_ENTRIES");
|
||||
menuEntries.setAccessible(true);
|
||||
final int addedMenuItems = ((Map<?, ?>) menuEntries.get(plugin)).size();
|
||||
// + 1 comes from the preferences panel
|
||||
final int addedMenuItems = ((Map<?, ?>) menuEntries.get(plugin)).size() + 1;
|
||||
final JMenu dataMenu = MainApplication.getMenu().dataMenu;
|
||||
final int dataMenuSize = dataMenu.getMenuComponentCount();
|
||||
plugin = new MapWithAIPlugin(info);
|
||||
|
|
Ładowanie…
Reference in New Issue