|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase edu.umd.cfar.lamp.viper.util.UtilTest
Testsuite for the geometry package.
Constructor Summary | |
UtilTest(java.lang.String name)
Constructs a new UnitTest of the given name. |
Method Summary | |
protected void |
setUp()
This code is invoked before running any tests. |
static junit.framework.Test |
suite()
Constructs the Test object that points to the test. |
void |
testAssignment()
Tests the hungarian assignment algorithm. |
static boolean |
testAssignment(long[][] data,
long sum)
Helps test hungarian assigment. |
void |
testMatrixIterators()
Test the implementors of the MatrixIterator interface. |
void |
testRLE()
Test run-length-encoded lists. |
void |
testSparseMatrix()
Test the SparseMatrix class. |
static boolean |
testTranspose(long[][] data)
Makes sure the transpose function works. |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UtilTest(java.lang.String name)
name
- The name of the test.Method Detail |
protected void setUp()
public static junit.framework.Test suite()
public void testSparseMatrix()
SparseMatrix
class.
public void testMatrixIterators()
MatrixIterator
interface.
public void testAssignment()
public static boolean testAssignment(long[][] data, long sum)
data
- the bipartite graph weightssum
- the optimal sum
public static boolean testTranspose(long[][] data)
data
- the data to transpose
true
if the transpose worked.public void testRLE()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |