com.mindtree.techworks.insight.remoteprotocol.util
Class ByteUtilsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.mindtree.techworks.insight.remoteprotocol.util.ByteUtilsTest
All Implemented Interfaces:
junit.framework.Test

public class ByteUtilsTest
extends junit.framework.TestCase

Tests for the ByteUtils class

Version:
$Revision: $ $Date: $
Author:
Bindul Bhowmik
See Also:
ByteUtils

Constructor Summary
ByteUtilsTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testGetByteArrayForCharacterArray()
          Test method for ByteUtils.getByteArrayForCharacterArray(char[]).
 void testGetByteArrayForInt()
          Test method for ByteUtils.getByteArrayForInt(int).
 void testGetByteArrayForShort()
          Test method for ByteUtils.getByteArrayForShort(short).
 void testGetByteArrayForString()
          Test method for ByteUtils.getByteArrayForString(java.lang.String).
 void testPutBytesInArrayForInt()
          Test method for ByteUtils.putBytesInArrayForInt(int, byte[], int).
 void testPutBytesInArrayForShort()
          Test method for ByteUtils.putBytesInArrayForShort(short, byte[], int).
 void testReadIntFromByteArray()
          Test method for ByteUtils.readIntFromByteArray(byte[], int).
 void testReadShortFromByteArray()
          Test method for ByteUtils.readShortFromByteArray(byte[], int).
 void testReadStringFromByteArray()
          Test method for ByteUtils.readStringFromByteArray(byte[], int, int)
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteUtilsTest

public ByteUtilsTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testReadShortFromByteArray

public void testReadShortFromByteArray()
Test method for ByteUtils.readShortFromByteArray(byte[], int).


testReadIntFromByteArray

public void testReadIntFromByteArray()
Test method for ByteUtils.readIntFromByteArray(byte[], int).


testGetByteArrayForShort

public void testGetByteArrayForShort()
Test method for ByteUtils.getByteArrayForShort(short).


testPutBytesInArrayForShort

public void testPutBytesInArrayForShort()
Test method for ByteUtils.putBytesInArrayForShort(short, byte[], int).


testGetByteArrayForInt

public void testGetByteArrayForInt()
Test method for ByteUtils.getByteArrayForInt(int).


testPutBytesInArrayForInt

public void testPutBytesInArrayForInt()
Test method for ByteUtils.putBytesInArrayForInt(int, byte[], int).


testGetByteArrayForString

public void testGetByteArrayForString()
Test method for ByteUtils.getByteArrayForString(java.lang.String).


testGetByteArrayForCharacterArray

public void testGetByteArrayForCharacterArray()
Test method for ByteUtils.getByteArrayForCharacterArray(char[]).


testReadStringFromByteArray

public void testReadStringFromByteArray()
Test method for ByteUtils.readStringFromByteArray(byte[], int, int)



Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.