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
Taylor Smock 2020-06-29 16:57:51 -06:00
rodzic f82a296c60
commit 59f6ee8671
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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);