net.sourceforge.swimp.test.coin
Class AbstractTestCoinPackedVectorBase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.swimp.test.util.SwimpBaseTestCase
              extended by net.sourceforge.swimp.test.coin.AbstractTestCoinPackedVectorBase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
TestCoinPackedVector, TestCoinShallowPackedVector

public abstract class AbstractTestCoinPackedVectorBase
extends SwimpBaseTestCase

Author:
schickin

Field Summary
protected static double[] denseValues
           
protected static int[] indices
           
protected static double[] values
           
 
Fields inherited from class net.sourceforge.swimp.test.util.SwimpBaseTestCase
tmpFilePrefix, tmpFileSuffix
 
Constructor Summary
AbstractTestCoinPackedVectorBase(java.lang.String arg0)
          Constructor for AbstractTestCoinPackedVectorBase.
 
Method Summary
protected abstract  CoinPackedVectorBase getVector()
          Return a vector based on the static indices and values for the fixture.
protected  void setUp()
           
protected  void tearDown()
           
 void testDenseVectorAccess()
           
 void testDotProd()
           
 void testEquals()
           
 void testEquivalent()
           
 void testFindIndex()
           
 void testGetElement()
           
 void testGetElements()
           
 void testGetIndex()
           
 void testGetIndices()
           
 void testGetItem()
           
 void testGetNumElements()
           
 void testInfNorm()
           
 void testIsExistingIndex()
           
 void testMinMaxIndex()
           
 void testOneNorm()
           
 void testSumValues()
           
 void testTwoNorm()
           
 
Methods inherited from class net.sourceforge.swimp.test.util.SwimpBaseTestCase
getSwimpProperties, getSwimpRootDir, getTestDataFile
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

indices

protected static final int[] indices

values

protected static final double[] values

denseValues

protected static final double[] denseValues
Constructor Detail

AbstractTestCoinPackedVectorBase

public AbstractTestCoinPackedVectorBase(java.lang.String arg0)
Constructor for AbstractTestCoinPackedVectorBase.

Parameters:
arg0 -
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class SwimpBaseTestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class SwimpBaseTestCase
Throws:
java.lang.Exception

getVector

protected abstract CoinPackedVectorBase getVector()
Return a vector based on the static indices and values for the fixture.

Returns:
a vector for the fixture

testGetNumElements

public void testGetNumElements()

testGetIndices

public void testGetIndices()

testGetElements

public void testGetElements()

testGetElement

public void testGetElement()

testGetIndex

public void testGetIndex()

testDenseVectorAccess

public void testDenseVectorAccess()

testGetItem

public void testGetItem()

testMinMaxIndex

public void testMinMaxIndex()

testIsExistingIndex

public void testIsExistingIndex()

testFindIndex

public void testFindIndex()

testEquals

public void testEquals()

testEquivalent

public void testEquivalent()

testOneNorm

public void testOneNorm()

testTwoNorm

public void testTwoNorm()

testInfNorm

public void testInfNorm()

testSumValues

public void testSumValues()

testDotProd

public void testDotProd()