@Test public void loadPreferencesTest() { entryPoint.loadPreferences(); verify(entryPoint).setupMenu(); verify(entryPoint).setupAdminPage(); assertEquals("value", ApplicationPreferences.getStringPref("key")); }
void loadPreferences() { appConfigService.call((final Map<String, String> response) -> { ApplicationPreferences.setUp(response); setupMenu(); setupAdminPage(); }).loadPreferences(); }
DefaultWorkbenchEntryPoint { void loadPreferences() { appConfigService.call((final Map<String, String> response) -> { ApplicationPreferences.setUp(response); setupMenu(); setupAdminPage(); }).loadPreferences(); } }
DefaultWorkbenchEntryPoint { void loadPreferences() { appConfigService.call((final Map<String, String> response) -> { ApplicationPreferences.setUp(response); setupMenu(); setupAdminPage(); }).loadPreferences(); } @Inject  DefaultWorkbenchEntryPoint(final Caller<AppConfigService> appConfigService,
                                      final ActivityBeansCache activityBeansCache,
                                      final DefaultWorkbenchErrorCallback defaultWorkbenchErrorCallback); }
DefaultWorkbenchEntryPoint { void loadPreferences() { appConfigService.call((final Map<String, String> response) -> { ApplicationPreferences.setUp(response); setupMenu(); setupAdminPage(); }).loadPreferences(); } @Inject  DefaultWorkbenchEntryPoint(final Caller<AppConfigService> appConfigService,
                                      final ActivityBeansCache activityBeansCache,
                                      final DefaultWorkbenchErrorCallback defaultWorkbenchErrorCallback); @Inject void setGenericErrorPopup(final GenericErrorPopup genericErrorPopup); @AfterInitialization void startDefaultWorkbench(); @AfterInitialization void hideLoadingPopup(); }
DefaultWorkbenchEntryPoint { void loadPreferences() { appConfigService.call((final Map<String, String> response) -> { ApplicationPreferences.setUp(response); setupMenu(); setupAdminPage(); }).loadPreferences(); } @Inject  DefaultWorkbenchEntryPoint(final Caller<AppConfigService> appConfigService,
                                      final ActivityBeansCache activityBeansCache,
                                      final DefaultWorkbenchErrorCallback defaultWorkbenchErrorCallback); @Inject void setGenericErrorPopup(final GenericErrorPopup genericErrorPopup); @AfterInitialization void startDefaultWorkbench(); @AfterInitialization void hideLoadingPopup();  }