cc.mallet.types.tests
Class TestHashedSparseVector

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by cc.mallet.types.tests.TestHashedSparseVector
All Implemented Interfaces:
junit.framework.Test

public class TestHashedSparseVector
extends junit.framework.TestCase


Constructor Summary
TestHashedSparseVector(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void saveOldSv()
           
protected  void setUp()
           
static junit.framework.Test suite()
           
 void testBinaryVector()
           
 void testCloneMatrixZeroed()
           
 void testDotProduct()
           
 void testIncrementValue()
           
 void testPlusEquals()
           
 void testPlusEqualsAfterClone()
           
 void testPlusEqualsFromSaved()
           
 void testSerializable()
           
 void testSetValue()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestHashedSparseVector

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

testPlusEquals

public void testPlusEquals()

testPlusEqualsAfterClone

public void testPlusEqualsAfterClone()

testDotProduct

public void testDotProduct()

testIncrementValue

public void testIncrementValue()

testSetValue

public void testSetValue()

testBinaryVector

public void testBinaryVector()

testCloneMatrixZeroed

public void testCloneMatrixZeroed()

testSerializable

public void testSerializable()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testPlusEqualsFromSaved

public void testPlusEqualsFromSaved()
                             throws java.io.IOException,
                                    java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

saveOldSv

public static void saveOldSv()

suite

public static junit.framework.Test suite()

setUp

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

main

public static void main(java.lang.String[] args)