com.web_visage.ichat
Class TestMessageQueue

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.web_visage.ichat.TestMessageQueue
All Implemented Interfaces:
junit.framework.Test

public class TestMessageQueue
extends junit.framework.TestCase

Tests the IncomingMessageQueueclass.

Author:
K.Baturytski

Constructor Summary
TestMessageQueue()
           
 
Method Summary
 void testAdd()
          Tests the IncomingMessageQueue.add(IChatMessage)method.
 void testClear()
          Tests the IncomingMessageQueue.clear()method.
 void testHasNext()
          Tests the IncomingMessageQueue.hasNext()method.
 void testNext()
          Tests the IncomingMessageQueue.next()method.
 void testNextEmpty()
          Tests the IncomingMessageQueue.next()method for an empty queue.
 void testSize()
          Tests the IncomingMessageQueue.size()method.
 
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

TestMessageQueue

public TestMessageQueue()
Method Detail

testAdd

public void testAdd()
Tests the IncomingMessageQueue.add(IChatMessage)method.


testHasNext

public void testHasNext()
Tests the IncomingMessageQueue.hasNext()method.


testNext

public void testNext()
Tests the IncomingMessageQueue.next()method.


testNextEmpty

public void testNextEmpty()
Tests the IncomingMessageQueue.next()method for an empty queue.


testSize

public void testSize()
Tests the IncomingMessageQueue.size()method.


testClear

public void testClear()
Tests the IncomingMessageQueue.clear()method.