com.web_visage.ichat
Class TestIChatMessage

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

public class TestIChatMessage
extends junit.framework.TestCase

Test case for IChatMessage

Author:
K.Baturytski

Constructor Summary
TestIChatMessage()
           
 
Method Summary
 void testAsByteArray()
          Tests bytes array conversion
 void testAsByteArrayParameterless()
          Tests bytes array conversion
 void testEquals()
          Tests equals funtion
 void testGetCmd()
          Tests command getter
 void testGetParameter()
           
 void testGetParams()
          Tests parameters getter
 void testGetParamsNull()
          Checks that the parameters getter returns empty array when null parameters array is given
 void testGetSender()
          Tests sender getter
 void testGetSize()
          Tests getSize funtion
 void testHashCode()
          Tests hashCode() function
 
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

TestIChatMessage

public TestIChatMessage()
Method Detail

testGetCmd

public void testGetCmd()
Tests command getter


testGetSender

public void testGetSender()
Tests sender getter


testGetParams

public void testGetParams()
Tests parameters getter


testGetParameter

public void testGetParameter()

testGetParamsNull

public void testGetParamsNull()
Checks that the parameters getter returns empty array when null parameters array is given


testAsByteArray

public void testAsByteArray()
Tests bytes array conversion


testAsByteArrayParameterless

public void testAsByteArrayParameterless()
Tests bytes array conversion


testGetSize

public void testGetSize()
Tests getSize funtion


testEquals

public void testEquals()
                throws java.lang.NumberFormatException,
                       EnumerationValueNotFoundException
Tests equals funtion

Throws:
EnumerationValueNotFoundException
java.lang.NumberFormatException

testHashCode

public void testHashCode()
                  throws java.lang.NumberFormatException,
                         EnumerationValueNotFoundException
Tests hashCode() function

Throws:
EnumerationValueNotFoundException
java.lang.NumberFormatException