org.jivesoftware.smack
Class ChatConnectionTest

java.lang.Object
  extended by org.jivesoftware.smack.ChatConnectionTest

public class ChatConnectionTest
extends java.lang.Object

Tests that verifies the correct behavior of the Roster implementation.

Author:
Guenther Niess
See Also:
Roster, Roster Management

Constructor Summary
ChatConnectionTest()
           
 
Method Summary
 void chatCreatedWhenIncomingChatNoThreadFullJid()
          Confirm that a new chat is created when a chat message is received but there is no thread id for a user with a full jid.
 void chatCreatedWithIncomingChatNoThreadBaseJid()
          Confirm that a new chat is created when a chat message is received but there is no thread id for a user with only a base jid.
 void chatFoundWhenNoThreadBaseJid()
          Confirm that an existing chat created with a base jid is matched to an incoming chat message that has no thread id and the user is a base jid.
 void chatFoundWhenNoThreadFullJid()
          Confirm that an existing chat created with a base jid is matched to an incoming chat message that has no thread id and the user is a full jid.
 void chatFoundWithSameThreadBaseJid()
          Confirm that an existing chat created with a base jid is matched to an incoming chat message that has the same id and the user is a base jid.
 void chatFoundWithSameThreadFullJid()
          Confirm that an existing chat created with a base jid is matched to an incoming chat message that has the same id and the user is a full jid.
 void chatNotFoundWithDiffThreadBaseJid()
          Confirm that an existing chat created with a base jid is not matched to an incoming chat message that has a different id and the same user as a base jid.
 void chatNotFoundWithDiffThreadFullJid()
          Confirm that an existing chat created with a base jid is not matched to an incoming chat message that has a different id and the same base jid.
 void setUp()
           
 void tearDown()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatConnectionTest

public ChatConnectionTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Throws:
java.lang.Exception

chatCreatedWithIncomingChatNoThreadBaseJid

public void chatCreatedWithIncomingChatNoThreadBaseJid()
Confirm that a new chat is created when a chat message is received but there is no thread id for a user with only a base jid.


chatCreatedWhenIncomingChatNoThreadFullJid

public void chatCreatedWhenIncomingChatNoThreadFullJid()
Confirm that a new chat is created when a chat message is received but there is no thread id for a user with a full jid.


chatFoundWhenNoThreadFullJid

public void chatFoundWhenNoThreadFullJid()
Confirm that an existing chat created with a base jid is matched to an incoming chat message that has no thread id and the user is a full jid.


chatFoundWhenNoThreadBaseJid

public void chatFoundWhenNoThreadBaseJid()
Confirm that an existing chat created with a base jid is matched to an incoming chat message that has no thread id and the user is a base jid.


chatFoundWithSameThreadFullJid

public void chatFoundWithSameThreadFullJid()
Confirm that an existing chat created with a base jid is matched to an incoming chat message that has the same id and the user is a full jid.


chatFoundWithSameThreadBaseJid

public void chatFoundWithSameThreadBaseJid()
Confirm that an existing chat created with a base jid is matched to an incoming chat message that has the same id and the user is a base jid.


chatNotFoundWithDiffThreadBaseJid

public void chatNotFoundWithDiffThreadBaseJid()
Confirm that an existing chat created with a base jid is not matched to an incoming chat message that has a different id and the same user as a base jid.


chatNotFoundWithDiffThreadFullJid

public void chatNotFoundWithDiffThreadFullJid()
Confirm that an existing chat created with a base jid is not matched to an incoming chat message that has a different id and the same base jid.