@Test public void testSetupEnabled() { presenter.setup(providerType, ProviderTypeStatus.ENABLED); verify(view, times(1)).disable(); verifyCommons(); }
public void setup(final ProviderType type, final ProviderTypeStatus status) { this.type = type; view.setProviderTypeName(getDisplayableProviderTypeName(type)); view.setImage(getImageURL(type.getKey())); if (status.equals(ProviderTypeStatus.ENABLED)) { view.disable(); } }
ProviderTypeItemPresenter extends AbstractHasContentChangeHandlers { public void setup(final ProviderType type, final ProviderTypeStatus status) { this.type = type; view.setProviderTypeName(getDisplayableProviderTypeName(type)); view.setImage(getImageURL(type.getKey())); if (status.equals(ProviderTypeStatus.ENABLED)) { view.disable(); } } }
ProviderTypeItemPresenter extends AbstractHasContentChangeHandlers { public void setup(final ProviderType type, final ProviderTypeStatus status) { this.type = type; view.setProviderTypeName(getDisplayableProviderTypeName(type)); view.setImage(getImageURL(type.getKey())); if (status.equals(ProviderTypeStatus.ENABLED)) { view.disable(); } } @Inject  ProviderTypeItemPresenter(final View view,
                                     final ClientProviderHandlerRegistry handlerRegistry); }
ProviderTypeItemPresenter extends AbstractHasContentChangeHandlers { public void setup(final ProviderType type, final ProviderTypeStatus status) { this.type = type; view.setProviderTypeName(getDisplayableProviderTypeName(type)); view.setImage(getImageURL(type.getKey())); if (status.equals(ProviderTypeStatus.ENABLED)) { view.disable(); } } @Inject  ProviderTypeItemPresenter(final View view,
                                     final ClientProviderHandlerRegistry handlerRegistry); @PostConstruct void init(); void setup(final ProviderType type,
                      final ProviderTypeStatus status); ProviderType getProviderType(); boolean isSelected(); IsElement getView(); }
ProviderTypeItemPresenter extends AbstractHasContentChangeHandlers { public void setup(final ProviderType type, final ProviderTypeStatus status) { this.type = type; view.setProviderTypeName(getDisplayableProviderTypeName(type)); view.setImage(getImageURL(type.getKey())); if (status.equals(ProviderTypeStatus.ENABLED)) { view.disable(); } } @Inject  ProviderTypeItemPresenter(final View view,
                                     final ClientProviderHandlerRegistry handlerRegistry); @PostConstruct void init(); void setup(final ProviderType type,
                      final ProviderTypeStatus status); ProviderType getProviderType(); boolean isSelected(); IsElement getView();  }