@Test public void testRun_noApplication() { CheckerForStoredMessagesTask task = new CheckerForStoredMessagesTask( this.appManager, this.messagingMngr ); task.run(); Mockito.verifyZeroInteractions( this.messagingMngr ); }
@Override public void run() { this.logger.finest( "The task that checks stored messages runs." ); for( ManagedApplication ma : this.appManager.getManagedApplications()) { for( Instance scopedInstance : InstanceHelpers.findAllScopedInstances( ma.getApplication())) this.messagingMngr.sendStoredMessages( ma, scopedInstance ); } }
CheckerForStoredMessagesTask extends TimerTask { @Override public void run() { this.logger.finest( "The task that checks stored messages runs." ); for( ManagedApplication ma : this.appManager.getManagedApplications()) { for( Instance scopedInstance : InstanceHelpers.findAllScopedInstances( ma.getApplication())) this.messagingMngr.sendStoredMessages( ma, scopedInstance ); } } }
CheckerForStoredMessagesTask extends TimerTask { @Override public void run() { this.logger.finest( "The task that checks stored messages runs." ); for( ManagedApplication ma : this.appManager.getManagedApplications()) { for( Instance scopedInstance : InstanceHelpers.findAllScopedInstances( ma.getApplication())) this.messagingMngr.sendStoredMessages( ma, scopedInstance ); } } CheckerForStoredMessagesTask( IApplicationMngr appManager, IMessagingMngr messagingMngr ); }
CheckerForStoredMessagesTask extends TimerTask { @Override public void run() { this.logger.finest( "The task that checks stored messages runs." ); for( ManagedApplication ma : this.appManager.getManagedApplications()) { for( Instance scopedInstance : InstanceHelpers.findAllScopedInstances( ma.getApplication())) this.messagingMngr.sendStoredMessages( ma, scopedInstance ); } } CheckerForStoredMessagesTask( IApplicationMngr appManager, IMessagingMngr messagingMngr ); @Override void run(); }
CheckerForStoredMessagesTask extends TimerTask { @Override public void run() { this.logger.finest( "The task that checks stored messages runs." ); for( ManagedApplication ma : this.appManager.getManagedApplications()) { for( Instance scopedInstance : InstanceHelpers.findAllScopedInstances( ma.getApplication())) this.messagingMngr.sendStoredMessages( ma, scopedInstance ); } } CheckerForStoredMessagesTask( IApplicationMngr appManager, IMessagingMngr messagingMngr ); @Override void run();  }