@Test public void testSetServerTemplate() { final ServerTemplate serverTemplate = new ServerTemplate( "ServerTemplateId", "ServerTemplateName" ); serverTemplate.getCapabilities().add( Capability.PROCESS.toString() ); newContainerWizard.setServerTemplate( serverTemplate ); verify( newContainerFormPresenter ).setServerTemplate( serverTemplate ); assertEquals( 2, newContainerWizard.getPages().size() ); assertTrue( newContainerWizard.getPages().contains( newContainerFormPresenter ) ); assertTrue( newContainerWizard.getPages().contains( processConfigPagePresenter ) ); }
public void setServerTemplate( final ServerTemplate serverTemplate ) { this.serverTemplate = serverTemplate; newContainerFormPresenter.setServerTemplate( serverTemplate ); pages.clear(); pages.add( newContainerFormPresenter ); if ( serverTemplate.getCapabilities().contains( Capability.PROCESS.toString() ) ) { pages.add( processConfigPagePresenter ); } }
NewContainerWizard extends AbstractMultiPageWizard { public void setServerTemplate( final ServerTemplate serverTemplate ) { this.serverTemplate = serverTemplate; newContainerFormPresenter.setServerTemplate( serverTemplate ); pages.clear(); pages.add( newContainerFormPresenter ); if ( serverTemplate.getCapabilities().contains( Capability.PROCESS.toString() ) ) { pages.add( processConfigPagePresenter ); } } }
NewContainerWizard extends AbstractMultiPageWizard { public void setServerTemplate( final ServerTemplate serverTemplate ) { this.serverTemplate = serverTemplate; newContainerFormPresenter.setServerTemplate( serverTemplate ); pages.clear(); pages.add( newContainerFormPresenter ); if ( serverTemplate.getCapabilities().contains( Capability.PROCESS.toString() ) ) { pages.add( processConfigPagePresenter ); } } @Inject  NewContainerWizard(final NewContainerFormPresenter newContainerFormPresenter,
                              final ProcessConfigPagePresenter processConfigPagePresenter,
                              final Caller<SpecManagementService> specManagementService,
                              final Event<NotificationEvent> notification,
                              final Event<ServerTemplateSelected> serverTemplateSelectedEvent,
                              final Event<DependencyPathSelectedEvent> dependencyPathSelectedEvent,
                              final Caller<M2RepoService> m2RepoService,
                              final ConfirmPopup confirmPopup); }
NewContainerWizard extends AbstractMultiPageWizard { public void setServerTemplate( final ServerTemplate serverTemplate ) { this.serverTemplate = serverTemplate; newContainerFormPresenter.setServerTemplate( serverTemplate ); pages.clear(); pages.add( newContainerFormPresenter ); if ( serverTemplate.getCapabilities().contains( Capability.PROCESS.toString() ) ) { pages.add( processConfigPagePresenter ); } } @Inject  NewContainerWizard(final NewContainerFormPresenter newContainerFormPresenter,
                              final ProcessConfigPagePresenter processConfigPagePresenter,
                              final Caller<SpecManagementService> specManagementService,
                              final Event<NotificationEvent> notification,
                              final Event<ServerTemplateSelected> serverTemplateSelectedEvent,
                              final Event<DependencyPathSelectedEvent> dependencyPathSelectedEvent,
                              final Caller<M2RepoService> m2RepoService,
                              final ConfirmPopup confirmPopup); @Override void start(); @Override String getTitle(); @Override int getPreferredHeight(); @Override int getPreferredWidth(); void setServerTemplate( final ServerTemplate serverTemplate ); void clear(); @Override void close(); @Override void complete(); void onDependencyPathSelectedEvent(@Observes DependencyPathSelectedEvent event); @Override void pageSelected(final int pageNumber); }
NewContainerWizard extends AbstractMultiPageWizard { public void setServerTemplate( final ServerTemplate serverTemplate ) { this.serverTemplate = serverTemplate; newContainerFormPresenter.setServerTemplate( serverTemplate ); pages.clear(); pages.add( newContainerFormPresenter ); if ( serverTemplate.getCapabilities().contains( Capability.PROCESS.toString() ) ) { pages.add( processConfigPagePresenter ); } } @Inject  NewContainerWizard(final NewContainerFormPresenter newContainerFormPresenter,
                              final ProcessConfigPagePresenter processConfigPagePresenter,
                              final Caller<SpecManagementService> specManagementService,
                              final Event<NotificationEvent> notification,
                              final Event<ServerTemplateSelected> serverTemplateSelectedEvent,
                              final Event<DependencyPathSelectedEvent> dependencyPathSelectedEvent,
                              final Caller<M2RepoService> m2RepoService,
                              final ConfirmPopup confirmPopup); @Override void start(); @Override String getTitle(); @Override int getPreferredHeight(); @Override int getPreferredWidth(); void setServerTemplate( final ServerTemplate serverTemplate ); void clear(); @Override void close(); @Override void complete(); void onDependencyPathSelectedEvent(@Observes DependencyPathSelectedEvent event); @Override void pageSelected(final int pageNumber);  }