    1   package baseCode;
    2
    3   import junit.framework.Test;
    4   import junit.framework.TestCase;
    5   import junit.framework.TestSuite;
    6   import baseCode.dataStructure.TestQueue;
    7   import baseCode.dataStructure.TestStack;
    8   import baseCode.dataStructure.graph.TestDirectedGraph;
    9   import baseCode.dataStructure.matrix.TestRCDoubleMatrix1D;
    10  import baseCode.dataStructure.matrix.TestSparseRaggedDoubleMatrix2DNamed;
    11  import baseCode.io.TestByteArrayConverter;
    12  import baseCode.io.reader.TestDoubleMatrixReader;
    13  import baseCode.io.reader.TestMapReader;
    14  import baseCode.io.reader.TestSparseDoubleMatrixReader;
    15  import baseCode.io.reader.TestSparseRaggedDouble2DNamedMatrixReader;
    16  import baseCode.io.reader.TestStringMatrixReader;
    17  import baseCode.io.writer.TestHistogramWriter;
    18  import baseCode.math.TestCorrelationStats;
    19  import baseCode.math.metaanalysis.TestCorrelationEffectMetaAnalysis;
    20  import baseCode.math.metaanalysis.TestMeanDifferenceMetaAnalysis;
    21  import baseCode.xml.TestGOParser;
    22
    23  public class AllTests extends TestCase {
    24
    25     public AllTests( String s ) {
    26        super( s );
    27     }
    28
    29     public static Test suite() {
    30        TestSuite suite = new TestSuite();
    31
    32        suite.addTestSuite( TestByteArrayConverter.class );
    33
    34        /* File reading/writing tests */
    35        suite.addTestSuite( TestStringMatrixReader.class );
    36        suite.addTestSuite( TestDoubleMatrixReader.class );
    37        suite.addTestSuite( TestSparseDoubleMatrixReader.class );
    38        suite.addTestSuite( TestSparseRaggedDouble2DNamedMatrixReader.class );
    39        suite.addTestSuite( TestHistogramWriter.class );
    40        suite.addTestSuite( TestMapReader.class );
    41
    42        /* data structure tests */
    43        suite.addTestSuite( TestDirectedGraph.class );
    44        suite.addTestSuite( TestSparseRaggedDoubleMatrix2DNamed.class );
    45        suite.addTestSuite( TestRCDoubleMatrix1D.class );
    46        suite.addTestSuite( TestQueue.class );
    47        suite.addTestSuite( TestStack.class );
    48
    49        /* data filter tests */
    50        suite.addTestSuite( baseCode.dataFilter.TestRowAffyNameFilter.class );
    51        suite.addTestSuite( baseCode.dataFilter.TestRowNameFilter.class );
    52        suite.addTestSuite( baseCode.dataFilter.TestRowAbsentFilter.class );
    53        suite.addTestSuite( baseCode.dataFilter.TestRowMissingFilter.class );
    54        suite.addTestSuite( baseCode.dataFilter.TestRowLevelFilter.class );
    55        suite.addTestSuite( baseCode.dataFilter.TestItemLevelFilter.class );
    56
    57        /* math tests */
    58        suite.addTestSuite( baseCode.math.TestDescriptiveWithMissing.class );
    59        suite.addTestSuite( baseCode.math.TestKSTest.class );
    60        suite.addTestSuite( TestCorrelationStats.class );
    61        suite.addTestSuite( baseCode.math.TestRank.class );
    62        suite.addTestSuite( baseCode.math.TestMatrixRowStats.class );
    63        suite.addTestSuite( baseCode.math.TestMatrixStats.class );
    64        suite.addTestSuite( baseCode.math.TestStats.class );
    65        suite.addTestSuite( baseCode.math.TestSpecFunc.class );
    66        suite.addTestSuite( baseCode.math.TestROC.class );
    67        suite.addTestSuite( TestCorrelationEffectMetaAnalysis.class );
    68        suite.addTestSuite( TestMeanDifferenceMetaAnalysis.class );
    69
    70        /* XML tests */
    71        suite.addTestSuite( TestGOParser.class );
    72
    73        return suite;
    74     }
    75
    76  }