org.systemsbiology.gaggle.experiment.datamatrix.unitTests
Class LensedDataMatrixTest

java.lang.Object
  extended by TestCase
      extended by org.systemsbiology.gaggle.experiment.datamatrix.unitTests.LensedDataMatrixTest

public class LensedDataMatrixTest
extends TestCase


Constructor Summary
LensedDataMatrixTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void notestSpeedOfGetVisibleMatrix_45101_lines()
          test the time it takes to get a visible (sub-) matrix from a large matrix after some rows and columns are hidden
 void setUp()
           
 void tearDown()
           
 void testAddRow()
           
 void testColumnEnabling()
           
 void testColumnOrdering()
           
 void testColumnTitleLensing()
          swap twice, disable one column
 void testGetColumn()
           
 void testGetDataWithOrderingAndEnabling_1()
          for a 4 row, 3 column matrix: - swap colums 0 and 2; check the first row - disable column 0; check the remaining two columns in row 0 - clear the lens; check that the first row equals that of the underlying matrix
 void testGetDataWithOrderingAndEnabling_2()
          swap once, disable two columns
 void testGetDataWithOrderingAndEnabling_3()
          swap twice, equivalent to moving the right-most column two places to the left
 void testGetVisibleMatrix()
          test the matrices returned at each of these 3 steps - get an unmodified view - select just rows 1 and 2 (implicitly obscuring rows 0 and 3) - disable first data column
 void testRowSelection()
           
 void testSpeedOfGetVisibleMatrix_2400_lines()
          test the time it takes to get a visible (sub-) matrix from a 2400 line matrix after some rows and columns are hidden
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LensedDataMatrixTest

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

setUp

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

tearDown

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

testColumnEnabling

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

testColumnOrdering

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

testGetColumn

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

testGetDataWithOrderingAndEnabling_1

public void testGetDataWithOrderingAndEnabling_1()
                                          throws java.lang.Exception
for a 4 row, 3 column matrix: - swap colums 0 and 2; check the first row - disable column 0; check the remaining two columns in row 0 - clear the lens; check that the first row equals that of the underlying matrix

Throws:
java.lang.Exception

testGetDataWithOrderingAndEnabling_2

public void testGetDataWithOrderingAndEnabling_2()
                                          throws java.lang.Exception
swap once, disable two columns

Throws:
java.lang.Exception

testGetDataWithOrderingAndEnabling_3

public void testGetDataWithOrderingAndEnabling_3()
                                          throws java.lang.Exception
swap twice, equivalent to moving the right-most column two places to the left

Throws:
java.lang.Exception

testColumnTitleLensing

public void testColumnTitleLensing()
                            throws java.lang.Exception
swap twice, disable one column

Throws:
java.lang.Exception

testRowSelection

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

testGetVisibleMatrix

public void testGetVisibleMatrix()
                          throws java.lang.Exception
test the matrices returned at each of these 3 steps - get an unmodified view - select just rows 1 and 2 (implicitly obscuring rows 0 and 3) - disable first data column

Throws:
java.lang.Exception

testSpeedOfGetVisibleMatrix_2400_lines

public void testSpeedOfGetVisibleMatrix_2400_lines()
                                            throws java.lang.Exception
test the time it takes to get a visible (sub-) matrix from a 2400 line matrix after some rows and columns are hidden

Throws:
java.lang.Exception

notestSpeedOfGetVisibleMatrix_45101_lines

public void notestSpeedOfGetVisibleMatrix_45101_lines()
                                               throws java.lang.Exception
test the time it takes to get a visible (sub-) matrix from a large matrix after some rows and columns are hidden

Throws:
java.lang.Exception

testAddRow

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

main

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