@Test public void loadPreferencesTest() { presenter.loadPreferences(any(PaginatedArchetypeList.class)); verify(archetypePreferences).load(any(PreferenceScopeResolutionStrategyInfo.class), any(), any()); }
@Override public Promise<Void> loadPreferences(final PaginatedArchetypeList paginatedList) { return promises.create( (resolve, reject) -> archetypePreferences.load(spaceScopedResolutionStrategySupplier.get(), loadPreferencesSuccessCallback(paginatedList, resolve), loadPreferencesErrorCallback(reject))); }
SpaceArchetypeTablePresenter extends AbstractArchetypeTablePresenter { @Override public Promise<Void> loadPreferences(final PaginatedArchetypeList paginatedList) { return promises.create( (resolve, reject) -> archetypePreferences.load(spaceScopedResolutionStrategySupplier.get(), loadPreferencesSuccessCallback(paginatedList, resolve), loadPreferencesErrorCallback(reject))); } }
SpaceArchetypeTablePresenter extends AbstractArchetypeTablePresenter { @Override public Promise<Void> loadPreferences(final PaginatedArchetypeList paginatedList) { return promises.create( (resolve, reject) -> archetypePreferences.load(spaceScopedResolutionStrategySupplier.get(), loadPreferencesSuccessCallback(paginatedList, resolve), loadPreferencesErrorCallback(reject))); } @Inject  SpaceArchetypeTablePresenter(final View view,
                                        final ArchetypeListPresenter archetypeListPresenter,
                                        final BusyIndicatorView busyIndicatorView,
                                        final TranslationService ts,
                                        final AddArchetypeModalPresenter addArchetypeModalPresenter,
                                        final ArchetypePreferences archetypePreferences,
                                        final Caller<ArchetypeService> archetypeService,
                                        final PreferenceScopeFactory preferenceScopeFactory,
                                        final Promises promises,
                                        final SpaceScopedResolutionStrategySupplier spaceScopedResolutionStrategySupplier,
                                        final WorkspaceProjectContext projectContext,
                                        final OrganizationalUnitController organizationalUnitController); }
SpaceArchetypeTablePresenter extends AbstractArchetypeTablePresenter { @Override public Promise<Void> loadPreferences(final PaginatedArchetypeList paginatedList) { return promises.create( (resolve, reject) -> archetypePreferences.load(spaceScopedResolutionStrategySupplier.get(), loadPreferencesSuccessCallback(paginatedList, resolve), loadPreferencesErrorCallback(reject))); } @Inject  SpaceArchetypeTablePresenter(final View view,
                                        final ArchetypeListPresenter archetypeListPresenter,
                                        final BusyIndicatorView busyIndicatorView,
                                        final TranslationService ts,
                                        final AddArchetypeModalPresenter addArchetypeModalPresenter,
                                        final ArchetypePreferences archetypePreferences,
                                        final Caller<ArchetypeService> archetypeService,
                                        final PreferenceScopeFactory preferenceScopeFactory,
                                        final Promises promises,
                                        final SpaceScopedResolutionStrategySupplier spaceScopedResolutionStrategySupplier,
                                        final WorkspaceProjectContext projectContext,
                                        final OrganizationalUnitController organizationalUnitController); @Override Promise<Void> loadPreferences(final PaginatedArchetypeList paginatedList); @Override Promise<Void> makeDefaultValue(final String alias,
                                          final boolean updateList); @Override ArchetypeTableConfiguration initConfiguration(); @Override boolean canMakeChanges(); @Override Promise<Void> savePreferences(final boolean updateList); }
SpaceArchetypeTablePresenter extends AbstractArchetypeTablePresenter { @Override public Promise<Void> loadPreferences(final PaginatedArchetypeList paginatedList) { return promises.create( (resolve, reject) -> archetypePreferences.load(spaceScopedResolutionStrategySupplier.get(), loadPreferencesSuccessCallback(paginatedList, resolve), loadPreferencesErrorCallback(reject))); } @Inject  SpaceArchetypeTablePresenter(final View view,
                                        final ArchetypeListPresenter archetypeListPresenter,
                                        final BusyIndicatorView busyIndicatorView,
                                        final TranslationService ts,
                                        final AddArchetypeModalPresenter addArchetypeModalPresenter,
                                        final ArchetypePreferences archetypePreferences,
                                        final Caller<ArchetypeService> archetypeService,
                                        final PreferenceScopeFactory preferenceScopeFactory,
                                        final Promises promises,
                                        final SpaceScopedResolutionStrategySupplier spaceScopedResolutionStrategySupplier,
                                        final WorkspaceProjectContext projectContext,
                                        final OrganizationalUnitController organizationalUnitController); @Override Promise<Void> loadPreferences(final PaginatedArchetypeList paginatedList); @Override Promise<Void> makeDefaultValue(final String alias,
                                          final boolean updateList); @Override ArchetypeTableConfiguration initConfiguration(); @Override boolean canMakeChanges(); @Override Promise<Void> savePreferences(final boolean updateList);  }