target
stringlengths
20
113k
src_fm
stringlengths
11
86.3k
src_fm_fc
stringlengths
21
86.4k
src_fm_fc_co
stringlengths
30
86.4k
src_fm_fc_ms
stringlengths
42
86.8k
src_fm_fc_ms_ff
stringlengths
43
86.8k
@Test public void testDelete() { presenter.delete(); verify( view ).delete(); }
public void delete() { view.delete(); }
ContainerCardPresenter { public void delete() { view.delete(); } }
ContainerCardPresenter { public void delete() { view.delete(); } @Inject ContainerCardPresenter( final View view, final ManagedInstance<Object> presenterProvider, final Event<ServerInstanceSelected> remoteServerSelectedEvent ); }
ContainerCardPresenter { public void delete() { view.delete(); } @Inject ContainerCardPresenter( final View view, final ManagedInstance<Object> presenterProvider, final Event<ServerInstanceSelected> remoteServerSelectedEvent ); View getView(); void ...
ContainerCardPresenter { public void delete() { view.delete(); } @Inject ContainerCardPresenter( final View view, final ManagedInstance<Object> presenterProvider, final Event<ServerInstanceSelected> remoteServerSelectedEvent ); View getView(); void ...
@Test public void testSetup() { final LinkTitlePresenter linkTitlePresenter = spy( new LinkTitlePresenter( mock( LinkTitlePresenter.View.class ) ) ); when( linkTitlePresenterProvider.get() ).thenReturn( linkTitlePresenter ); final BodyPresenter bodyPresenter = mock( BodyPresenter.class ); when( bodyPresenterProvider.ge...
public void setup( final ServerInstanceKey serverInstanceKey, final Container container ) { linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); bodyPresenter = presenterProvider.select( BodyPresenter.class ).get(); footerPresenter = presenterProvider.select( FooterPresenter.class ).get(); u...
ContainerCardPresenter { public void setup( final ServerInstanceKey serverInstanceKey, final Container container ) { linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); bodyPresenter = presenterProvider.select( BodyPresenter.class ).get(); footerPresenter = presenterProvider.select( FooterP...
ContainerCardPresenter { public void setup( final ServerInstanceKey serverInstanceKey, final Container container ) { linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); bodyPresenter = presenterProvider.select( BodyPresenter.class ).get(); footerPresenter = presenterProvider.select( FooterP...
ContainerCardPresenter { public void setup( final ServerInstanceKey serverInstanceKey, final Container container ) { linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); bodyPresenter = presenterProvider.select( BodyPresenter.class ).get(); footerPresenter = presenterProvider.select( FooterP...
ContainerCardPresenter { public void setup( final ServerInstanceKey serverInstanceKey, final Container container ) { linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); bodyPresenter = presenterProvider.select( BodyPresenter.class ).get(); footerPresenter = presenterProvider.select( FooterP...
@Test public void testInit() { presenter.init(); verify( view ).init( presenter ); assertEquals( view, presenter.getView() ); }
@PostConstruct public void init() { view.init(this); }
ContainerStatusEmptyPresenter { @PostConstruct public void init() { view.init(this); } }
ContainerStatusEmptyPresenter { @PostConstruct public void init() { view.init(this); } @Inject ContainerStatusEmptyPresenter(final View view, final Event<RefreshRemoteServers> refreshRemoteServersEvent); }
ContainerStatusEmptyPresenter { @PostConstruct public void init() { view.init(this); } @Inject ContainerStatusEmptyPresenter(final View view, final Event<RefreshRemoteServers> refreshRemoteServersEvent); @PostConstruct void init(); View getView(); void setup(final ContainerSpec...
ContainerStatusEmptyPresenter { @PostConstruct public void init() { view.init(this); } @Inject ContainerStatusEmptyPresenter(final View view, final Event<RefreshRemoteServers> refreshRemoteServersEvent); @PostConstruct void init(); View getView(); void setup(final ContainerSpec...
@Test public void testRefresh() { final ContainerSpecKey containerSpecKey = new ContainerSpecKey( "id", "name", new ServerTemplateKey() ); presenter.setup( containerSpecKey ); presenter.refresh(); final ArgumentCaptor<RefreshRemoteServers> refreshRemoteServersCaptor = ArgumentCaptor.forClass( RefreshRemoteServers.class...
public void refresh() { refreshRemoteServersEvent.fire(new RefreshRemoteServers(containerSpecKey)); }
ContainerStatusEmptyPresenter { public void refresh() { refreshRemoteServersEvent.fire(new RefreshRemoteServers(containerSpecKey)); } }
ContainerStatusEmptyPresenter { public void refresh() { refreshRemoteServersEvent.fire(new RefreshRemoteServers(containerSpecKey)); } @Inject ContainerStatusEmptyPresenter(final View view, final Event<RefreshRemoteServers> refreshRemoteServersEvent); }
ContainerStatusEmptyPresenter { public void refresh() { refreshRemoteServersEvent.fire(new RefreshRemoteServers(containerSpecKey)); } @Inject ContainerStatusEmptyPresenter(final View view, final Event<RefreshRemoteServers> refreshRemoteServersEvent); @PostConstruct void init();...
ContainerStatusEmptyPresenter { public void refresh() { refreshRemoteServersEvent.fire(new RefreshRemoteServers(containerSpecKey)); } @Inject ContainerStatusEmptyPresenter(final View view, final Event<RefreshRemoteServers> refreshRemoteServersEvent); @PostConstruct void init();...
@Test public void testInit() { presenter.init(); verify( view ).init( presenter ); assertEquals( view, presenter.getView() ); }
@PostConstruct public void init() { view.init(this); }
ServerContainerEmptyPresenter { @PostConstruct public void init() { view.init(this); } }
ServerContainerEmptyPresenter { @PostConstruct public void init() { view.init(this); } @Inject ServerContainerEmptyPresenter(final View view, final Event<AddNewContainer> addNewContainerEvent); }
ServerContainerEmptyPresenter { @PostConstruct public void init() { view.init(this); } @Inject ServerContainerEmptyPresenter(final View view, final Event<AddNewContainer> addNewContainerEvent); @PostConstruct void init(); View getView(); void setTemplate(final ServerTemplate se...
ServerContainerEmptyPresenter { @PostConstruct public void init() { view.init(this); } @Inject ServerContainerEmptyPresenter(final View view, final Event<AddNewContainer> addNewContainerEvent); @PostConstruct void init(); View getView(); void setTemplate(final ServerTemplate se...
@Test public void testTemplate() { final ServerTemplate template = new ServerTemplate( "id", "name" ); presenter.setTemplate( template ); verify( view ).setTemplateName( template.getName() ); }
public void setTemplate(final ServerTemplate serverTemplate) { this.serverTemplate = checkNotNull("serverTemplate", serverTemplate); view.setTemplateName(serverTemplate.getName()); }
ServerContainerEmptyPresenter { public void setTemplate(final ServerTemplate serverTemplate) { this.serverTemplate = checkNotNull("serverTemplate", serverTemplate); view.setTemplateName(serverTemplate.getName()); } }
ServerContainerEmptyPresenter { public void setTemplate(final ServerTemplate serverTemplate) { this.serverTemplate = checkNotNull("serverTemplate", serverTemplate); view.setTemplateName(serverTemplate.getName()); } @Inject ServerContainerEmptyPresenter(final View view, final Ev...
ServerContainerEmptyPresenter { public void setTemplate(final ServerTemplate serverTemplate) { this.serverTemplate = checkNotNull("serverTemplate", serverTemplate); view.setTemplateName(serverTemplate.getName()); } @Inject ServerContainerEmptyPresenter(final View view, final Ev...
ServerContainerEmptyPresenter { public void setTemplate(final ServerTemplate serverTemplate) { this.serverTemplate = checkNotNull("serverTemplate", serverTemplate); view.setTemplateName(serverTemplate.getName()); } @Inject ServerContainerEmptyPresenter(final View view, final Ev...
@Test public void testAddContainer() { presenter.addContainer(); verify( addNewContainerEvent ).fire( any( AddNewContainer.class ) ); }
public void addContainer() { addNewContainerEvent.fire(new AddNewContainer(serverTemplate)); }
ServerContainerEmptyPresenter { public void addContainer() { addNewContainerEvent.fire(new AddNewContainer(serverTemplate)); } }
ServerContainerEmptyPresenter { public void addContainer() { addNewContainerEvent.fire(new AddNewContainer(serverTemplate)); } @Inject ServerContainerEmptyPresenter(final View view, final Event<AddNewContainer> addNewContainerEvent); }
ServerContainerEmptyPresenter { public void addContainer() { addNewContainerEvent.fire(new AddNewContainer(serverTemplate)); } @Inject ServerContainerEmptyPresenter(final View view, final Event<AddNewContainer> addNewContainerEvent); @PostConstruct void init(); View getView(); ...
ServerContainerEmptyPresenter { public void addContainer() { addNewContainerEvent.fire(new AddNewContainer(serverTemplate)); } @Inject ServerContainerEmptyPresenter(final View view, final Event<AddNewContainer> addNewContainerEvent); @PostConstruct void init(); View getView(); ...
@Test public void testGraphCommandExecuteWithNoColumns() { final Command<GraphCommandExecutionContext, RuleViolation> c = command.newGraphCommand(handler); assertEquals(GraphCommandResultBuilder.SUCCESS, c.execute(gce)); assertEquals(0, relation.getRow().size()); }
@Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler) { return new AbstractGraphCommand() { @Override protected CommandResult<RuleViolation> check(final GraphCommandExecutionContext gce) { return GraphCommandResultBuilder.SUCCESS; } @Override publi...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler)...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler)...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler)...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler)...
@Test public void testInit() { presenter.init(); verify(view).init(presenter); assertEquals(view, presenter.getView()); }
@PostConstruct public void init() { view.init(this); }
ContainerRulesConfigPresenter { @PostConstruct public void init() { view.init(this); } }
ContainerRulesConfigPresenter { @PostConstruct public void init() { view.init(this); } @Inject ContainerRulesConfigPresenter(final Logger logger, final View view, final Caller<RuleCapabilitiesService> ruleCapabilitiesService, ...
ContainerRulesConfigPresenter { @PostConstruct public void init() { view.init(this); } @Inject ContainerRulesConfigPresenter(final Logger logger, final View view, final Caller<RuleCapabilitiesService> ruleCapabilitiesService, ...
ContainerRulesConfigPresenter { @PostConstruct public void init() { view.init(this); } @Inject ContainerRulesConfigPresenter(final Logger logger, final View view, final Caller<RuleCapabilitiesService> ruleCapabilitiesService, ...
@Test public void testSetup() { when(ruleConfig.getScannerStatus()).thenReturn(KieScannerStatus.STOPPED); when(ruleConfig.getPollInterval()).thenReturn(null); releaseId.setVersion("1.x"); presenter.setup(containerSpec, ruleConfig); verify(view).setContent(eq(""), eq("1.x"), eq(State.ENABLED), eq(State.DISABLED), eq(Sta...
public void setup(final ContainerSpec containerSpec, final RuleConfig ruleConfig) { this.containerSpec = checkNotNull("containerSpec", containerSpec); setRuleConfig(ruleConfig, containerSpec.getReleasedId().getVersion()); }
ContainerRulesConfigPresenter { public void setup(final ContainerSpec containerSpec, final RuleConfig ruleConfig) { this.containerSpec = checkNotNull("containerSpec", containerSpec); setRuleConfig(ruleConfig, containerSpec.getReleasedId().getVersion()); } }
ContainerRulesConfigPresenter { public void setup(final ContainerSpec containerSpec, final RuleConfig ruleConfig) { this.containerSpec = checkNotNull("containerSpec", containerSpec); setRuleConfig(ruleConfig, containerSpec.getReleasedId().getVersion()); } @Inject ContainerRulesConfigPresenter(final Logger logger, ...
ContainerRulesConfigPresenter { public void setup(final ContainerSpec containerSpec, final RuleConfig ruleConfig) { this.containerSpec = checkNotNull("containerSpec", containerSpec); setRuleConfig(ruleConfig, containerSpec.getReleasedId().getVersion()); } @Inject ContainerRulesConfigPresenter(final Logger logger, ...
ContainerRulesConfigPresenter { public void setup(final ContainerSpec containerSpec, final RuleConfig ruleConfig) { this.containerSpec = checkNotNull("containerSpec", containerSpec); setRuleConfig(ruleConfig, containerSpec.getReleasedId().getVersion()); } @Inject ContainerRulesConfigPresenter(final Logger logger, ...
@Test public void testVersion() { final String version = "1.0"; presenter.setVersion(version); verify(view).setVersion(version); }
public void setVersion(final String version) { this.view.setVersion(version); }
ContainerRulesConfigPresenter { public void setVersion(final String version) { this.view.setVersion(version); } }
ContainerRulesConfigPresenter { public void setVersion(final String version) { this.view.setVersion(version); } @Inject ContainerRulesConfigPresenter(final Logger logger, final View view, final Caller<RuleCapabilitiesService> ruleCapabil...
ContainerRulesConfigPresenter { public void setVersion(final String version) { this.view.setVersion(version); } @Inject ContainerRulesConfigPresenter(final Logger logger, final View view, final Caller<RuleCapabilitiesService> ruleCapabil...
ContainerRulesConfigPresenter { public void setVersion(final String version) { this.view.setVersion(version); } @Inject ContainerRulesConfigPresenter(final Logger logger, final View view, final Caller<RuleCapabilitiesService> ruleCapabil...
@Test public void testUpgrade() { final String version = "1.0"; presenter.setup(containerSpec, ruleConfig); presenter.upgrade(version); verify(view).disableActions(); final ArgumentCaptor<ReleaseId> releaseIdCaptor = ArgumentCaptor.forClass(ReleaseId.class); verify(ruleCapabilitiesService).upgradeContainer(eq(container...
public void upgrade(final String version) { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { if (version != null && !version.isEmpty() && version.compareTo(containerSpec.getReleasedId().getVersion()) == 0) { notification.fire(new Noti...
ContainerRulesConfigPresenter { public void upgrade(final String version) { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { if (version != null && !version.isEmpty() && version.compareTo(containerSpec.getReleasedId().getVersion()) ==...
ContainerRulesConfigPresenter { public void upgrade(final String version) { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { if (version != null && !version.isEmpty() && version.compareTo(containerSpec.getReleasedId().getVersion()) ==...
ContainerRulesConfigPresenter { public void upgrade(final String version) { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { if (version != null && !version.isEmpty() && version.compareTo(containerSpec.getReleasedId().getVersion()) ==...
ContainerRulesConfigPresenter { public void upgrade(final String version) { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { if (version != null && !version.isEmpty() && version.compareTo(containerSpec.getReleasedId().getVersion()) ==...
@Test public void testStopScanner() { presenter.stopScanner(); verify(view).disableActions(); verify(view).setStartScannerState(State.ENABLED); verify(view).setStopScannerState(State.DISABLED); verify(view).setScanNowState(State.ENABLED); verify(view).setUpgradeState(State.ENABLED); }
public void stopScanner() { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { scannerStatus = KieScannerStatus.STOPPED; setScannerStatus(); updateViewState(); } }, new ErrorCallback<Object>() { @Override public boolean error(final Obje...
ContainerRulesConfigPresenter { public void stopScanner() { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { scannerStatus = KieScannerStatus.STOPPED; setScannerStatus(); updateViewState(); } }, new ErrorCallback<Object>() { @Override...
ContainerRulesConfigPresenter { public void stopScanner() { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { scannerStatus = KieScannerStatus.STOPPED; setScannerStatus(); updateViewState(); } }, new ErrorCallback<Object>() { @Override...
ContainerRulesConfigPresenter { public void stopScanner() { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { scannerStatus = KieScannerStatus.STOPPED; setScannerStatus(); updateViewState(); } }, new ErrorCallback<Object>() { @Override...
ContainerRulesConfigPresenter { public void stopScanner() { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { scannerStatus = KieScannerStatus.STOPPED; setScannerStatus(); updateViewState(); } }, new ErrorCallback<Object>() { @Override...
@Test public void testScanNow() { presenter.scanNow(); verify(view).disableActions(); verify(view).setStartScannerState(State.ENABLED); verify(view).setStopScannerState(State.DISABLED); verify(view).setScanNowState(State.ENABLED); verify(view).setUpgradeState(State.ENABLED); }
public void scanNow() { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { scannerStatus = KieScannerStatus.STOPPED; setScannerStatus(); updateViewState(); } }, new ErrorCallback<Object>() { @Override public boolean error(final Object o...
ContainerRulesConfigPresenter { public void scanNow() { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { scannerStatus = KieScannerStatus.STOPPED; setScannerStatus(); updateViewState(); } }, new ErrorCallback<Object>() { @Override pub...
ContainerRulesConfigPresenter { public void scanNow() { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { scannerStatus = KieScannerStatus.STOPPED; setScannerStatus(); updateViewState(); } }, new ErrorCallback<Object>() { @Override pub...
ContainerRulesConfigPresenter { public void scanNow() { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { scannerStatus = KieScannerStatus.STOPPED; setScannerStatus(); updateViewState(); } }, new ErrorCallback<Object>() { @Override pub...
ContainerRulesConfigPresenter { public void scanNow() { view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { scannerStatus = KieScannerStatus.STOPPED; setScannerStatus(); updateViewState(); } }, new ErrorCallback<Object>() { @Override pub...
@Test public void testStartScannerEmpty() { presenter.startScanner("", ContainerRulesConfigPresenter.MS); verify(view).errorOnInterval(); }
public void startScanner(final String interval, final String timeUnit) { if (interval.trim().isEmpty()) { view.errorOnInterval(); return; } Long actualInterval = calculateInterval(Long.valueOf(checkNotEmpty("interval", interval)), timeUnit); view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>()...
ContainerRulesConfigPresenter { public void startScanner(final String interval, final String timeUnit) { if (interval.trim().isEmpty()) { view.errorOnInterval(); return; } Long actualInterval = calculateInterval(Long.valueOf(checkNotEmpty("interval", interval)), timeUnit); view.disableActions(); ruleCapabilitiesService...
ContainerRulesConfigPresenter { public void startScanner(final String interval, final String timeUnit) { if (interval.trim().isEmpty()) { view.errorOnInterval(); return; } Long actualInterval = calculateInterval(Long.valueOf(checkNotEmpty("interval", interval)), timeUnit); view.disableActions(); ruleCapabilitiesService...
ContainerRulesConfigPresenter { public void startScanner(final String interval, final String timeUnit) { if (interval.trim().isEmpty()) { view.errorOnInterval(); return; } Long actualInterval = calculateInterval(Long.valueOf(checkNotEmpty("interval", interval)), timeUnit); view.disableActions(); ruleCapabilitiesService...
ContainerRulesConfigPresenter { public void startScanner(final String interval, final String timeUnit) { if (interval.trim().isEmpty()) { view.errorOnInterval(); return; } Long actualInterval = calculateInterval(Long.valueOf(checkNotEmpty("interval", interval)), timeUnit); view.disableActions(); ruleCapabilitiesService...
@Test public void testStartScanner() { presenter.setup(containerSpec, ruleConfig); final String interval = "1"; presenter.startScanner(interval, ContainerRulesConfigPresenter.MS); verify(view).disableActions(); verify(ruleCapabilitiesService).startScanner(eq(containerSpec), eq(Long.valueOf(interval))); verify(view).set...
public void startScanner(final String interval, final String timeUnit) { if (interval.trim().isEmpty()) { view.errorOnInterval(); return; } Long actualInterval = calculateInterval(Long.valueOf(checkNotEmpty("interval", interval)), timeUnit); view.disableActions(); ruleCapabilitiesService.call(new RemoteCallback<Void>()...
ContainerRulesConfigPresenter { public void startScanner(final String interval, final String timeUnit) { if (interval.trim().isEmpty()) { view.errorOnInterval(); return; } Long actualInterval = calculateInterval(Long.valueOf(checkNotEmpty("interval", interval)), timeUnit); view.disableActions(); ruleCapabilitiesService...
ContainerRulesConfigPresenter { public void startScanner(final String interval, final String timeUnit) { if (interval.trim().isEmpty()) { view.errorOnInterval(); return; } Long actualInterval = calculateInterval(Long.valueOf(checkNotEmpty("interval", interval)), timeUnit); view.disableActions(); ruleCapabilitiesService...
ContainerRulesConfigPresenter { public void startScanner(final String interval, final String timeUnit) { if (interval.trim().isEmpty()) { view.errorOnInterval(); return; } Long actualInterval = calculateInterval(Long.valueOf(checkNotEmpty("interval", interval)), timeUnit); view.disableActions(); ruleCapabilitiesService...
ContainerRulesConfigPresenter { public void startScanner(final String interval, final String timeUnit) { if (interval.trim().isEmpty()) { view.errorOnInterval(); return; } Long actualInterval = calculateInterval(Long.valueOf(checkNotEmpty("interval", interval)), timeUnit); view.disableActions(); ruleCapabilitiesService...
@Test public void testOnConfigUpdate() { final RuleConfigUpdated ruleConfigUpdated = new RuleConfigUpdated(); ruleConfigUpdated.setContainerSpecKey(containerSpec); ruleConfigUpdated.setRuleConfig(ruleConfig); presenter.setup(containerSpec, ruleConfig); presenter.onConfigUpdate(ruleConfigUpdated); verify(view, times(2))...
public void onConfigUpdate(@Observes final RuleConfigUpdated configUpdated) { if (configUpdated != null && configUpdated.getContainerSpecKey() != null && configUpdated.getContainerSpecKey().equals(containerSpec)) { setup(containerSpec, configUpdated.getRuleConfig()); } else { logger.warn("Illegal event argument."); } }
ContainerRulesConfigPresenter { public void onConfigUpdate(@Observes final RuleConfigUpdated configUpdated) { if (configUpdated != null && configUpdated.getContainerSpecKey() != null && configUpdated.getContainerSpecKey().equals(containerSpec)) { setup(containerSpec, configUpdated.getRuleConfig()); } else { logger.warn...
ContainerRulesConfigPresenter { public void onConfigUpdate(@Observes final RuleConfigUpdated configUpdated) { if (configUpdated != null && configUpdated.getContainerSpecKey() != null && configUpdated.getContainerSpecKey().equals(containerSpec)) { setup(containerSpec, configUpdated.getRuleConfig()); } else { logger.warn...
ContainerRulesConfigPresenter { public void onConfigUpdate(@Observes final RuleConfigUpdated configUpdated) { if (configUpdated != null && configUpdated.getContainerSpecKey() != null && configUpdated.getContainerSpecKey().equals(containerSpec)) { setup(containerSpec, configUpdated.getRuleConfig()); } else { logger.warn...
ContainerRulesConfigPresenter { public void onConfigUpdate(@Observes final RuleConfigUpdated configUpdated) { if (configUpdated != null && configUpdated.getContainerSpecKey() != null && configUpdated.getContainerSpecKey().equals(containerSpec)) { setup(containerSpec, configUpdated.getRuleConfig()); } else { logger.warn...
@Test public void testOnRuleConfigUpdate() { final RuleConfigUpdated ruleConfigUpdated = new RuleConfigUpdated(); ruleConfigUpdated.setRuleConfig(ruleConfig); ruleConfigUpdated.setReleasedId(releaseId); final Long poolInterval = 1l; when(ruleConfig.getPollInterval()).thenReturn(poolInterval); presenter.onRuleConfigUpda...
public void onRuleConfigUpdate(@Observes final RuleConfigUpdated configUpdate) { if (configUpdate != null && configUpdate.getRuleConfig() != null && configUpdate.getReleasedId() != null) { setRuleConfig(configUpdate.getRuleConfig(), configUpdate.getReleasedId().getVersion()); } else { logger.warn("Illegal event argumen...
ContainerRulesConfigPresenter { public void onRuleConfigUpdate(@Observes final RuleConfigUpdated configUpdate) { if (configUpdate != null && configUpdate.getRuleConfig() != null && configUpdate.getReleasedId() != null) { setRuleConfig(configUpdate.getRuleConfig(), configUpdate.getReleasedId().getVersion()); } else { lo...
ContainerRulesConfigPresenter { public void onRuleConfigUpdate(@Observes final RuleConfigUpdated configUpdate) { if (configUpdate != null && configUpdate.getRuleConfig() != null && configUpdate.getReleasedId() != null) { setRuleConfig(configUpdate.getRuleConfig(), configUpdate.getReleasedId().getVersion()); } else { lo...
ContainerRulesConfigPresenter { public void onRuleConfigUpdate(@Observes final RuleConfigUpdated configUpdate) { if (configUpdate != null && configUpdate.getRuleConfig() != null && configUpdate.getReleasedId() != null) { setRuleConfig(configUpdate.getRuleConfig(), configUpdate.getReleasedId().getVersion()); } else { lo...
ContainerRulesConfigPresenter { public void onRuleConfigUpdate(@Observes final RuleConfigUpdated configUpdate) { if (configUpdate != null && configUpdate.getRuleConfig() != null && configUpdate.getReleasedId() != null) { setRuleConfig(configUpdate.getRuleConfig(), configUpdate.getReleasedId().getVersion()); } else { lo...
@Test public void testGraphCommandUndoWithColumns() { relation.getColumn().add(new InformationItem()); final LiteralExpression literalExpression = new LiteralExpression(); literalExpression.getText().setValue(VALUE); relation.getRow().get(0).getExpression().add(HasExpression.wrap(rowList, literalExpression)); final Com...
@Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler) { return new AbstractGraphCommand() { @Override protected CommandResult<RuleViolation> check(final GraphCommandExecutionContext gce) { return GraphCommandResultBuilder.SUCCESS; } @Override publi...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler)...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler)...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler)...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler)...
@Test public void testInit() { presenter.init(); verify( view ).init( presenter ); verify( view ).setProcessConfigView( processConfigPresenterView ); assertEquals( view, presenter.getView() ); }
@PostConstruct public void init() { view.init( this ); view.setProcessConfigView( processConfigPresenter.getView() ); }
ContainerProcessConfigPresenter { @PostConstruct public void init() { view.init( this ); view.setProcessConfigView( processConfigPresenter.getView() ); } }
ContainerProcessConfigPresenter { @PostConstruct public void init() { view.init( this ); view.setProcessConfigView( processConfigPresenter.getView() ); } @Inject ContainerProcessConfigPresenter( final View view, final ProcessConfigPresenter processConfigPresenter, ...
ContainerProcessConfigPresenter { @PostConstruct public void init() { view.init( this ); view.setProcessConfigView( processConfigPresenter.getView() ); } @Inject ContainerProcessConfigPresenter( final View view, final ProcessConfigPresenter processConfigPresenter, ...
ContainerProcessConfigPresenter { @PostConstruct public void init() { view.init( this ); view.setProcessConfigView( processConfigPresenter.getView() ); } @Inject ContainerProcessConfigPresenter( final View view, final ProcessConfigPresenter processConfigPresenter, ...
@Test public void testDisable() { presenter.disable(); verify( view ).disable(); }
public void disable() { view.disable(); }
ContainerProcessConfigPresenter { public void disable() { view.disable(); } }
ContainerProcessConfigPresenter { public void disable() { view.disable(); } @Inject ContainerProcessConfigPresenter( final View view, final ProcessConfigPresenter processConfigPresenter, final Caller<SpecManagementService> specMana...
ContainerProcessConfigPresenter { public void disable() { view.disable(); } @Inject ContainerProcessConfigPresenter( final View view, final ProcessConfigPresenter processConfigPresenter, final Caller<SpecManagementService> specMana...
ContainerProcessConfigPresenter { public void disable() { view.disable(); } @Inject ContainerProcessConfigPresenter( final View view, final ProcessConfigPresenter processConfigPresenter, final Caller<SpecManagementService> specMana...
@Test public void testCancel() { presenter.cancel(); verify( view ).enableActions(); verify( processConfigPresenter ).setProcessConfig( processConfig ); }
public void cancel() { setupView( processConfigPresenter.getProcessConfig() ); }
ContainerProcessConfigPresenter { public void cancel() { setupView( processConfigPresenter.getProcessConfig() ); } }
ContainerProcessConfigPresenter { public void cancel() { setupView( processConfigPresenter.getProcessConfig() ); } @Inject ContainerProcessConfigPresenter( final View view, final ProcessConfigPresenter processConfigPresenter, final...
ContainerProcessConfigPresenter { public void cancel() { setupView( processConfigPresenter.getProcessConfig() ); } @Inject ContainerProcessConfigPresenter( final View view, final ProcessConfigPresenter processConfigPresenter, final...
ContainerProcessConfigPresenter { public void cancel() { setupView( processConfigPresenter.getProcessConfig() ); } @Inject ContainerProcessConfigPresenter( final View view, final ProcessConfigPresenter processConfigPresenter, final...
@Test public void testSave() { final String templateKey = "templateKey"; final String containerKey = "containerKey"; when( serverTemplateKey.getId() ).thenReturn( templateKey ); when( containerSpecKey.getId() ).thenReturn( containerKey ); when( view.getSaveSuccessMessage() ).thenReturn( "SUCCESS" ); presenter.save(); v...
public void save() { view.disableActions(); final ProcessConfig newProcessConfig = processConfigPresenter.buildProcessConfig(); specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void containerConfig ) { notification.fire( new NotificationEvent( view.getSaveSuccessMessage(), ...
ContainerProcessConfigPresenter { public void save() { view.disableActions(); final ProcessConfig newProcessConfig = processConfigPresenter.buildProcessConfig(); specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void containerConfig ) { notification.fire( new NotificationEve...
ContainerProcessConfigPresenter { public void save() { view.disableActions(); final ProcessConfig newProcessConfig = processConfigPresenter.buildProcessConfig(); specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void containerConfig ) { notification.fire( new NotificationEve...
ContainerProcessConfigPresenter { public void save() { view.disableActions(); final ProcessConfig newProcessConfig = processConfigPresenter.buildProcessConfig(); specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void containerConfig ) { notification.fire( new NotificationEve...
ContainerProcessConfigPresenter { public void save() { view.disableActions(); final ProcessConfig newProcessConfig = processConfigPresenter.buildProcessConfig(); specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void containerConfig ) { notification.fire( new NotificationEve...
@Test public void testSaveError() { final String templateKey = "templateKey"; final String containerKey = "containerKey"; when( serverTemplateKey.getId() ).thenReturn( templateKey ); when( containerSpecKey.getId() ).thenReturn( containerKey ); when( view.getSaveErrorMessage() ).thenReturn( "ERROR" ); doThrow( new Runti...
public void save() { view.disableActions(); final ProcessConfig newProcessConfig = processConfigPresenter.buildProcessConfig(); specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void containerConfig ) { notification.fire( new NotificationEvent( view.getSaveSuccessMessage(), ...
ContainerProcessConfigPresenter { public void save() { view.disableActions(); final ProcessConfig newProcessConfig = processConfigPresenter.buildProcessConfig(); specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void containerConfig ) { notification.fire( new NotificationEve...
ContainerProcessConfigPresenter { public void save() { view.disableActions(); final ProcessConfig newProcessConfig = processConfigPresenter.buildProcessConfig(); specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void containerConfig ) { notification.fire( new NotificationEve...
ContainerProcessConfigPresenter { public void save() { view.disableActions(); final ProcessConfig newProcessConfig = processConfigPresenter.buildProcessConfig(); specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void containerConfig ) { notification.fire( new NotificationEve...
ContainerProcessConfigPresenter { public void save() { view.disableActions(); final ProcessConfig newProcessConfig = processConfigPresenter.buildProcessConfig(); specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void containerConfig ) { notification.fire( new NotificationEve...
@Test public void testSetup() { final ContainerSpecKey containerSpecKey = new ContainerSpecKey( "id", "container-name", new ServerTemplateKey( "template-id", "template-name" ) ); final ProcessConfig processConfig = new ProcessConfig( RuntimeStrategy.PER_REQUEST.toString(), "kbase", "ksession", MergeMode.KEEP_ALL.toStri...
public void setup( final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig ) { this.processConfigPresenter.setup( containerSpecKey, processConfig ); setupView( processConfig ); }
ContainerProcessConfigPresenter { public void setup( final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig ) { this.processConfigPresenter.setup( containerSpecKey, processConfig ); setupView( processConfig ); } }
ContainerProcessConfigPresenter { public void setup( final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig ) { this.processConfigPresenter.setup( containerSpecKey, processConfig ); setupView( processConfig ); } @Inject ContainerProcessConfigPresenter( final View view, ...
ContainerProcessConfigPresenter { public void setup( final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig ) { this.processConfigPresenter.setup( containerSpecKey, processConfig ); setupView( processConfig ); } @Inject ContainerProcessConfigPresenter( final View view, ...
ContainerProcessConfigPresenter { public void setup( final ContainerSpecKey containerSpecKey, final ProcessConfig processConfig ) { this.processConfigPresenter.setup( containerSpecKey, processConfig ); setupView( processConfig ); } @Inject ContainerProcessConfigPresenter( final View view, ...
@Test public void testOnInstanceUpdatedWhenContainerSpecServerTemplateNotEqualServerInstanceUpdatedServerTemplate() { ServerInstanceUpdated serverInstanceUpdated = mock(ServerInstanceUpdated.class); ServerInstance serverInstance = mock(ServerInstance.class); when(serverInstanceUpdated.getServerInstance()).thenReturn(se...
public void onInstanceUpdated(@Observes ServerInstanceUpdated instanceUpdated) { if (instanceUpdated != null && containerSpec != null && containerSpec.getServerTemplateKey().getId().equals(instanceUpdated.getServerInstance().getServerTemplateId())) { load(containerSpec); } }
ContainerPresenter { public void onInstanceUpdated(@Observes ServerInstanceUpdated instanceUpdated) { if (instanceUpdated != null && containerSpec != null && containerSpec.getServerTemplateKey().getId().equals(instanceUpdated.getServerInstance().getServerTemplateId())) { load(containerSpec); } } }
ContainerPresenter { public void onInstanceUpdated(@Observes ServerInstanceUpdated instanceUpdated) { if (instanceUpdated != null && containerSpec != null && containerSpec.getServerTemplateKey().getId().equals(instanceUpdated.getServerInstance().getServerTemplateId())) { load(containerSpec); } } @Inject ContainerPrese...
ContainerPresenter { public void onInstanceUpdated(@Observes ServerInstanceUpdated instanceUpdated) { if (instanceUpdated != null && containerSpec != null && containerSpec.getServerTemplateKey().getId().equals(instanceUpdated.getServerInstance().getServerTemplateId())) { load(containerSpec); } } @Inject ContainerPrese...
ContainerPresenter { public void onInstanceUpdated(@Observes ServerInstanceUpdated instanceUpdated) { if (instanceUpdated != null && containerSpec != null && containerSpec.getServerTemplateKey().getId().equals(instanceUpdated.getServerInstance().getServerTemplateId())) { load(containerSpec); } } @Inject ContainerPrese...
@Test public void testInit() { presenter.init(); verify(view).init(presenter); assertEquals(view, presenter.getView()); verify(view).setStatus(containerRemoteStatusPresenter.getView()); verify(view).setRulesConfig(containerRulesConfigPresenter.getView()); verify(view).setProcessConfig(containerProcessConfigPresenter.ge...
@PostConstruct public void init() { view.init(this); view.setStatus(containerRemoteStatusPresenter.getView()); view.setRulesConfig(containerRulesConfigPresenter.getView()); view.setProcessConfig(containerProcessConfigPresenter.getView()); }
ContainerPresenter { @PostConstruct public void init() { view.init(this); view.setStatus(containerRemoteStatusPresenter.getView()); view.setRulesConfig(containerRulesConfigPresenter.getView()); view.setProcessConfig(containerProcessConfigPresenter.getView()); } }
ContainerPresenter { @PostConstruct public void init() { view.init(this); view.setStatus(containerRemoteStatusPresenter.getView()); view.setRulesConfig(containerRulesConfigPresenter.getView()); view.setProcessConfig(containerProcessConfigPresenter.getView()); } @Inject ContainerPresenter(final Logger logger, ...
ContainerPresenter { @PostConstruct public void init() { view.init(this); view.setStatus(containerRemoteStatusPresenter.getView()); view.setRulesConfig(containerRulesConfigPresenter.getView()); view.setProcessConfig(containerProcessConfigPresenter.getView()); } @Inject ContainerPresenter(final Logger logger, ...
ContainerPresenter { @PostConstruct public void init() { view.init(this); view.setStatus(containerRemoteStatusPresenter.getView()); view.setRulesConfig(containerRulesConfigPresenter.getView()); view.setProcessConfig(containerProcessConfigPresenter.getView()); } @Inject ContainerPresenter(final Logger logger, ...
@Test public void testStartContainer() { presenter.loadContainers(containerSpecData); presenter.startContainer(); verify(view).setContainerStartState(State.ENABLED); verify(view).setContainerStopState(State.DISABLED); verify(view).disableRemoveButton(); verify(view).enableToggleActivationButton(); final String errorMes...
public void startContainer() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { updateStatus(KieContainerStatus.STARTED); } }, new ErrorCallback<Object>() { @Override public boolean error(final Object o, final Throwable throwable) { notification.fire(new Noti...
ContainerPresenter { public void startContainer() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { updateStatus(KieContainerStatus.STARTED); } }, new ErrorCallback<Object>() { @Override public boolean error(final Object o, final Throwable throwable) { notif...
ContainerPresenter { public void startContainer() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { updateStatus(KieContainerStatus.STARTED); } }, new ErrorCallback<Object>() { @Override public boolean error(final Object o, final Throwable throwable) { notif...
ContainerPresenter { public void startContainer() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { updateStatus(KieContainerStatus.STARTED); } }, new ErrorCallback<Object>() { @Override public boolean error(final Object o, final Throwable throwable) { notif...
ContainerPresenter { public void startContainer() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { updateStatus(KieContainerStatus.STARTED); } }, new ErrorCallback<Object>() { @Override public boolean error(final Object o, final Throwable throwable) { notif...
@Test public void testStopContainer() { presenter.loadContainers(containerSpecData); presenter.stopContainer(); verify(view, times(2)).setContainerStartState(State.DISABLED); verify(view, times(2)).setContainerStopState(State.ENABLED); verify(view, times(2)).enableRemoveButton(); final String errorMessage = "ERROR"; wh...
public void stopContainer() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { updateStatus(KieContainerStatus.STOPPED); } }, new ErrorCallback<Object>() { @Override public boolean error(final Object o, final Throwable throwable) { notification.fire(new Notif...
ContainerPresenter { public void stopContainer() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { updateStatus(KieContainerStatus.STOPPED); } }, new ErrorCallback<Object>() { @Override public boolean error(final Object o, final Throwable throwable) { notifi...
ContainerPresenter { public void stopContainer() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { updateStatus(KieContainerStatus.STOPPED); } }, new ErrorCallback<Object>() { @Override public boolean error(final Object o, final Throwable throwable) { notifi...
ContainerPresenter { public void stopContainer() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { updateStatus(KieContainerStatus.STOPPED); } }, new ErrorCallback<Object>() { @Override public boolean error(final Object o, final Throwable throwable) { notifi...
ContainerPresenter { public void stopContainer() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { updateStatus(KieContainerStatus.STOPPED); } }, new ErrorCallback<Object>() { @Override public boolean error(final Object o, final Throwable throwable) { notifi...
@Test public void testGraphCommandUndoWithNoColumns() { final Command<GraphCommandExecutionContext, RuleViolation> c = command.newGraphCommand(handler); assertEquals(GraphCommandResultBuilder.SUCCESS, c.execute(gce)); assertEquals(GraphCommandResultBuilder.SUCCESS, c.undo(gce)); assertEquals(0, relation.getColumn().siz...
@Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler) { return new AbstractGraphCommand() { @Override protected CommandResult<RuleViolation> check(final GraphCommandExecutionContext gce) { return GraphCommandResultBuilder.SUCCESS; } @Override publi...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler)...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler)...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler)...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler)...
@Test public void testLoadContainersEmpty() { presenter.loadContainers(containerSpecData); verifyLoad(true, 1); }
public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup(content.getContainer...
ContainerPresenter { public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup...
ContainerPresenter { public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup...
ContainerPresenter { public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup...
ContainerPresenter { public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup...
@Test public void testRefresh() { when(runtimeManagementService.getContainersByContainerSpec( serverTemplateKey.getId(), containerSpec.getId())).thenReturn(containerSpecData); presenter.loadContainers(containerSpecData); presenter.refresh(); verifyLoad(true, 2); }
public void refresh() { load(containerSpec); }
ContainerPresenter { public void refresh() { load(containerSpec); } }
ContainerPresenter { public void refresh() { load(containerSpec); } @Inject ContainerPresenter(final Logger logger, final View view, final ContainerRemoteStatusPresenter containerRemoteStatusPresenter, final ContainerStatusEmptyP...
ContainerPresenter { public void refresh() { load(containerSpec); } @Inject ContainerPresenter(final Logger logger, final View view, final ContainerRemoteStatusPresenter containerRemoteStatusPresenter, final ContainerStatusEmptyP...
ContainerPresenter { public void refresh() { load(containerSpec); } @Inject ContainerPresenter(final Logger logger, final View view, final ContainerRemoteStatusPresenter containerRemoteStatusPresenter, final ContainerStatusEmptyP...
@Test public void testLoadContainers() { final Container container = new Container("containerSpecId", "containerName", new ServerInstanceKey(), Collections.<Message>emptyList(), null, null); containerSpecData.getContainers().add(container); presenter.loadContainers(containerSpecData); verifyLoad(true, 1); }
public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup(content.getContainer...
ContainerPresenter { public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup...
ContainerPresenter { public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup...
ContainerPresenter { public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup...
ContainerPresenter { public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup...
@Test public void testLoadContainersNonStoped() { final Container container = new Container("containerSpecId", "containerName", new ServerInstanceKey(), Collections.<Message>emptyList(), null, null); container.setStatus(KieContainerStatus.STARTED); containerSpecData.getContainers().add(container); presenter.loadContain...
public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup(content.getContainer...
ContainerPresenter { public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup...
ContainerPresenter { public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup...
ContainerPresenter { public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup...
ContainerPresenter { public void loadContainers(@Observes final ContainerSpecData content) { if (content != null && content.getContainerSpec() != null && content.getContainers() != null && containerSpec != null && containerSpec.getId() != null && containerSpec.getId().equals(content.getContainerSpec().getId())) { setup...
@Test public void testLoad() { when(runtimeManagementService.getContainersByContainerSpec( serverTemplateKey.getId(), containerSpec.getId())).thenReturn(containerSpecData); presenter.load(new ContainerSpecSelected(containerSpec)); verifyLoad(true, 1); }
public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } }
ContainerPresenter { public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } }
ContainerPresenter { public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } @Inject ContainerPrese...
ContainerPresenter { public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } @Inject ContainerPrese...
ContainerPresenter { public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } @Inject ContainerPrese...
@Test public void testOnRefresh() { when(runtimeManagementService.getContainersByContainerSpec( serverTemplateKey.getId(), containerSpec.getId())).thenReturn(containerSpecData); presenter.onRefresh(new RefreshRemoteServers(containerSpec)); verifyLoad(true, 1); }
public void onRefresh(@Observes final RefreshRemoteServers refresh) { if (refresh != null && refresh.getContainerSpecKey() != null) { load(refresh.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } }
ContainerPresenter { public void onRefresh(@Observes final RefreshRemoteServers refresh) { if (refresh != null && refresh.getContainerSpecKey() != null) { load(refresh.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } }
ContainerPresenter { public void onRefresh(@Observes final RefreshRemoteServers refresh) { if (refresh != null && refresh.getContainerSpecKey() != null) { load(refresh.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } @Inject ContainerPresenter(final Logger logger, ...
ContainerPresenter { public void onRefresh(@Observes final RefreshRemoteServers refresh) { if (refresh != null && refresh.getContainerSpecKey() != null) { load(refresh.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } @Inject ContainerPresenter(final Logger logger, ...
ContainerPresenter { public void onRefresh(@Observes final RefreshRemoteServers refresh) { if (refresh != null && refresh.getContainerSpecKey() != null) { load(refresh.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } @Inject ContainerPresenter(final Logger logger, ...
@Test public void testRemoveContainer() { doAnswer(new Answer() { @Override public Object answer(InvocationOnMock invocation) throws Throwable { final Command command = (Command) invocation.getArguments()[0]; if (command != null) { command.execute(); } return null; } }).when(view).confirmRemove(any(Command.class)); fin...
public void removeContainer() { view.confirmRemove(new Command() { @Override public void execute() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { notification.fire(new NotificationEvent(view.getRemoveContainerSuccessMessage(), NotificationEvent.Notificati...
ContainerPresenter { public void removeContainer() { view.confirmRemove(new Command() { @Override public void execute() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { notification.fire(new NotificationEvent(view.getRemoveContainerSuccessMessage(), Notific...
ContainerPresenter { public void removeContainer() { view.confirmRemove(new Command() { @Override public void execute() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { notification.fire(new NotificationEvent(view.getRemoveContainerSuccessMessage(), Notific...
ContainerPresenter { public void removeContainer() { view.confirmRemove(new Command() { @Override public void execute() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { notification.fire(new NotificationEvent(view.getRemoveContainerSuccessMessage(), Notific...
ContainerPresenter { public void removeContainer() { view.confirmRemove(new Command() { @Override public void execute() { specManagementService.call(new RemoteCallback<Void>() { @Override public void callback(final Void response) { notification.fire(new NotificationEvent(view.getRemoveContainerSuccessMessage(), Notific...
@Test public void testLoadWhenRuntimeManagementServiceReturnsInvalidData() { ContainerSpecData badData = new ContainerSpecData(null, null); when(runtimeManagementService.getContainersByContainerSpec(anyObject(), anyObject())).thenReturn(badData); ContainerSpecKey lookupKey = new ContainerSpecKey("dummyId", "dummyName",...
public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } }
ContainerPresenter { public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } }
ContainerPresenter { public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } @Inject ContainerPrese...
ContainerPresenter { public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } @Inject ContainerPrese...
ContainerPresenter { public void load(@Observes final ContainerSpecSelected containerSpecSelected) { if (containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null) { load(containerSpecSelected.getContainerSpecKey()); } else { logger.warn("Illegal event argument."); } } @Inject ContainerPrese...
@Test public void testUpdateStatusForStopped() { presenter.updateStatus(KieContainerStatus.STOPPED); verify(view).updateToggleActivationButton(false); }
protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButton(); break; case DEA...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
@Test public void testUpdateStatusForStarted() { presenter.updateStatus(KieContainerStatus.STARTED); verify(view).disableRemoveButton(); verify(view).setContainerStartState(State.ENABLED); verify(view).setContainerStopState(State.DISABLED); verify(view).updateToggleActivationButton(false); verify(view).enableToggleActi...
protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButton(); break; case DEA...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
@Test public void testCanvasCommandAllow() { final Command<AbstractCanvasHandler, CanvasViolation> c = command.newCanvasCommand(handler); assertEquals(CanvasCommandResultBuilder.SUCCESS, c.allow(handler)); }
@Override protected Command<AbstractCanvasHandler, CanvasViolation> newCanvasCommand(final AbstractCanvasHandler handler) { return new AbstractCanvasCommand() { @Override public CommandResult<CanvasViolation> execute(final AbstractCanvasHandler handler) { uiModel.deleteRow(uiRowIndex); updateRowNumbers(); updateParentI...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<AbstractCanvasHandler, CanvasViolation> newCanvasCommand(final AbstractCanvasHandler handler) { r...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<AbstractCanvasHandler, CanvasViolation> newCanvasCommand(final AbstractCanvasHandler handler) { r...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<AbstractCanvasHandler, CanvasViolation> newCanvasCommand(final AbstractCanvasHandler handler) { r...
DeleteRelationRowCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<AbstractCanvasHandler, CanvasViolation> newCanvasCommand(final AbstractCanvasHandler handler) { r...
@Test public void testUpdateStatusForFailed() { presenter.updateStatus(KieContainerStatus.FAILED); verify(view).enableRemoveButton(); verify(view).setContainerStartState(State.DISABLED); verify(view).setContainerStopState(State.ENABLED); verify(view).disableToggleActivationButton(); }
protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButton(); break; case DEA...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
@Test public void testUpdateStatusForDeactiveated() { presenter.updateStatus(KieContainerStatus.DEACTIVATED); verify(view).disableRemoveButton(); verify(view).setContainerStartState(State.ENABLED); verify(view).setContainerStopState(State.DISABLED); verify(view).updateToggleActivationButton(true); verify(view).enableTo...
protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButton(); break; case DEA...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
ContainerPresenter { protected void updateStatus(final KieContainerStatus status) { switch (status) { case CREATING: case STARTED: view.disableRemoveButton(); view.setContainerStartState(State.ENABLED); view.setContainerStopState(State.DISABLED); view.updateToggleActivationButton(false); view.enableToggleActivationButt...
@Test public void testInit() { assertEquals( view, presenter.getView() ); }
public org.kie.workbench.common.screens.server.management.client.container.status.card.ContainerCardPresenter.View getView() { return view; }
ContainerCardPresenter { public org.kie.workbench.common.screens.server.management.client.container.status.card.ContainerCardPresenter.View getView() { return view; } }
ContainerCardPresenter { public org.kie.workbench.common.screens.server.management.client.container.status.card.ContainerCardPresenter.View getView() { return view; } @Inject ContainerCardPresenter( final ManagedInstance<Object> presenterProvider, final org.kie.workbench.common.scree...
ContainerCardPresenter { public org.kie.workbench.common.screens.server.management.client.container.status.card.ContainerCardPresenter.View getView() { return view; } @Inject ContainerCardPresenter( final ManagedInstance<Object> presenterProvider, final org.kie.workbench.common.scree...
ContainerCardPresenter { public org.kie.workbench.common.screens.server.management.client.container.status.card.ContainerCardPresenter.View getView() { return view; } @Inject ContainerCardPresenter( final ManagedInstance<Object> presenterProvider, final org.kie.workbench.common.scree...
@Test public void testSetup() { final InfoTitlePresenter infoTitlePresenter = mock( InfoTitlePresenter.class ); when( infoTitlePresenterProvider.get() ).thenReturn( infoTitlePresenter ); final LinkTitlePresenter linkTitlePresenter = spy( new LinkTitlePresenter( mock( LinkTitlePresenter.View.class ) ) ); when( linkTitle...
public void setup( final Container container ) { final LinkTitlePresenter linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); linkTitlePresenter.setup( container.getContainerName() != null ? container.getContainerName() : container.getContainerSpecId(), new Command() { @Override public void...
ContainerCardPresenter { public void setup( final Container container ) { final LinkTitlePresenter linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); linkTitlePresenter.setup( container.getContainerName() != null ? container.getContainerName() : container.getContainerSpecId(), new Command(...
ContainerCardPresenter { public void setup( final Container container ) { final LinkTitlePresenter linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); linkTitlePresenter.setup( container.getContainerName() != null ? container.getContainerName() : container.getContainerSpecId(), new Command(...
ContainerCardPresenter { public void setup( final Container container ) { final LinkTitlePresenter linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); linkTitlePresenter.setup( container.getContainerName() != null ? container.getContainerName() : container.getContainerSpecId(), new Command(...
ContainerCardPresenter { public void setup( final Container container ) { final LinkTitlePresenter linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); linkTitlePresenter.setup( container.getContainerName() != null ? container.getContainerName() : container.getContainerSpecId(), new Command(...
@Test public void testSetupWithUnNamedContainer() { final InfoTitlePresenter infoTitlePresenter = mock(InfoTitlePresenter.class); when(infoTitlePresenterProvider.get()).thenReturn(infoTitlePresenter); final LinkTitlePresenter linkTitlePresenter = spy(new LinkTitlePresenter(mock(LinkTitlePresenter.View.class))); when(li...
public void setup( final Container container ) { final LinkTitlePresenter linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); linkTitlePresenter.setup( container.getContainerName() != null ? container.getContainerName() : container.getContainerSpecId(), new Command() { @Override public void...
ContainerCardPresenter { public void setup( final Container container ) { final LinkTitlePresenter linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); linkTitlePresenter.setup( container.getContainerName() != null ? container.getContainerName() : container.getContainerSpecId(), new Command(...
ContainerCardPresenter { public void setup( final Container container ) { final LinkTitlePresenter linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); linkTitlePresenter.setup( container.getContainerName() != null ? container.getContainerName() : container.getContainerSpecId(), new Command(...
ContainerCardPresenter { public void setup( final Container container ) { final LinkTitlePresenter linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); linkTitlePresenter.setup( container.getContainerName() != null ? container.getContainerName() : container.getContainerSpecId(), new Command(...
ContainerCardPresenter { public void setup( final Container container ) { final LinkTitlePresenter linkTitlePresenter = presenterProvider.select( LinkTitlePresenter.class ).get(); linkTitlePresenter.setup( container.getContainerName() != null ? container.getContainerName() : container.getContainerSpecId(), new Command(...
@Test public void testInit() { assertEquals( view, presenter.getView() ); }
public View getView() { return view; }
RemoteEmptyPresenter { public View getView() { return view; } }
RemoteEmptyPresenter { public View getView() { return view; } @Inject RemoteEmptyPresenter( final View view ); }
RemoteEmptyPresenter { public View getView() { return view; } @Inject RemoteEmptyPresenter( final View view ); View getView(); }
RemoteEmptyPresenter { public View getView() { return view; } @Inject RemoteEmptyPresenter( final View view ); View getView(); }
@Test public void testInit() { presenter.init(); verify( view ).init( presenter ); assertEquals( view, presenter.getView() ); }
@PostConstruct public void init() { view.init( this ); }
RemotePresenter { @PostConstruct public void init() { view.init( this ); } }
RemotePresenter { @PostConstruct public void init() { view.init( this ); } @Inject RemotePresenter( final Logger logger, final View view, final RemoteStatusPresenter remoteStatusPresenter, final RemoteEmptyPresenter remoteEmptyPresente...
RemotePresenter { @PostConstruct public void init() { view.init( this ); } @Inject RemotePresenter( final Logger logger, final View view, final RemoteStatusPresenter remoteStatusPresenter, final RemoteEmptyPresenter remoteEmptyPresente...
RemotePresenter { @PostConstruct public void init() { view.init( this ); } @Inject RemotePresenter( final Logger logger, final View view, final RemoteStatusPresenter remoteStatusPresenter, final RemoteEmptyPresenter remoteEmptyPresente...
@Test public void testRemove() { final ServerInstanceKey serverInstanceKey = new ServerInstanceKey( "templateId", "serverName", "serverInstanceId", "url" ); presenter.onSelect( new ServerInstanceSelected( serverInstanceKey ) ); presenter.remove(); verify( specManagementService ).deleteServerInstance( serverInstanceKey ...
public void remove() { specManagementServiceCaller.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { notification.fire( new NotificationEvent( view.getRemoteInstanceRemoveSuccessMessage(), NotificationEvent.NotificationType.SUCCESS ) ); } }, new ErrorCallback<Object>() { @Override ...
RemotePresenter { public void remove() { specManagementServiceCaller.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { notification.fire( new NotificationEvent( view.getRemoteInstanceRemoveSuccessMessage(), NotificationEvent.NotificationType.SUCCESS ) ); } }, new ErrorCallback<Obje...
RemotePresenter { public void remove() { specManagementServiceCaller.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { notification.fire( new NotificationEvent( view.getRemoteInstanceRemoveSuccessMessage(), NotificationEvent.NotificationType.SUCCESS ) ); } }, new ErrorCallback<Obje...
RemotePresenter { public void remove() { specManagementServiceCaller.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { notification.fire( new NotificationEvent( view.getRemoteInstanceRemoveSuccessMessage(), NotificationEvent.NotificationType.SUCCESS ) ); } }, new ErrorCallback<Obje...
RemotePresenter { public void remove() { specManagementServiceCaller.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { notification.fire( new NotificationEvent( view.getRemoteInstanceRemoveSuccessMessage(), NotificationEvent.NotificationType.SUCCESS ) ); } }, new ErrorCallback<Obje...
@Test public void testOnInstanceUpdate() { final ServerInstance serverInstance = new ServerInstance( "templateId", "serverName", "serverInstanceId", "url", "1.0", Collections.<Message>emptyList(), Collections.<Container>emptyList() ); presenter.onSelect( new ServerInstanceSelected( serverInstance ) ); presenter.onInsta...
public void onInstanceUpdate( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstanceKey updatedServerInstanceKey = toKey( serverInstanceUpdated.getServerInstance() ); if ( serverInstanceKey != null ...
RemotePresenter { public void onInstanceUpdate( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstanceKey updatedServerInstanceKey = toKey( serverInstanceUpdated.getServerInstance() ); if ( serverIn...
RemotePresenter { public void onInstanceUpdate( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstanceKey updatedServerInstanceKey = toKey( serverInstanceUpdated.getServerInstance() ); if ( serverIn...
RemotePresenter { public void onInstanceUpdate( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstanceKey updatedServerInstanceKey = toKey( serverInstanceUpdated.getServerInstance() ); if ( serverIn...
RemotePresenter { public void onInstanceUpdate( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstanceKey updatedServerInstanceKey = toKey( serverInstanceUpdated.getServerInstance() ); if ( serverIn...
@Test public void testOnInstanceUpdateWithoutSelect() { final ServerInstance serverInstance = new ServerInstance( "templateId", "serverName", "serverInstanceId", "url", "1.0", Collections.<Message>emptyList(), Collections.<Container>emptyList() ); presenter.onInstanceUpdate( new ServerInstanceUpdated( serverInstance ) ...
public void onInstanceUpdate( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstanceKey updatedServerInstanceKey = toKey( serverInstanceUpdated.getServerInstance() ); if ( serverInstanceKey != null ...
RemotePresenter { public void onInstanceUpdate( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstanceKey updatedServerInstanceKey = toKey( serverInstanceUpdated.getServerInstance() ); if ( serverIn...
RemotePresenter { public void onInstanceUpdate( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstanceKey updatedServerInstanceKey = toKey( serverInstanceUpdated.getServerInstance() ); if ( serverIn...
RemotePresenter { public void onInstanceUpdate( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstanceKey updatedServerInstanceKey = toKey( serverInstanceUpdated.getServerInstance() ); if ( serverIn...
RemotePresenter { public void onInstanceUpdate( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstanceKey updatedServerInstanceKey = toKey( serverInstanceUpdated.getServerInstance() ); if ( serverIn...
@Test public void testGraphCommandAllow() { setupCommand(0, uiModel.getRow(0)); final Command<GraphCommandExecutionContext, RuleViolation> c = command.newGraphCommand(handler); assertEquals(GraphCommandResultBuilder.SUCCESS, c.allow(gce)); }
@Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new AbstractGraphCommand() { @Override protected CommandResult<RuleViolation> check(final GraphCommandExecutionContext context) { return GraphCommandResultBuilder.SUCCESS; } @Override p...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new Abst...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new Abst...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new Abst...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new Abst...
@Test public void testInit() { presenter.init(); verify( view ).init( presenter ); assertEquals( view, presenter.getView() ); }
@PostConstruct public void init() { view.init(this); }
ServerNavigationPresenter { @PostConstruct public void init() { view.init(this); } }
ServerNavigationPresenter { @PostConstruct public void init() { view.init(this); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<AddNewServerTemplate> addNewServerTemplateEvent, ...
ServerNavigationPresenter { @PostConstruct public void init() { view.init(this); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<AddNewServerTemplate> addNewServerTemplateEvent, ...
ServerNavigationPresenter { @PostConstruct public void init() { view.init(this); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<AddNewServerTemplate> addNewServerTemplateEvent, ...
@Test public void testClear() { presenter.clear(); verify( view ).clean(); }
public void clear() { view.clean(); }
ServerNavigationPresenter { public void clear() { view.clean(); } }
ServerNavigationPresenter { public void clear() { view.clean(); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<AddNewServerTemplate> addNewServerTemplateEvent, final Eve...
ServerNavigationPresenter { public void clear() { view.clean(); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<AddNewServerTemplate> addNewServerTemplateEvent, final Eve...
ServerNavigationPresenter { public void clear() { view.clean(); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<AddNewServerTemplate> addNewServerTemplateEvent, final Eve...
@Test public void testSelect() { final String serverId = "serverId"; presenter.select( serverId ); final ArgumentCaptor<ServerTemplateSelected> serverTemplateSelectedCaptor = ArgumentCaptor.forClass( ServerTemplateSelected.class ); verify( serverTemplateSelectedEvent ).fire( serverTemplateSelectedCaptor.capture() ); as...
public void select(final String id) { serverTemplateSelectedEvent.fire(new ServerTemplateSelected(new ServerTemplateKey(id, ""))); }
ServerNavigationPresenter { public void select(final String id) { serverTemplateSelectedEvent.fire(new ServerTemplateSelected(new ServerTemplateKey(id, ""))); } }
ServerNavigationPresenter { public void select(final String id) { serverTemplateSelectedEvent.fire(new ServerTemplateSelected(new ServerTemplateKey(id, ""))); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<...
ServerNavigationPresenter { public void select(final String id) { serverTemplateSelectedEvent.fire(new ServerTemplateSelected(new ServerTemplateKey(id, ""))); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<...
ServerNavigationPresenter { public void select(final String id) { serverTemplateSelectedEvent.fire(new ServerTemplateSelected(new ServerTemplateKey(id, ""))); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<...
@Test public void testRefresh() { presenter.refresh(); verify( serverTemplateListRefreshEvent ).fire( any( ServerTemplateListRefresh.class ) ); }
public void refresh() { serverTemplateListRefreshEvent.fire(new ServerTemplateListRefresh()); }
ServerNavigationPresenter { public void refresh() { serverTemplateListRefreshEvent.fire(new ServerTemplateListRefresh()); } }
ServerNavigationPresenter { public void refresh() { serverTemplateListRefreshEvent.fire(new ServerTemplateListRefresh()); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<AddNewServerTemplate> addNewServerTem...
ServerNavigationPresenter { public void refresh() { serverTemplateListRefreshEvent.fire(new ServerTemplateListRefresh()); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<AddNewServerTemplate> addNewServerTem...
ServerNavigationPresenter { public void refresh() { serverTemplateListRefreshEvent.fire(new ServerTemplateListRefresh()); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<AddNewServerTemplate> addNewServerTem...
@Test public void testNewTemplate() { presenter.newTemplate(); verify( addNewServerTemplateEvent ).fire( any( AddNewServerTemplate.class ) ); }
public void newTemplate() { addNewServerTemplateEvent.fire(new AddNewServerTemplate()); }
ServerNavigationPresenter { public void newTemplate() { addNewServerTemplateEvent.fire(new AddNewServerTemplate()); } }
ServerNavigationPresenter { public void newTemplate() { addNewServerTemplateEvent.fire(new AddNewServerTemplate()); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<AddNewServerTemplate> addNewServerTemplateE...
ServerNavigationPresenter { public void newTemplate() { addNewServerTemplateEvent.fire(new AddNewServerTemplate()); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<AddNewServerTemplate> addNewServerTemplateE...
ServerNavigationPresenter { public void newTemplate() { addNewServerTemplateEvent.fire(new AddNewServerTemplate()); } @Inject ServerNavigationPresenter(final Logger logger, final View view, final Event<AddNewServerTemplate> addNewServerTemplateE...
@Test public void testSetup() { final ServerTemplateKey serverTemplateKey = new ServerTemplateKey( "ServerTemplateKeyId", "ServerTemplateKeyName" ); presenter.setup( serverTemplateKey, Collections.singletonList( serverTemplateKey ) ); verify( view ).clean(); verify( view ).addTemplate( serverTemplateKey.getId(), server...
public void setup(final ServerTemplateKey firstTemplate, final Collection<ServerTemplateKey> serverTemplateKeys) { view.clean(); serverTemplates.clear(); addTemplate(checkNotNull("serverTemplate2BeSelected", firstTemplate)); for (final ServerTemplateKey serverTemplateKey : serverTemplateKeys) { if (!serverTemplateKey.e...
ServerNavigationPresenter { public void setup(final ServerTemplateKey firstTemplate, final Collection<ServerTemplateKey> serverTemplateKeys) { view.clean(); serverTemplates.clear(); addTemplate(checkNotNull("serverTemplate2BeSelected", firstTemplate)); for (final ServerTemplateKey serverTemplateKey : serverTemplateKeys...
ServerNavigationPresenter { public void setup(final ServerTemplateKey firstTemplate, final Collection<ServerTemplateKey> serverTemplateKeys) { view.clean(); serverTemplates.clear(); addTemplate(checkNotNull("serverTemplate2BeSelected", firstTemplate)); for (final ServerTemplateKey serverTemplateKey : serverTemplateKeys...
ServerNavigationPresenter { public void setup(final ServerTemplateKey firstTemplate, final Collection<ServerTemplateKey> serverTemplateKeys) { view.clean(); serverTemplates.clear(); addTemplate(checkNotNull("serverTemplate2BeSelected", firstTemplate)); for (final ServerTemplateKey serverTemplateKey : serverTemplateKeys...
ServerNavigationPresenter { public void setup(final ServerTemplateKey firstTemplate, final Collection<ServerTemplateKey> serverTemplateKeys) { view.clean(); serverTemplates.clear(); addTemplate(checkNotNull("serverTemplate2BeSelected", firstTemplate)); for (final ServerTemplateKey serverTemplateKey : serverTemplateKeys...
@Test public void testOnSelect() { final ServerTemplateKey serverTemplateKey = new ServerTemplateKey( "ServerTemplateKeyId", "ServerTemplateKeyName" ); presenter.onSelect( new ServerTemplateSelected( serverTemplateKey ) ); verify( view ).select( serverTemplateKey.getId() ); }
public void onSelect(@Observes final ServerTemplateSelected serverTemplateSelected) { if (serverTemplateSelected != null && serverTemplateSelected.getServerTemplateKey() != null && serverTemplateSelected.getServerTemplateKey().getId() != null) { view.select(serverTemplateSelected.getServerTemplateKey().getId()); } else...
ServerNavigationPresenter { public void onSelect(@Observes final ServerTemplateSelected serverTemplateSelected) { if (serverTemplateSelected != null && serverTemplateSelected.getServerTemplateKey() != null && serverTemplateSelected.getServerTemplateKey().getId() != null) { view.select(serverTemplateSelected.getServerTe...
ServerNavigationPresenter { public void onSelect(@Observes final ServerTemplateSelected serverTemplateSelected) { if (serverTemplateSelected != null && serverTemplateSelected.getServerTemplateKey() != null && serverTemplateSelected.getServerTemplateKey().getId() != null) { view.select(serverTemplateSelected.getServerTe...
ServerNavigationPresenter { public void onSelect(@Observes final ServerTemplateSelected serverTemplateSelected) { if (serverTemplateSelected != null && serverTemplateSelected.getServerTemplateKey() != null && serverTemplateSelected.getServerTemplateKey().getId() != null) { view.select(serverTemplateSelected.getServerTe...
ServerNavigationPresenter { public void onSelect(@Observes final ServerTemplateSelected serverTemplateSelected) { if (serverTemplateSelected != null && serverTemplateSelected.getServerTemplateKey() != null && serverTemplateSelected.getServerTemplateKey().getId() != null) { view.select(serverTemplateSelected.getServerTe...
@Test public void testOnServerTemplateUpdated() { final ServerTemplate serverTemplate = new ServerTemplate( "ServerTemplateKeyId", "ServerTemplateKeyName" ); presenter.onServerTemplateUpdated( new ServerTemplateUpdated( serverTemplate ) ); verify( view ).addTemplate( serverTemplate.getId(), serverTemplate.getName() ); ...
public void onServerTemplateUpdated(@Observes final ServerTemplateUpdated serverTemplateUpdated) { if (serverTemplateUpdated != null && serverTemplateUpdated.getServerTemplate() != null) { final ServerTemplate serverTemplate = serverTemplateUpdated.getServerTemplate(); if (!serverTemplates.contains(serverTemplate.getId...
ServerNavigationPresenter { public void onServerTemplateUpdated(@Observes final ServerTemplateUpdated serverTemplateUpdated) { if (serverTemplateUpdated != null && serverTemplateUpdated.getServerTemplate() != null) { final ServerTemplate serverTemplate = serverTemplateUpdated.getServerTemplate(); if (!serverTemplates.c...
ServerNavigationPresenter { public void onServerTemplateUpdated(@Observes final ServerTemplateUpdated serverTemplateUpdated) { if (serverTemplateUpdated != null && serverTemplateUpdated.getServerTemplate() != null) { final ServerTemplate serverTemplate = serverTemplateUpdated.getServerTemplate(); if (!serverTemplates.c...
ServerNavigationPresenter { public void onServerTemplateUpdated(@Observes final ServerTemplateUpdated serverTemplateUpdated) { if (serverTemplateUpdated != null && serverTemplateUpdated.getServerTemplate() != null) { final ServerTemplate serverTemplate = serverTemplateUpdated.getServerTemplate(); if (!serverTemplates.c...
ServerNavigationPresenter { public void onServerTemplateUpdated(@Observes final ServerTemplateUpdated serverTemplateUpdated) { if (serverTemplateUpdated != null && serverTemplateUpdated.getServerTemplate() != null) { final ServerTemplate serverTemplate = serverTemplateUpdated.getServerTemplate(); if (!serverTemplates.c...
@Test public void testInit() { presenter.init(); verify( view ).init( presenter ); assertEquals( view, presenter.getView() ); }
@PostConstruct public void init() { view.init(this); }
CopyPopupPresenter { @PostConstruct public void init() { view.init(this); } }
CopyPopupPresenter { @PostConstruct public void init() { view.init(this); } @Inject CopyPopupPresenter(final View view); }
CopyPopupPresenter { @PostConstruct public void init() { view.init(this); } @Inject CopyPopupPresenter(final View view); @PostConstruct void init(); View getView(); void copy(final ParameterizedCommand<String> command); void errorDuringProcessing(final String message); void save(); void hide(); }
CopyPopupPresenter { @PostConstruct public void init() { view.init(this); } @Inject CopyPopupPresenter(final View view); @PostConstruct void init(); View getView(); void copy(final ParameterizedCommand<String> command); void errorDuringProcessing(final String message); void save(); void hide(); }
@Test public void testHide() { presenter.hide(); verify( view ).hide(); }
public void hide() { view.hide(); }
CopyPopupPresenter { public void hide() { view.hide(); } }
CopyPopupPresenter { public void hide() { view.hide(); } @Inject CopyPopupPresenter(final View view); }
CopyPopupPresenter { public void hide() { view.hide(); } @Inject CopyPopupPresenter(final View view); @PostConstruct void init(); View getView(); void copy(final ParameterizedCommand<String> command); void errorDuringProcessing(final String message); void save(); void hide(); }
CopyPopupPresenter { public void hide() { view.hide(); } @Inject CopyPopupPresenter(final View view); @PostConstruct void init(); View getView(); void copy(final ParameterizedCommand<String> command); void errorDuringProcessing(final String message); void save(); void hide(); }
@Test public void testGraphCommandExecuteMoveUp() { setupCommand(0, uiModel.getRow(1)); assertEquals(GraphCommandResultBuilder.SUCCESS, command.newGraphCommand(handler).execute(gce)); assertRelationDefinition(1, 0); }
@Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new AbstractGraphCommand() { @Override protected CommandResult<RuleViolation> check(final GraphCommandExecutionContext context) { return GraphCommandResultBuilder.SUCCESS; } @Override p...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new Abst...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new Abst...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new Abst...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new Abst...
@Test public void testValidateTerms() { final Set<ValueIndexTerm> queryTerms = new HashSet<>(); final String[] requiredTermNames = new String[]{}; final Predicate<ValueIndexTerm> fileExtensionIndexTermPredicate = (t) -> true; final Predicate<ValueIndexTerm> repositoryRootIndexTermPredicate = (t) -> true; doReturn(requi...
@Override public void validateTerms(final Set<ValueIndexTerm> queryTerms) throws IllegalArgumentException { checkTerms(queryTerms, NAME, requiredTermNames(), repositoryRootIndexTermPredicate(), fileExtensionIndexTermPredicate()); checkTermsSize(2, queryTerms); }
FindAllDmnAssetsQuery extends AbstractFindQuery implements NamedQuery { @Override public void validateTerms(final Set<ValueIndexTerm> queryTerms) throws IllegalArgumentException { checkTerms(queryTerms, NAME, requiredTermNames(), repositoryRootIndexTermPredicate(), fileExtensionIndexTermPredicate()); checkTermsSize(2, ...
FindAllDmnAssetsQuery extends AbstractFindQuery implements NamedQuery { @Override public void validateTerms(final Set<ValueIndexTerm> queryTerms) throws IllegalArgumentException { checkTerms(queryTerms, NAME, requiredTermNames(), repositoryRootIndexTermPredicate(), fileExtensionIndexTermPredicate()); checkTermsSize(2, ...
FindAllDmnAssetsQuery extends AbstractFindQuery implements NamedQuery { @Override public void validateTerms(final Set<ValueIndexTerm> queryTerms) throws IllegalArgumentException { checkTerms(queryTerms, NAME, requiredTermNames(), repositoryRootIndexTermPredicate(), fileExtensionIndexTermPredicate()); checkTermsSize(2, ...
FindAllDmnAssetsQuery extends AbstractFindQuery implements NamedQuery { @Override public void validateTerms(final Set<ValueIndexTerm> queryTerms) throws IllegalArgumentException { checkTerms(queryTerms, NAME, requiredTermNames(), repositoryRootIndexTermPredicate(), fileExtensionIndexTermPredicate()); checkTermsSize(2, ...
@Test public void testCopy() { final String newTemplateName = "NewTemplateName"; when( view.getNewTemplateName() ).thenReturn( newTemplateName ); final ParameterizedCommand command = mock( ParameterizedCommand.class ); presenter.copy( command ); verify( view ).clear(); verify( view ).display(); presenter.save(); verify...
public void copy(final ParameterizedCommand<String> command) { this.command = checkNotNull("command", command); view.clear(); view.display(); }
CopyPopupPresenter { public void copy(final ParameterizedCommand<String> command) { this.command = checkNotNull("command", command); view.clear(); view.display(); } }
CopyPopupPresenter { public void copy(final ParameterizedCommand<String> command) { this.command = checkNotNull("command", command); view.clear(); view.display(); } @Inject CopyPopupPresenter(final View view); }
CopyPopupPresenter { public void copy(final ParameterizedCommand<String> command) { this.command = checkNotNull("command", command); view.clear(); view.display(); } @Inject CopyPopupPresenter(final View view); @PostConstruct void init(); View getView(); void copy(final ParameterizedCommand<String> command); void error...
CopyPopupPresenter { public void copy(final ParameterizedCommand<String> command) { this.command = checkNotNull("command", command); view.clear(); view.display(); } @Inject CopyPopupPresenter(final View view); @PostConstruct void init(); View getView(); void copy(final ParameterizedCommand<String> command); void error...
@Test public void testCopyError() { when( view.getNewTemplateName() ).thenReturn( "" ); presenter.save(); verify( view ).errorOnTemplateNameFromGroup(); }
public void save() { if (view.getNewTemplateName().trim().isEmpty()) { view.errorOnTemplateNameFromGroup(); return; } command.execute(view.getNewTemplateName()); }
CopyPopupPresenter { public void save() { if (view.getNewTemplateName().trim().isEmpty()) { view.errorOnTemplateNameFromGroup(); return; } command.execute(view.getNewTemplateName()); } }
CopyPopupPresenter { public void save() { if (view.getNewTemplateName().trim().isEmpty()) { view.errorOnTemplateNameFromGroup(); return; } command.execute(view.getNewTemplateName()); } @Inject CopyPopupPresenter(final View view); }
CopyPopupPresenter { public void save() { if (view.getNewTemplateName().trim().isEmpty()) { view.errorOnTemplateNameFromGroup(); return; } command.execute(view.getNewTemplateName()); } @Inject CopyPopupPresenter(final View view); @PostConstruct void init(); View getView(); void copy(final ParameterizedCommand<String> ...
CopyPopupPresenter { public void save() { if (view.getNewTemplateName().trim().isEmpty()) { view.errorOnTemplateNameFromGroup(); return; } command.execute(view.getNewTemplateName()); } @Inject CopyPopupPresenter(final View view); @PostConstruct void init(); View getView(); void copy(final ParameterizedCommand<String> ...
@Test public void testErrorOnTemplateNameFromGroup() { final String errorMessage = "errorMessage"; presenter.errorDuringProcessing( errorMessage ); verify( view ).errorOnTemplateNameFromGroup( errorMessage ); }
public void errorDuringProcessing(final String message) { view.errorOnTemplateNameFromGroup(message); }
CopyPopupPresenter { public void errorDuringProcessing(final String message) { view.errorOnTemplateNameFromGroup(message); } }
CopyPopupPresenter { public void errorDuringProcessing(final String message) { view.errorOnTemplateNameFromGroup(message); } @Inject CopyPopupPresenter(final View view); }
CopyPopupPresenter { public void errorDuringProcessing(final String message) { view.errorOnTemplateNameFromGroup(message); } @Inject CopyPopupPresenter(final View view); @PostConstruct void init(); View getView(); void copy(final ParameterizedCommand<String> command); void errorDuringProcessing(final String message); ...
CopyPopupPresenter { public void errorDuringProcessing(final String message) { view.errorOnTemplateNameFromGroup(message); } @Inject CopyPopupPresenter(final View view); @PostConstruct void init(); View getView(); void copy(final ParameterizedCommand<String> command); void errorDuringProcessing(final String message); ...
@Test public void testInit() { presenter.init(); verify( view ).init( presenter ); assertEquals( view, presenter.getView() ); }
@PostConstruct public void init() { view.init( this ); }
ServerTemplatePresenter { @PostConstruct public void init() { view.init( this ); } }
ServerTemplatePresenter { @PostConstruct public void init() { view.init( this ); } @Inject ServerTemplatePresenter( final Logger logger, final View view, final CopyPopupPresenter copyPresenter, final Caller<Spec...
ServerTemplatePresenter { @PostConstruct public void init() { view.init( this ); } @Inject ServerTemplatePresenter( final Logger logger, final View view, final CopyPopupPresenter copyPresenter, final Caller<Spec...
ServerTemplatePresenter { @PostConstruct public void init() { view.init( this ); } @Inject ServerTemplatePresenter( final Logger logger, final View view, final CopyPopupPresenter copyPresenter, final Caller<Spec...
@Test public void testOnContainerSelect() { final ServerTemplateKey serverTemplateKey = new ServerTemplateKey( "ServerTemplateKeyId", "ServerTemplateKeyName" ); final ContainerSpecKey containerSpecKey = new ContainerSpecKey( "containerId", "containerName", serverTemplateKey ); presenter.onContainerSelect( new Container...
public void onContainerSelect( @Observes final ContainerSpecSelected containerSpecSelected ) { if ( containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null && containerSpecSelected.getContainerSpecKey().getServerTemplateKey() != null && containerSpecSelected.getContainerSpecKey().getServerT...
ServerTemplatePresenter { public void onContainerSelect( @Observes final ContainerSpecSelected containerSpecSelected ) { if ( containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null && containerSpecSelected.getContainerSpecKey().getServerTemplateKey() != null && containerSpecSelected.getCon...
ServerTemplatePresenter { public void onContainerSelect( @Observes final ContainerSpecSelected containerSpecSelected ) { if ( containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null && containerSpecSelected.getContainerSpecKey().getServerTemplateKey() != null && containerSpecSelected.getCon...
ServerTemplatePresenter { public void onContainerSelect( @Observes final ContainerSpecSelected containerSpecSelected ) { if ( containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null && containerSpecSelected.getContainerSpecKey().getServerTemplateKey() != null && containerSpecSelected.getCon...
ServerTemplatePresenter { public void onContainerSelect( @Observes final ContainerSpecSelected containerSpecSelected ) { if ( containerSpecSelected != null && containerSpecSelected.getContainerSpecKey() != null && containerSpecSelected.getContainerSpecKey().getServerTemplateKey() != null && containerSpecSelected.getCon...
@Test public void testOnServerInstanceSelect() { final ServerInstanceKey serverInstanceKey = new ServerInstanceKey( "serverInstanceKeyId", "serverName", "serverInstanceId", "url" ); presenter.onServerInstanceSelect( new ServerInstanceSelected( serverInstanceKey ) ); verify( view ).selectServerInstance( serverInstanceKe...
public void onServerInstanceSelect( @Observes final ServerInstanceSelected serverInstanceSelected ) { if ( serverInstanceSelected != null && serverInstanceSelected.getServerInstanceKey() != null && serverInstanceSelected.getServerInstanceKey().getServerTemplateId() != null && serverInstanceSelected.getServerInstanceKey...
ServerTemplatePresenter { public void onServerInstanceSelect( @Observes final ServerInstanceSelected serverInstanceSelected ) { if ( serverInstanceSelected != null && serverInstanceSelected.getServerInstanceKey() != null && serverInstanceSelected.getServerInstanceKey().getServerTemplateId() != null && serverInstanceSel...
ServerTemplatePresenter { public void onServerInstanceSelect( @Observes final ServerInstanceSelected serverInstanceSelected ) { if ( serverInstanceSelected != null && serverInstanceSelected.getServerInstanceKey() != null && serverInstanceSelected.getServerInstanceKey().getServerTemplateId() != null && serverInstanceSel...
ServerTemplatePresenter { public void onServerInstanceSelect( @Observes final ServerInstanceSelected serverInstanceSelected ) { if ( serverInstanceSelected != null && serverInstanceSelected.getServerInstanceKey() != null && serverInstanceSelected.getServerInstanceKey().getServerTemplateId() != null && serverInstanceSel...
ServerTemplatePresenter { public void onServerInstanceSelect( @Observes final ServerInstanceSelected serverInstanceSelected ) { if ( serverInstanceSelected != null && serverInstanceSelected.getServerInstanceKey() != null && serverInstanceSelected.getServerInstanceKey().getServerTemplateId() != null && serverInstanceSel...
@Test public void testOnServerInstanceUpdated() { final ServerTemplate serverTemplate = new ServerTemplate( "ServerTemplateId", "ServerTemplateName" ); presenter.setup( serverTemplate, null ); assertEquals( serverTemplate, presenter.getCurrentServerTemplate() ); final ServerInstance serverInstance = new ServerInstance(...
public void onServerInstanceUpdated( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstance updatedServerInstance = serverInstanceUpdated.getServerInstance(); if ( serverTemplate != null && updatedS...
ServerTemplatePresenter { public void onServerInstanceUpdated( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstance updatedServerInstance = serverInstanceUpdated.getServerInstance(); if ( serverTe...
ServerTemplatePresenter { public void onServerInstanceUpdated( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstance updatedServerInstance = serverInstanceUpdated.getServerInstance(); if ( serverTe...
ServerTemplatePresenter { public void onServerInstanceUpdated( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstance updatedServerInstance = serverInstanceUpdated.getServerInstance(); if ( serverTe...
ServerTemplatePresenter { public void onServerInstanceUpdated( @Observes final ServerInstanceUpdated serverInstanceUpdated ) { if ( serverInstanceUpdated != null && serverInstanceUpdated.getServerInstance() != null ) { final ServerInstance updatedServerInstance = serverInstanceUpdated.getServerInstance(); if ( serverTe...
@Test public void testAddNewContainer() { presenter.addNewContainer(); verify( addNewContainerEvent ).fire( any( AddNewContainer.class ) ); }
public void addNewContainer() { addNewContainerEvent.fire( new AddNewContainer( serverTemplate ) ); }
ServerTemplatePresenter { public void addNewContainer() { addNewContainerEvent.fire( new AddNewContainer( serverTemplate ) ); } }
ServerTemplatePresenter { public void addNewContainer() { addNewContainerEvent.fire( new AddNewContainer( serverTemplate ) ); } @Inject ServerTemplatePresenter( final Logger logger, final View view, final CopyPopupPresenter copyPresenter, ...
ServerTemplatePresenter { public void addNewContainer() { addNewContainerEvent.fire( new AddNewContainer( serverTemplate ) ); } @Inject ServerTemplatePresenter( final Logger logger, final View view, final CopyPopupPresenter copyPresenter, ...
ServerTemplatePresenter { public void addNewContainer() { addNewContainerEvent.fire( new AddNewContainer( serverTemplate ) ); } @Inject ServerTemplatePresenter( final Logger logger, final View view, final CopyPopupPresenter copyPresenter, ...
@Test public void testRemoveTemplate() { when( view.getRemoveTemplateErrorMessage() ).thenReturn( "ERROR" ); doAnswer( new Answer<Void>() { @Override public Void answer( final InvocationOnMock invocation ) throws Throwable { Command command = (Command) invocation.getArguments()[ 0 ]; if ( command != null ) { command.ex...
public void removeTemplate() { view.confirmRemove( new Command() { @Override public void execute() { specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { serverTemplateListRefreshEvent.fire( new ServerTemplateListRefresh() ); } }, new ErrorCallback<Object>() { @O...
ServerTemplatePresenter { public void removeTemplate() { view.confirmRemove( new Command() { @Override public void execute() { specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { serverTemplateListRefreshEvent.fire( new ServerTemplateListRefresh() ); } }, new Er...
ServerTemplatePresenter { public void removeTemplate() { view.confirmRemove( new Command() { @Override public void execute() { specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { serverTemplateListRefreshEvent.fire( new ServerTemplateListRefresh() ); } }, new Er...
ServerTemplatePresenter { public void removeTemplate() { view.confirmRemove( new Command() { @Override public void execute() { specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { serverTemplateListRefreshEvent.fire( new ServerTemplateListRefresh() ); } }, new Er...
ServerTemplatePresenter { public void removeTemplate() { view.confirmRemove( new Command() { @Override public void execute() { specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { serverTemplateListRefreshEvent.fire( new ServerTemplateListRefresh() ); } }, new Er...
@Test public void testCopyTemplate() { final String newTemplateName = "NewTemplateName"; doAnswer( new Answer<Void>() { @Override public Void answer( final InvocationOnMock invocation ) throws Throwable { final ParameterizedCommand command = (ParameterizedCommand) invocation.getArguments()[ 0 ]; if ( command != null ) ...
public void copyTemplate() { copyPresenter.copy( new ParameterizedCommand<String>() { @Override public void execute( final String value ) { specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { copyPresenter.hide(); serverTemplateListRefreshEvent.fire( new ServerT...
ServerTemplatePresenter { public void copyTemplate() { copyPresenter.copy( new ParameterizedCommand<String>() { @Override public void execute( final String value ) { specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { copyPresenter.hide(); serverTemplateListRefr...
ServerTemplatePresenter { public void copyTemplate() { copyPresenter.copy( new ParameterizedCommand<String>() { @Override public void execute( final String value ) { specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { copyPresenter.hide(); serverTemplateListRefr...
ServerTemplatePresenter { public void copyTemplate() { copyPresenter.copy( new ParameterizedCommand<String>() { @Override public void execute( final String value ) { specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { copyPresenter.hide(); serverTemplateListRefr...
ServerTemplatePresenter { public void copyTemplate() { copyPresenter.copy( new ParameterizedCommand<String>() { @Override public void execute( final String value ) { specManagementService.call( new RemoteCallback<Void>() { @Override public void callback( final Void aVoid ) { copyPresenter.hide(); serverTemplateListRefr...
@Test public void testGraphCommandExecuteMoveDown() { setupCommand(1, uiModel.getRow(0)); assertEquals(GraphCommandResultBuilder.SUCCESS, command.newGraphCommand(handler).execute(gce)); assertRelationDefinition(1, 0); }
@Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new AbstractGraphCommand() { @Override protected CommandResult<RuleViolation> check(final GraphCommandExecutionContext context) { return GraphCommandResultBuilder.SUCCESS; } @Override p...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new Abst...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new Abst...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new Abst...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new Abst...
@Test public void testSetup() { final ServerTemplate serverTemplate = new ServerTemplate( "ServerTemplateKeyId", "ServerTemplateKeyName" ); final ServerInstanceKey serverInstanceKey = new ServerInstanceKey( "serverTemplateId", "serverName", "serverInstanceId", "url" ); serverTemplate.addServerInstance( serverInstanceKe...
public void setup( final ServerTemplate serverTemplate, final ContainerSpec firstContainerSpec ) { view.clear(); this.serverTemplate = serverTemplate; view.setTemplate( serverTemplate.getId(), serverTemplate.getName() ); view.setProcessCapability( serverTemplate.getCapabilities().contains( Capability.PROCESS.toString()...
ServerTemplatePresenter { public void setup( final ServerTemplate serverTemplate, final ContainerSpec firstContainerSpec ) { view.clear(); this.serverTemplate = serverTemplate; view.setTemplate( serverTemplate.getId(), serverTemplate.getName() ); view.setProcessCapability( serverTemplate.getCapabilities().contains( Cap...
ServerTemplatePresenter { public void setup( final ServerTemplate serverTemplate, final ContainerSpec firstContainerSpec ) { view.clear(); this.serverTemplate = serverTemplate; view.setTemplate( serverTemplate.getId(), serverTemplate.getName() ); view.setProcessCapability( serverTemplate.getCapabilities().contains( Cap...
ServerTemplatePresenter { public void setup( final ServerTemplate serverTemplate, final ContainerSpec firstContainerSpec ) { view.clear(); this.serverTemplate = serverTemplate; view.setTemplate( serverTemplate.getId(), serverTemplate.getName() ); view.setProcessCapability( serverTemplate.getCapabilities().contains( Cap...
ServerTemplatePresenter { public void setup( final ServerTemplate serverTemplate, final ContainerSpec firstContainerSpec ) { view.clear(); this.serverTemplate = serverTemplate; view.setTemplate( serverTemplate.getId(), serverTemplate.getName() ); view.setProcessCapability( serverTemplate.getCapabilities().contains( Cap...
@Test public void testInit() { presenter.init(); verify( view ).init( presenter ); assertEquals( view, presenter.getView() ); }
@PostConstruct public void init() { view.init(this); }
BodyPresenter { @PostConstruct public void init() { view.init(this); } }
BodyPresenter { @PostConstruct public void init() { view.init(this); } @Inject BodyPresenter(final View view, final ManagedInstance<NotificationPresenter> presenterProvider); }
BodyPresenter { @PostConstruct public void init() { view.init(this); } @Inject BodyPresenter(final View view, final ManagedInstance<NotificationPresenter> presenterProvider); @PostConstruct void init(); View getView(); void setup(final Collection<Message> messages); }
BodyPresenter { @PostConstruct public void init() { view.init(this); } @Inject BodyPresenter(final View view, final ManagedInstance<NotificationPresenter> presenterProvider); @PostConstruct void init(); View getView(); void setup(final Collection<Message> messages); }
@Test public void testSetup() { final Message message = mock( Message.class ); presenter.setup( Arrays.asList( message ) ); verify( notificationPresenter ).setup( message ); verify(view).clear(); verify( view ).addNotification( notificationPresenter.getView() ); }
public void setup(final Collection<Message> messages) { checkNotNull("messages", messages); view.clear(); if (messages.isEmpty()) { view.addNotification(setupNotification(null).getView()); } else { for (final Message message : messages) { view.addNotification(setupNotification(message).getView()); } } }
BodyPresenter { public void setup(final Collection<Message> messages) { checkNotNull("messages", messages); view.clear(); if (messages.isEmpty()) { view.addNotification(setupNotification(null).getView()); } else { for (final Message message : messages) { view.addNotification(setupNotification(message).getView()); } } }...
BodyPresenter { public void setup(final Collection<Message> messages) { checkNotNull("messages", messages); view.clear(); if (messages.isEmpty()) { view.addNotification(setupNotification(null).getView()); } else { for (final Message message : messages) { view.addNotification(setupNotification(message).getView()); } } }...
BodyPresenter { public void setup(final Collection<Message> messages) { checkNotNull("messages", messages); view.clear(); if (messages.isEmpty()) { view.addNotification(setupNotification(null).getView()); } else { for (final Message message : messages) { view.addNotification(setupNotification(message).getView()); } } }...
BodyPresenter { public void setup(final Collection<Message> messages) { checkNotNull("messages", messages); view.clear(); if (messages.isEmpty()) { view.addNotification(setupNotification(null).getView()); } else { for (final Message message : messages) { view.addNotification(setupNotification(message).getView()); } } }...
@Test public void testInit() { assertEquals( view, presenter.getView() ); }
public View getView() { return view; }
NotificationPresenter { public View getView() { return view; } }
NotificationPresenter { public View getView() { return view; } @Inject NotificationPresenter(final View view); }
NotificationPresenter { public View getView() { return view; } @Inject NotificationPresenter(final View view); View getView(); void setupOk(); void setup(final Message message); }
NotificationPresenter { public View getView() { return view; } @Inject NotificationPresenter(final View view); View getView(); void setupOk(); void setup(final Message message); }
@Test public void testSetup() { presenter.setupOk(); verify( view ).setupOk(); }
public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notificationType, "0"); } else ...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
@Test public void testSetupOk() { final Message message = new Message(); message.setSeverity( Severity.INFO ); presenter.setup( message ); verify( view ).setupOk(); }
public void setupOk() { view.setupOk(); }
NotificationPresenter { public void setupOk() { view.setupOk(); } }
NotificationPresenter { public void setupOk() { view.setupOk(); } @Inject NotificationPresenter(final View view); }
NotificationPresenter { public void setupOk() { view.setupOk(); } @Inject NotificationPresenter(final View view); View getView(); void setupOk(); void setup(final Message message); }
NotificationPresenter { public void setupOk() { view.setupOk(); } @Inject NotificationPresenter(final View view); View getView(); void setupOk(); void setup(final Message message); }
@Test public void testSetupEmptyMessage() { final Message message = new Message(); message.setSeverity( Severity.ERROR ); presenter.setup( message ); verify( view ).setup( NotificationType.ERROR, "0" ); }
public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notificationType, "0"); } else ...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
@Test public void testSetupSingleMessage() { final Message message = new Message( Severity.ERROR, "single error" ); presenter.setup( message ); verify( view ).setup( NotificationType.ERROR, "1", "1: single error" ); }
public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notificationType, "0"); } else ...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
@Test public void testSetupSingleEmptyMessage() { final Message message = new Message( Severity.ERROR, "" ); presenter.setup( message ); verify( view ).setup( NotificationType.ERROR, "0", "" ); }
public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notificationType, "0"); } else ...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
@Test public void testSetupMultiMessage() { final Message message = new Message( Severity.WARN, Arrays.asList( "first error", "second error" ) ); presenter.setup( message ); verify( view ).setup( NotificationType.WARNING, "2", "1: first error\n2: second error" ); }
public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notificationType, "0"); } else ...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
NotificationPresenter { public void setup(final Message message) { checkNotNull("message", message); final NotificationType notificationType = toNotificationType(message.getSeverity()); if (notificationType.equals(NotificationType.OK)) { view.setupOk(); } else { if (message.getMessages().isEmpty()) { view.setup(notific...
@Test public void testCanvasCommandAllow() { setupCommand(0, uiModel.getRow(0)); final Command<AbstractCanvasHandler, CanvasViolation> c = command.newCanvasCommand(handler); assertEquals(CanvasCommandResultBuilder.SUCCESS, c.allow(handler)); }
@Override protected Command<AbstractCanvasHandler, CanvasViolation> newCanvasCommand(final AbstractCanvasHandler context) { return new AbstractCanvasCommand() { @Override public CommandResult<CanvasViolation> execute(final AbstractCanvasHandler context) { uiModel.moveRowsTo(index, rows); updateRowNumbers(); updateParen...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<AbstractCanvasHandler, CanvasViolation> newCanvasCommand(final AbstractCanvasHandler context) { return new Abstract...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<AbstractCanvasHandler, CanvasViolation> newCanvasCommand(final AbstractCanvasHandler context) { return new Abstract...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<AbstractCanvasHandler, CanvasViolation> newCanvasCommand(final AbstractCanvasHandler context) { return new Abstract...
MoveRowsCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<AbstractCanvasHandler, CanvasViolation> newCanvasCommand(final AbstractCanvasHandler context) { return new Abstract...
@Test public void testInit() { presenter.init(); verify( view ).init( presenter ); assertEquals( view, presenter.getView() ); }
@PostConstruct public void init() { view.init( this ); }
CardPresenter { @PostConstruct public void init() { view.init( this ); } }
CardPresenter { @PostConstruct public void init() { view.init( this ); } @Inject CardPresenter( final View view ); }
CardPresenter { @PostConstruct public void init() { view.init( this ); } @Inject CardPresenter( final View view ); @PostConstruct void init(); View getView(); void addTitle( final TitlePresenter titlePresenter ); void addBody( final BodyPresenter bodyPresenter ); void addFooter( final FooterPresenter footerPresenter )...
CardPresenter { @PostConstruct public void init() { view.init( this ); } @Inject CardPresenter( final View view ); @PostConstruct void init(); View getView(); void addTitle( final TitlePresenter titlePresenter ); void addBody( final BodyPresenter bodyPresenter ); void addFooter( final FooterPresenter footerPresenter )...
@Test public void testAddTitle() { TitlePresenter titlePresenter = mock( TitlePresenter.class ); presenter.addTitle( titlePresenter ); verify( titlePresenter ).getView(); verify( view ).add( titlePresenter.getView() ); }
public void addTitle( final TitlePresenter titlePresenter ) { view.add( titlePresenter.getView() ); }
CardPresenter { public void addTitle( final TitlePresenter titlePresenter ) { view.add( titlePresenter.getView() ); } }
CardPresenter { public void addTitle( final TitlePresenter titlePresenter ) { view.add( titlePresenter.getView() ); } @Inject CardPresenter( final View view ); }
CardPresenter { public void addTitle( final TitlePresenter titlePresenter ) { view.add( titlePresenter.getView() ); } @Inject CardPresenter( final View view ); @PostConstruct void init(); View getView(); void addTitle( final TitlePresenter titlePresenter ); void addBody( final BodyPresenter bodyPresenter ); void addFo...
CardPresenter { public void addTitle( final TitlePresenter titlePresenter ) { view.add( titlePresenter.getView() ); } @Inject CardPresenter( final View view ); @PostConstruct void init(); View getView(); void addTitle( final TitlePresenter titlePresenter ); void addBody( final BodyPresenter bodyPresenter ); void addFo...
@Test public void testAddBody() { BodyPresenter bodyPresenter = mock( BodyPresenter.class ); presenter.addBody( bodyPresenter ); verify( bodyPresenter ).getView(); verify( view ).add( bodyPresenter.getView() ); }
public void addBody( final BodyPresenter bodyPresenter ) { view.add( bodyPresenter.getView() ); }
CardPresenter { public void addBody( final BodyPresenter bodyPresenter ) { view.add( bodyPresenter.getView() ); } }
CardPresenter { public void addBody( final BodyPresenter bodyPresenter ) { view.add( bodyPresenter.getView() ); } @Inject CardPresenter( final View view ); }
CardPresenter { public void addBody( final BodyPresenter bodyPresenter ) { view.add( bodyPresenter.getView() ); } @Inject CardPresenter( final View view ); @PostConstruct void init(); View getView(); void addTitle( final TitlePresenter titlePresenter ); void addBody( final BodyPresenter bodyPresenter ); void addFooter...
CardPresenter { public void addBody( final BodyPresenter bodyPresenter ) { view.add( bodyPresenter.getView() ); } @Inject CardPresenter( final View view ); @PostConstruct void init(); View getView(); void addTitle( final TitlePresenter titlePresenter ); void addBody( final BodyPresenter bodyPresenter ); void addFooter...
@Test public void testAddFooter() { FooterPresenter footerPresenter = mock( FooterPresenter.class ); presenter.addFooter( footerPresenter ); verify( footerPresenter ).getView(); verify( view ).add( footerPresenter.getView() ); }
public void addFooter( final FooterPresenter footerPresenter ) { view.add( footerPresenter.getView() ); }
CardPresenter { public void addFooter( final FooterPresenter footerPresenter ) { view.add( footerPresenter.getView() ); } }
CardPresenter { public void addFooter( final FooterPresenter footerPresenter ) { view.add( footerPresenter.getView() ); } @Inject CardPresenter( final View view ); }
CardPresenter { public void addFooter( final FooterPresenter footerPresenter ) { view.add( footerPresenter.getView() ); } @Inject CardPresenter( final View view ); @PostConstruct void init(); View getView(); void addTitle( final TitlePresenter titlePresenter ); void addBody( final BodyPresenter bodyPresenter ); void a...
CardPresenter { public void addFooter( final FooterPresenter footerPresenter ) { view.add( footerPresenter.getView() ); } @Inject CardPresenter( final View view ); @PostConstruct void init(); View getView(); void addTitle( final TitlePresenter titlePresenter ); void addBody( final BodyPresenter bodyPresenter ); void a...
@Test public void testInit() { assertEquals(view, presenter.getView()); }
public View getView() { return view; }
FooterPresenter { public View getView() { return view; } }
FooterPresenter { public View getView() { return view; } @Inject FooterPresenter(final View view); }
FooterPresenter { public View getView() { return view; } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); }
FooterPresenter { public View getView() { return view; } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); }
@Test public void testSetup() { final String url = "url"; final String version = "1.0.1"; presenter.setup(url, version); verify(presenter).setupVersion(version); verify(presenter).setupUrl(url); }
public void setup(final String url, final String version) { setupVersion(version); setupUrl(url); }
FooterPresenter { public void setup(final String url, final String version) { setupVersion(version); setupUrl(url); } }
FooterPresenter { public void setup(final String url, final String version) { setupVersion(version); setupUrl(url); } @Inject FooterPresenter(final View view); }
FooterPresenter { public void setup(final String url, final String version) { setupVersion(version); setupUrl(url); } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); }
FooterPresenter { public void setup(final String url, final String version) { setupVersion(version); setupUrl(url); } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); }
@Test public void testSetupVersion() { final String version = "1.0.1"; presenter.setupVersion(version); verify(view).setupVersion(version); }
void setupVersion(final String version) { view.setupVersion(version); }
FooterPresenter { void setupVersion(final String version) { view.setupVersion(version); } }
FooterPresenter { void setupVersion(final String version) { view.setupVersion(version); } @Inject FooterPresenter(final View view); }
FooterPresenter { void setupVersion(final String version) { view.setupVersion(version); } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); }
FooterPresenter { void setupVersion(final String version) { view.setupVersion(version); } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); }
@Test public void testMakeOnSuccess() { final String url = "http: doCallRealMethod().when(presenter).makeOnSuccess(url); presenter.makeOnSuccess(url).execute(); verify(view).setupUrl(url); }
Command makeOnSuccess(final String url) { return () -> view.setupUrl(url); }
FooterPresenter { Command makeOnSuccess(final String url) { return () -> view.setupUrl(url); } }
FooterPresenter { Command makeOnSuccess(final String url) { return () -> view.setupUrl(url); } @Inject FooterPresenter(final View view); }
FooterPresenter { Command makeOnSuccess(final String url) { return () -> view.setupUrl(url); } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); }
FooterPresenter { Command makeOnSuccess(final String url) { return () -> view.setupUrl(url); } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); }
@Test public void testMakeOnError() { doCallRealMethod().when(presenter).makeOnError(); presenter.makeOnError().execute(); verify(view).hideUrlElements(); }
Command makeOnError() { return view::hideUrlElements; }
FooterPresenter { Command makeOnError() { return view::hideUrlElements; } }
FooterPresenter { Command makeOnError() { return view::hideUrlElements; } @Inject FooterPresenter(final View view); }
FooterPresenter { Command makeOnError() { return view::hideUrlElements; } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); }
FooterPresenter { Command makeOnError() { return view::hideUrlElements; } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); }
@Test public void testMakeRequest() { final String url = "http: final String none = "none"; final RequestCallback callback = mock(RequestCallback.class); final String expectedHTTPMethod = RequestBuilder.GET.toString(); doReturn(callback).when(presenter).makeCallback(onSuccess, onError); final RequestBuilder builder = p...
RequestBuilder makeRequest(final String url, final Command onSuccess, final Command onError) { final RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url); final String none = "none"; builder.setUser(none); builder.setPassword(none); builder.setCallback(makeCallback(onSuccess, onError)); builder.setHeade...
FooterPresenter { RequestBuilder makeRequest(final String url, final Command onSuccess, final Command onError) { final RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url); final String none = "none"; builder.setUser(none); builder.setPassword(none); builder.setCallback(makeCallback(onSuccess, onError))...
FooterPresenter { RequestBuilder makeRequest(final String url, final Command onSuccess, final Command onError) { final RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url); final String none = "none"; builder.setUser(none); builder.setPassword(none); builder.setCallback(makeCallback(onSuccess, onError))...
FooterPresenter { RequestBuilder makeRequest(final String url, final Command onSuccess, final Command onError) { final RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url); final String none = "none"; builder.setUser(none); builder.setPassword(none); builder.setCallback(makeCallback(onSuccess, onError))...
FooterPresenter { RequestBuilder makeRequest(final String url, final Command onSuccess, final Command onError) { final RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url); final String none = "none"; builder.setUser(none); builder.setPassword(none); builder.setCallback(makeCallback(onSuccess, onError))...
@Test public void testGraphCommandAllow() { makeCommand(); final Command<GraphCommandExecutionContext, RuleViolation> c = command.newGraphCommand(handler); assertEquals(GraphCommandResultBuilder.SUCCESS, c.allow(gce)); }
@Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler handler) { return new AbstractGraphCommand() { @Override protected CommandResult<RuleViolation> check(final GraphCommandExecutionContext gce) { return GraphCommandResultBuilder.SUCCESS; } @Override publi...
DeleteRelationColumnCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler ha...
DeleteRelationColumnCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler ha...
DeleteRelationColumnCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler ha...
DeleteRelationColumnCommand extends AbstractCanvasGraphCommand implements VetoExecutionCommand, VetoUndoCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler ha...
@Test public void testCallbackOnError() { final Throwable throwable = mock(Throwable.class); final RequestCallback callback = presenter.makeCallback(onSuccess, onError); callback.onError(request, throwable); verify(onError).execute(); verify(onSuccess, never()).execute(); }
RequestCallback makeCallback(final Command onSuccess, final Command onError) { return new RequestCallback() { public void onResponseReceived(final Request request, final Response response) { if (isKieServerAccessible(response)) { onSuccess.execute(); } else { onError.execute(); } } public void onError(final Request req...
FooterPresenter { RequestCallback makeCallback(final Command onSuccess, final Command onError) { return new RequestCallback() { public void onResponseReceived(final Request request, final Response response) { if (isKieServerAccessible(response)) { onSuccess.execute(); } else { onError.execute(); } } public void onError...
FooterPresenter { RequestCallback makeCallback(final Command onSuccess, final Command onError) { return new RequestCallback() { public void onResponseReceived(final Request request, final Response response) { if (isKieServerAccessible(response)) { onSuccess.execute(); } else { onError.execute(); } } public void onError...
FooterPresenter { RequestCallback makeCallback(final Command onSuccess, final Command onError) { return new RequestCallback() { public void onResponseReceived(final Request request, final Response response) { if (isKieServerAccessible(response)) { onSuccess.execute(); } else { onError.execute(); } } public void onError...
FooterPresenter { RequestCallback makeCallback(final Command onSuccess, final Command onError) { return new RequestCallback() { public void onResponseReceived(final Request request, final Response response) { if (isKieServerAccessible(response)) { onSuccess.execute(); } else { onError.execute(); } } public void onError...
@Test public void testIsKieServerAccessibleWhenStatusCodeIs200() { when(response.getStatusCode()).thenReturn(200); assertTrue(presenter.isKieServerAccessible(response)); }
boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; }
FooterPresenter { boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; } }
FooterPresenter { boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; } @Inject FooterPresenter(final View view); }
FooterPresenter { boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); ...
FooterPresenter { boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); ...
@Test public void testIsKieServerAccessibleWhenStatusCodeIs401() { when(response.getStatusCode()).thenReturn(401); assertTrue(presenter.isKieServerAccessible(response)); }
boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; }
FooterPresenter { boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; } }
FooterPresenter { boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; } @Inject FooterPresenter(final View view); }
FooterPresenter { boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); ...
FooterPresenter { boolean isKieServerAccessible(final Response response) { final int statusCode = response.getStatusCode(); return statusCode == SC_OK || statusCode == SC_UNAUTHORIZED; } @Inject FooterPresenter(final View view); View getView(); void setup(final String url, final String version); ...