@Test public void getMultiUserChat () throws Exception { EntityBareJid roomName = JidCreate.entityBareFrom(USER_1); AbstractXMPPConnection abstractXMPPConnection = Mockito.mock(AbstractXMPPConnection.class); MultiUserChat multiUserChat = xmppNotification.getMultiUserChat(abstractXMPPConnection, roomName); assertThat(roomName, equalTo(multiUserChat.getRoom())); }
MultiUserChat getMultiUserChat (AbstractXMPPConnection connection, EntityBareJid jid) throws XmppStringprepException { MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection); return manager.getMultiUserChat(JidCreate.entityBareFrom(jid)); }
XMPPNotification implements NotificationMethods { MultiUserChat getMultiUserChat (AbstractXMPPConnection connection, EntityBareJid jid) throws XmppStringprepException { MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection); return manager.getMultiUserChat(JidCreate.entityBareFrom(jid)); } }
XMPPNotification implements NotificationMethods { MultiUserChat getMultiUserChat (AbstractXMPPConnection connection, EntityBareJid jid) throws XmppStringprepException { MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection); return manager.getMultiUserChat(JidCreate.entityBareFrom(jid)); } @Autowired  XMPPNotification(); }
XMPPNotification implements NotificationMethods { MultiUserChat getMultiUserChat (AbstractXMPPConnection connection, EntityBareJid jid) throws XmppStringprepException { MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection); return manager.getMultiUserChat(JidCreate.entityBareFrom(jid)); } @Autowired  XMPPNotification(); @Override void logNotification(ChaosNotification notification); }
XMPPNotification implements NotificationMethods { MultiUserChat getMultiUserChat (AbstractXMPPConnection connection, EntityBareJid jid) throws XmppStringprepException { MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection); return manager.getMultiUserChat(JidCreate.entityBareFrom(jid)); } @Autowired  XMPPNotification(); @Override void logNotification(ChaosNotification notification);  }