org.jruby.util
Class ByteListTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jruby.util.ByteListTest
All Implemented Interfaces:
junit.framework.Test

public class ByteListTest
extends junit.framework.TestCase


Constructor Summary
ByteListTest()
           
 
Method Summary
 void testByteListAppendArray()
           
 void testByteListAppendArrayIndexLength()
           
 void testByteListAppendSingleByte()
           
 void testByteListAppendSingleIntTruncates()
           
 void testByteListPrependSingleByte()
           
 void testByteListWithInitialByteArray()
           
 void testByteListWithSubrangeOfInitialBytes()
           
 void testBytesCreatesACopyOfInternalBytes()
           
 void testCloneCopiesBytes()
           
 void testEmptyByteListHasZeroLength()
           
 void testEquals()
           
 void testGetAndSetOutsideOfLengthShouldFail()
           
 void testIndexOf()
           
 void testLastIndexOf()
           
 void testLengthExpandFillsWithZeros()
           
 void testMethodsThatTakeByteArrayDoNotAllowNull()
           
 void testReplaceIndexOffset()
           
 void testReplaceLengthOutOfBounds()
           
 void testReplaceSetsNewContents()
           
 void testReplaceStrings()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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

ByteListTest

public ByteListTest()
Method Detail

testEmptyByteListHasZeroLength

public void testEmptyByteListHasZeroLength()

testByteListWithInitialByteArray

public void testByteListWithInitialByteArray()

testByteListWithSubrangeOfInitialBytes

public void testByteListWithSubrangeOfInitialBytes()

testByteListAppendSingleByte

public void testByteListAppendSingleByte()

testByteListAppendSingleIntTruncates

public void testByteListAppendSingleIntTruncates()

testByteListPrependSingleByte

public void testByteListPrependSingleByte()

testByteListAppendArray

public void testByteListAppendArray()

testByteListAppendArrayIndexLength

public void testByteListAppendArrayIndexLength()

testLengthExpandFillsWithZeros

public void testLengthExpandFillsWithZeros()

testGetAndSetOutsideOfLengthShouldFail

public void testGetAndSetOutsideOfLengthShouldFail()

testMethodsThatTakeByteArrayDoNotAllowNull

public void testMethodsThatTakeByteArrayDoNotAllowNull()

testReplaceSetsNewContents

public void testReplaceSetsNewContents()

testReplaceIndexOffset

public void testReplaceIndexOffset()

testReplaceStrings

public void testReplaceStrings()
                        throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

testReplaceLengthOutOfBounds

public void testReplaceLengthOutOfBounds()

testEquals

public void testEquals()

testBytesCreatesACopyOfInternalBytes

public void testBytesCreatesACopyOfInternalBytes()

testCloneCopiesBytes

public void testCloneCopiesBytes()

testIndexOf

public void testIndexOf()

testLastIndexOf

public void testLastIndexOf()


Copyright © 2002-2007 JRuby Team. All Rights Reserved.