Package com.calclab.emite.im.chat

Examples of com.calclab.emite.im.chat.ChatProperties


  @Before
  public void beforeTests() {
    eventBus = new SimpleEventBus();
    session = new XmppSessionTester();
    properties = new ChatProperties(CHAT, ME, ChatStatus.ready);
    chat = new PairChat(eventBus, session, properties);
    beforeSendHandler = new BeforeMessageSentTestHandler();
    chat.addBeforeMessageSentHandler(beforeSendHandler);
    sentHandler = new MessageSentTestHandler();
    chat.addMessageSentHandler(sentHandler);
View Full Code Here


    manager.addRoomChatChangedHandler(chatCreatedHandler);

    final String reason = "theReason";
    final XmppURI invitor = uri("friend@host/resource");
    final XmppURI roomURI = uri("room@room.service");
    final ChatProperties properties = new ChatProperties(roomURI);
    final String testDataKey = "TEST_KEY";
    final String testDataValue = "TEST_VALUE";
    properties.setData(testDataKey, testDataValue);
    manager.acceptRoomInvitation(new RoomInvitation(invitor, roomURI, reason, properties));
    final RoomChat room = chatCreatedHandler.getLastChat();
    assertEquals("Chat property not preserved", testDataValue, room.getProperties().getData(testDataKey));
  }
View Full Code Here

TOP

Related Classes of com.calclab.emite.im.chat.ChatProperties

Copyright © 2018 www.massapicom. 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.