@Test public void testInitComponent_loginServiceIsInitialized() { testComponent.initComponent(); verify(googleLoginService).loadPersistedCredentials(); } }
@Override public void initComponent() { if (!ApplicationManager.getApplication().isUnitTestMode()) { configureUsageTracking(); } Services.getLoginService().loadPersistedCredentials(); PluginConfigurationService pluginConfigurationService = ServiceManager.getService(PluginConfigurationService.class); PluginInfoService pluginInfoService = ServiceManager.getService(PluginInfoService.class); if (pluginInfoService.shouldEnableErrorFeedbackReporting()) { initErrorReporting(pluginConfigurationService, pluginInfoService); } new ConflictingAppEnginePluginCheck().notifyIfConflicting(); new GoogleAccountPluginUninstaller().uninstallIfPresent(); }