org.jivesoftware.smackx
Class MessageEventManagerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jivesoftware.smack.test.SmackTestCase
              extended by org.jivesoftware.smackx.MessageEventManagerTest
All Implemented Interfaces:
junit.framework.Test

public class MessageEventManagerTest
extends SmackTestCase

Test the MessageEvent extension using the high level API.

Author:
Gaston Dombiak

Constructor Summary
MessageEventManagerTest(java.lang.String name)
           
 
Method Summary
 void testRequestsAndNotifications()
          High level API test.
 void testSendMessageEventRequest()
          High level API test.
 void testSendMessageEventRequestAndDisplayNotifications()
          High level API test.
 
Methods inherited from class org.jivesoftware.smack.test.SmackTestCase
assertEquals
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageEventManagerTest

public MessageEventManagerTest(java.lang.String name)
Method Detail

testSendMessageEventRequest

public void testSendMessageEventRequest()
High level API test. This is a simple test to use with a XMPP client and check if the client receives the message 1. User_1 will send a message to user_2 requesting to be notified when any of these events occurs: offline, composing, displayed or delivered


testSendMessageEventRequestAndDisplayNotifications

public void testSendMessageEventRequestAndDisplayNotifications()
High level API test. This is a simple test to use with a XMPP client, check if the client receives the message and display in the console any notification 1. User_1 will send a message to user_2 requesting to be notified when any of these events occurs: offline, composing, displayed or delivered 2. User_2 will use a XMPP client (like Exodus) to display the message and compose a reply 3. User_1 will display any notification that receives


testRequestsAndNotifications

public void testRequestsAndNotifications()
High level API test. 1. User_1 will send a message to user_2 requesting to be notified when any of these events occurs: offline, composing, displayed or delivered 2. User_2 will receive the message 3. User_2 will simulate that the message was displayed 4. User_2 will simulate that he/she is composing a reply 5. User_2 will simulate that he/she has cancelled the reply