@Test( expected = IOException.class ) public void testSendMessageToTheDm_messagingError() throws Exception { Mockito.verifyZeroInteractions( this.msgClient ); Mockito.doThrow( new IOException( "for test" )).when( this.msgClient ).sendMessageToTheDm( Mockito.any( MsgCmdRemoveInstance.class )); this.mngr.sendMessageToTheDm( new MsgCmdRemoveInstance( "/" )); }
@Override public void sendMessageToTheDm( Message message ) throws IOException { this.messagingClient.sendMessageToTheDm( message ); }
MessagingMngrImpl implements IMessagingMngr { @Override public void sendMessageToTheDm( Message message ) throws IOException { this.messagingClient.sendMessageToTheDm( message ); } }
MessagingMngrImpl implements IMessagingMngr { @Override public void sendMessageToTheDm( Message message ) throws IOException { this.messagingClient.sendMessageToTheDm( message ); }  }
MessagingMngrImpl implements IMessagingMngr { @Override public void sendMessageToTheDm( Message message ) throws IOException { this.messagingClient.sendMessageToTheDm( message ); }  void setMessagingClient( RCDm messagingClient ); @Override void sendMessageSafely( ManagedApplication ma, Instance instance, Message message ); @Override void sendMessageDirectly( ManagedApplication ma, Instance scopedInstance, Message message ); @Override void sendStoredMessages( ManagedApplication ma, Instance instance ); @Override void sendMessageToTheDm( Message message ); @Override IDmClient getMessagingClient(); @Override void checkMessagingConfiguration(); }
MessagingMngrImpl implements IMessagingMngr { @Override public void sendMessageToTheDm( Message message ) throws IOException { this.messagingClient.sendMessageToTheDm( message ); }  void setMessagingClient( RCDm messagingClient ); @Override void sendMessageSafely( ManagedApplication ma, Instance instance, Message message ); @Override void sendMessageDirectly( ManagedApplication ma, Instance scopedInstance, Message message ); @Override void sendStoredMessages( ManagedApplication ma, Instance instance ); @Override void sendMessageToTheDm( Message message ); @Override IDmClient getMessagingClient(); @Override void checkMessagingConfiguration();  }