org.apache.derbyTesting.unitTests.junit
Class ArrayInputStreamTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.derbyTesting.junit.BaseTestCase
              extended by org.apache.derbyTesting.unitTests.junit.ArrayInputStreamTest
All Implemented Interfaces:
junit.framework.Test

public class ArrayInputStreamTest
extends BaseTestCase

Unit tests for org.apache.derby.iapi.services.io.ArrayInputStream.


Field Summary
 
Fields inherited from class org.apache.derbyTesting.junit.BaseTestCase
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE
 
Constructor Summary
ArrayInputStreamTest(java.lang.String name)
           
 
Method Summary
static junit.framework.Test suite()
           
 void testSkipBytesIntMaxValue()
          Test that we don't get an overflow when the argument to skipBytes() is Integer.MAX_VALUE (DERBY-3739).
 void testSkipBytesNegative()
          Test that skipBytes() returns 0 when the argument is negative (DERBY-3739).
 void testSkipLongMaxValue()
          Test that we don't get an overflow when the argument to skip() is Long.MAX_VALUE (DERBY-3739).
 void testSkipNegative()
          Test that skip() returns 0 when the argument is negative (DERBY-3739).
 
Methods inherited from class org.apache.derbyTesting.junit.BaseTestCase
alarm, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertSecurityManager, assertThrowableEquals, execJavaCmd, fail, getFailureFolder, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeSystemProperty, runBare, setSystemProperty, traceit
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayInputStreamTest

public ArrayInputStreamTest(java.lang.String name)
Method Detail

suite

public static junit.framework.Test suite()

testSkipLongMaxValue

public void testSkipLongMaxValue()
                          throws java.io.IOException
Test that we don't get an overflow when the argument to skip() is Long.MAX_VALUE (DERBY-3739).

Throws:
java.io.IOException

testSkipBytesIntMaxValue

public void testSkipBytesIntMaxValue()
                              throws java.io.IOException
Test that we don't get an overflow when the argument to skipBytes() is Integer.MAX_VALUE (DERBY-3739).

Throws:
java.io.IOException

testSkipNegative

public void testSkipNegative()
                      throws java.io.IOException
Test that skip() returns 0 when the argument is negative (DERBY-3739).

Throws:
java.io.IOException

testSkipBytesNegative

public void testSkipBytesNegative()
                           throws java.io.IOException
Test that skipBytes() returns 0 when the argument is negative (DERBY-3739).

Throws:
java.io.IOException

Built on Sat 2009-11-28 18:44:18-0800, from revision 885187

Apache Derby V10.6 Internals - Copyright © 2004,2008 The Apache Software Foundation. All Rights Reserved.