org.apache.commons.math.util
Class ResizableDoubleArrayTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.math.util.DoubleArrayAbstractTest
              extended by org.apache.commons.math.util.ResizableDoubleArrayTest
All Implemented Interfaces:
junit.framework.Test

public class ResizableDoubleArrayTest
extends DoubleArrayAbstractTest

This class contains test cases for the ResizableDoubleArray.

Version:
$Revision: 762087 $ $Date: 2009-04-05 10:20:18 -0400 (Sun, 05 Apr 2009) $

Field Summary
 
Fields inherited from class org.apache.commons.math.util.DoubleArrayAbstractTest
da, ra
 
Constructor Summary
ResizableDoubleArrayTest(String name)
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testAdd1000()
           
 void testAddElementRolling()
           
 void testConstructors()
           
 void testDiscard()
           
 void testEqualsAndHashCode()
           
 void testMutators()
           
 void testSetElementArbitraryExpansion()
           
 void testSetNumberOfElements()
           
 void testSubstitute()
           
 void testWithInitialCapacity()
           
 void testWithInitialCapacityAndExpansionFactor()
           
 
Methods inherited from class org.apache.commons.math.util.DoubleArrayAbstractTest
testGetValues, testMinMax
 
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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResizableDoubleArrayTest

public ResizableDoubleArrayTest(String name)
Method Detail

tearDown

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

setUp

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

testConstructors

public void testConstructors()

testSetElementArbitraryExpansion

public void testSetElementArbitraryExpansion()

testAdd1000

public void testAdd1000()
Overrides:
testAdd1000 in class DoubleArrayAbstractTest

testAddElementRolling

public void testAddElementRolling()
Overrides:
testAddElementRolling in class DoubleArrayAbstractTest

testSetNumberOfElements

public void testSetNumberOfElements()

testWithInitialCapacity

public void testWithInitialCapacity()

testWithInitialCapacityAndExpansionFactor

public void testWithInitialCapacityAndExpansionFactor()

testDiscard

public void testDiscard()

testSubstitute

public void testSubstitute()

testMutators

public void testMutators()

testEqualsAndHashCode

public void testEqualsAndHashCode()
                           throws Exception
Throws:
Exception


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.