Package com.calclab.emite.xep.muc

Examples of com.calclab.emite.xep.muc.RoomChat.addOccupantChangedHandler()


  @Test
  public void shouldIgnoreLetterCaseInURIS() {
    final RoomChat room = manager.open(uri("ROOM@domain/nick"));
    final OccupantChangedTestHandler handler = new OccupantChangedTestHandler();
    room.addOccupantChangedHandler(handler);
    session.receives("<presence to='user@domain/resource' xmlns='jabber:client' from='ROom@domain/otherUser'>"
        + "<x xmlns='http://jabber.org/protocol/muc#user'>" + "<item role='moderator' affiliation='owner' jid='user@domain' /></x></presence>");
    assertTrue(handler.isCalledOnce());
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.