@Test public void testOnNewTemplate() { perspective.onNewTemplate( new AddNewServerTemplate() ); verify( newServerTemplateWizard ).clear(); verify( newServerTemplateWizard ).start(); }
public void onNewTemplate( @Observes final AddNewServerTemplate addNewServerTemplate ) { if ( addNewServerTemplate != null ) { newServerTemplateWizard.clear(); newServerTemplateWizard.start(); } else { logger.warn( "Illegal event argument." ); } }
ServerManagementPerspective { public void onNewTemplate( @Observes final AddNewServerTemplate addNewServerTemplate ) { if ( addNewServerTemplate != null ) { newServerTemplateWizard.clear(); newServerTemplateWizard.start(); } else { logger.warn( "Illegal event argument." ); } } }
ServerManagementPerspective { public void onNewTemplate( @Observes final AddNewServerTemplate addNewServerTemplate ) { if ( addNewServerTemplate != null ) { newServerTemplateWizard.clear(); newServerTemplateWizard.start(); } else { logger.warn( "Illegal event argument." ); } } @Inject  ServerManagementPerspective( final Logger logger,
                                        final NewServerTemplateWizard newServerTemplateWizard,
                                        final NewContainerWizard newContainerWizard ); }
ServerManagementPerspective { public void onNewTemplate( @Observes final AddNewServerTemplate addNewServerTemplate ) { if ( addNewServerTemplate != null ) { newServerTemplateWizard.clear(); newServerTemplateWizard.start(); } else { logger.warn( "Illegal event argument." ); } } @Inject  ServerManagementPerspective( final Logger logger,
                                        final NewServerTemplateWizard newServerTemplateWizard,
                                        final NewContainerWizard newContainerWizard ); @Perspective PerspectiveDefinition buildPerspective(); void onNewTemplate( @Observes final AddNewServerTemplate addNewServerTemplate ); void onNewContainer( @Observes final AddNewContainer addNewContainer ); }
ServerManagementPerspective { public void onNewTemplate( @Observes final AddNewServerTemplate addNewServerTemplate ) { if ( addNewServerTemplate != null ) { newServerTemplateWizard.clear(); newServerTemplateWizard.start(); } else { logger.warn( "Illegal event argument." ); } } @Inject  ServerManagementPerspective( final Logger logger,
                                        final NewServerTemplateWizard newServerTemplateWizard,
                                        final NewContainerWizard newContainerWizard ); @Perspective PerspectiveDefinition buildPerspective(); void onNewTemplate( @Observes final AddNewServerTemplate addNewServerTemplate ); void onNewContainer( @Observes final AddNewContainer addNewContainer );  }