FileDocCategorySizeDatePackage
HeapByteBufferTest.javaAPI DocAndroid 1.5 API1774Wed May 06 22:41:04 BST 2009org.apache.harmony.nio.tests.java.nio

HeapByteBufferTest

public class HeapByteBufferTest extends ByteBufferTest

Fields Summary
Constructors Summary
Methods Summary
protected voidsetUp()

   
        super.setUp();
    
protected voidtearDown()

        super.tearDown();
    
public voidtestAllocatedByteBuffer_IllegalArg()

tests
java.nio.ByteBuffer#allocate(int)

        try {
            ByteBuffer.allocate(-1);
            fail("Should throw Exception"); //$NON-NLS-1$
        } catch (IllegalArgumentException e) {
            // expected 
        }