com.web_visage.ichat
Class TestIChatUserList

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

public class TestIChatUserList
extends junit.framework.TestCase

Test suite for the IChatUserListclass.

Author:
K.Baturytski

Constructor Summary
TestIChatUserList()
           
 
Method Summary
 void testAddUser()
          Tests adding a new user to the list.
 void testContains()
          Tests contains method.
 void testGetUser()
          Tests getting the user information assotiated with the sender.
 void testGetUserEmpty()
          Tests getting the user information for empty list.
 void testGetUsers()
          Tests getting users from the list.
 void testIsActive()
          Tests isActive() method.
 void testIsActiveEmpty()
          Tests isActive() method behavior for a non-existing user.
 void testRemoveAll()
          Tests removing of all users.
 void testRemoveInactive()
          Tests removing of the inactive users.
 void testRemoveUser()
          Tests removing of a user.
 void testSize()
          Tests 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

TestIChatUserList

public TestIChatUserList()
Method Detail

testAddUser

public void testAddUser()
Tests adding a new user to the list.


testGetUsers

public void testGetUsers()
Tests getting users from the list.


testGetUser

public void testGetUser()
Tests getting the user information assotiated with the sender.


testGetUserEmpty

public void testGetUserEmpty()
Tests getting the user information for empty list.


testContains

public void testContains()
Tests contains method.


testRemoveAll

public void testRemoveAll()
Tests removing of all users.


testRemoveInactive

public void testRemoveInactive()
Tests removing of the inactive users.


testRemoveUser

public void testRemoveUser()
Tests removing of a user.


testSize

public void testSize()
Tests size() method.


testIsActiveEmpty

public void testIsActiveEmpty()
Tests isActive() method behavior for a non-existing user.


testIsActive

public void testIsActive()
Tests isActive() method.