A long overdue correction; all unit tests now end in 'UnitTest'. This was something we wanted to do for a while, and now with the performance tests coming, it was a good time to clean-up. Please label any new test appropriately: *UnitTest and *IntegrationTest are the two valid file name patterns for tests.

Thanks!



git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3135 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
aaron 2010-04-08 06:14:15 +00:00
parent e148a3ac61
commit 4014a8a674
78 changed files with 120 additions and 123 deletions

View File

@ -6,10 +6,7 @@ import org.broadinstitute.sting.gatk.CommandLineGATK;
import org.broadinstitute.sting.utils.Pair; import org.broadinstitute.sting.utils.Pair;
import org.broadinstitute.sting.utils.StingException; import org.broadinstitute.sting.utils.StingException;
import org.broadinstitute.sting.utils.Utils; import org.broadinstitute.sting.utils.Utils;
import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.apache.log4j.Appender;
import org.apache.log4j.WriterAppender;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;
@ -202,7 +199,7 @@ public class WalkerTest extends BaseTest {
} }
@Test @Test
public void testWalkerTest() { public void testWalkerUnitTest() {
//System.out.println("WalkerTest is just a framework"); //System.out.println("WalkerTest is just a framework");
} }
} }

View File

@ -46,7 +46,7 @@ import net.sf.samtools.SAMFileReader;
* <p/> * <p/>
* Test out the argument collection class * Test out the argument collection class
*/ */
public class GATKArgumentCollectionTest extends BaseTest { public class GATKArgumentCollectionUnitTest extends BaseTest {
// our collection of arguments // our collection of arguments
private GATKArgumentCollection collect; private GATKArgumentCollection collect;

View File

@ -26,7 +26,7 @@ import org.junit.Test;
/** /**
* Basic unit test for RecalData * Basic unit test for RecalData
*/ */
public class AlleleTest extends BaseTest { public class AlleleUnitTest extends BaseTest {
Allele ARef, del, delRef, A, T, ATIns, ATCIns, NoCall; Allele ARef, del, delRef, A, T, ATIns, ATCIns, NoCall;
@Before @Before

View File

@ -23,7 +23,7 @@ import net.sf.picard.reference.ReferenceSequenceFile;
/** /**
* Basic unit test for RecalData * Basic unit test for RecalData
*/ */
public class VariantContextTest extends BaseTest { public class VariantContextUnitTest extends BaseTest {
private static ReferenceSequenceFile seq; private static ReferenceSequenceFile seq;
@BeforeClass @BeforeClass

View File

@ -43,11 +43,11 @@ import java.util.Map;
* *
* @author aaron * @author aaron
* *
* Class VariantJEXLContextTest * Class VariantJEXLContextUnitTest
* *
* Test out parts of the VariantJEXLContext * Test out parts of the VariantJEXLContext
*/ */
public class VariantJEXLContextTest extends BaseTest { public class VariantJEXLContextUnitTest extends BaseTest {
private static String expression = "QUAL > 500.0"; private static String expression = "QUAL > 500.0";

View File

@ -23,7 +23,7 @@ import java.util.List;
/** /**
* Test the view of all loci. * Test the view of all loci.
*/ */
public class AllLocusViewTest extends LocusViewTemplate { public class AllLocusViewUnitTest extends LocusViewTemplate {
@Override @Override
protected LocusView createView(LocusShardDataProvider provider) { protected LocusView createView(LocusShardDataProvider provider) {

View File

@ -23,7 +23,7 @@ import java.util.List;
/** /**
* Test the CoveredLocusView. * Test the CoveredLocusView.
*/ */
public class CoveredLocusViewTest extends LocusViewTemplate { public class CoveredLocusViewUnitTest extends LocusViewTemplate {
/** /**
* Retrieve a covered locus view. * Retrieve a covered locus view.

View File

@ -41,7 +41,7 @@ import java.util.Collections;
/** Tests for viewing the reference from the perspective of a locus. */ /** Tests for viewing the reference from the perspective of a locus. */
public class LocusReferenceViewTest extends ReferenceViewTemplate { public class LocusReferenceViewUnitTest extends ReferenceViewTemplate {
// //
// /** Multiple-base pair queries should generate exceptions. */ // /** Multiple-base pair queries should generate exceptions. */

View File

@ -27,7 +27,7 @@ import net.sf.samtools.SAMFileHeader;
import net.sf.samtools.SAMRecord; import net.sf.samtools.SAMRecord;
import org.broadinstitute.sting.BaseTest; import org.broadinstitute.sting.BaseTest;
import org.broadinstitute.sting.gatk.refdata.ReadMetaDataTracker; import org.broadinstitute.sting.gatk.refdata.ReadMetaDataTracker;
import org.broadinstitute.sting.gatk.refdata.ReadMetaDataTrackerTest; import org.broadinstitute.sting.gatk.refdata.ReadMetaDataTrackerUnitTest;
import org.broadinstitute.sting.gatk.refdata.utils.GATKFeature; import org.broadinstitute.sting.gatk.refdata.utils.GATKFeature;
import org.broadinstitute.sting.gatk.refdata.utils.LocationAwareSeekableRODIterator; import org.broadinstitute.sting.gatk.refdata.utils.LocationAwareSeekableRODIterator;
import org.broadinstitute.sting.gatk.refdata.utils.RODRecordList; import org.broadinstitute.sting.gatk.refdata.utils.RODRecordList;
@ -45,11 +45,11 @@ import java.util.*;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class ReadBasedReferenceOrderedViewTest * Class ReadBasedReferenceOrderedViewUnitTest
* <p/> * <p/>
* test out the ReadBasedReferenceOrderedView class * test out the ReadBasedReferenceOrderedView class
*/ */
public class ReadBasedReferenceOrderedViewTest extends BaseTest { public class ReadBasedReferenceOrderedViewUnitTest extends BaseTest {
private static int startingChr = 1; private static int startingChr = 1;
private static int endingChr = 2; private static int endingChr = 2;
@ -131,7 +131,7 @@ class FakePeekingRODIterator implements LocationAwareSeekableRODIterator {
@Override @Override
public RODRecordList next() { public RODRecordList next() {
System.err.println("Next -> " + location); System.err.println("Next -> " + location);
curROD = new ReadMetaDataTrackerTest.FakeRODatum(location, name); curROD = new ReadMetaDataTrackerUnitTest.FakeRODatum(location, name);
location = GenomeLocParser.createGenomeLoc(location.getContigIndex(), location.getStart() + 1, location.getStop() + 1); location = GenomeLocParser.createGenomeLoc(location.getContigIndex(), location.getStart() + 1, location.getStop() + 1);
FakeRODRecordList list = new FakeRODRecordList(); FakeRODRecordList list = new FakeRODRecordList();
list.add(curROD); list.add(curROD);

View File

@ -44,7 +44,7 @@ import net.sf.picard.reference.ReferenceSequence;
* Test reading the reference for a given read. * Test reading the reference for a given read.
*/ */
public class ReadReferenceViewTest extends ReferenceViewTemplate { public class ReadReferenceViewUnitTest extends ReferenceViewTemplate {
/** /**

View File

@ -35,7 +35,7 @@ import java.util.Collections;
* Test the transparent view into the reference-ordered data. At the moment, just do some basic bindings and make * Test the transparent view into the reference-ordered data. At the moment, just do some basic bindings and make
* sure the data comes through correctly. * sure the data comes through correctly.
*/ */
public class ReferenceOrderedViewTest extends BaseTest { public class ReferenceOrderedViewUnitTest extends BaseTest {
/** /**
* Sequence file. * Sequence file.
*/ */

View File

@ -26,7 +26,7 @@ import java.util.Arrays;
* Test basic functionality of the shard data provider. * Test basic functionality of the shard data provider.
*/ */
public class ShardDataProviderTest extends BaseTest { public class ShardDataProviderUnitTest extends BaseTest {
/** /**
* Provider to test. Should be recreated for every test. * Provider to test. Should be recreated for every test.
*/ */

View File

@ -41,7 +41,7 @@ import net.sf.samtools.SAMFileHeader;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class ReadIntervalShardStrategyTest * Class ReadIntervalShardStrategyUnitTest
* <p/> * <p/>
* Tests the ReadIntervalShardStrategy class * Tests the ReadIntervalShardStrategy class
* *
@ -51,7 +51,7 @@ import net.sf.samtools.SAMFileHeader;
* back in the future, the expected number of shards should change from 1 to > 1. * back in the future, the expected number of shards should change from 1 to > 1.
* *
*/ */
public class IntervalShardStrategyTest extends BaseTest { public class IntervalShardStrategyUnitTest extends BaseTest {
private GenomeLocSortedSet mSortedSet = null; private GenomeLocSortedSet mSortedSet = null;
private SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(NUMBER_OF_CHROMOSOMES, STARTING_CHROMOSOME, CHROMOSOME_SIZE); private SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(NUMBER_OF_CHROMOSOMES, STARTING_CHROMOSOME, CHROMOSOME_SIZE);

View File

@ -43,7 +43,7 @@ import net.sf.samtools.SAMFileHeader;
* <p/> * <p/>
* Tests for the IntervalReadShard class. * Tests for the IntervalReadShard class.
*/ */
public class IntervalShardTest extends BaseTest { public class IntervalShardUnitTest extends BaseTest {
private IntervalShard intervalShard = null; private IntervalShard intervalShard = null;
private SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(NUMBER_OF_CHROMOSOMES, STARTING_CHROMOSOME, CHROMOSOME_SIZE); private SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(NUMBER_OF_CHROMOSOMES, STARTING_CHROMOSOME, CHROMOSOME_SIZE);

View File

@ -43,7 +43,7 @@ import net.sf.samtools.SAMFileHeader;
* <p/> * <p/>
* Test for the Locus Shard Strategy * Test for the Locus Shard Strategy
*/ */
public class LinearLocusShardStrategyTest extends BaseTest { public class LinearLocusShardStrategyUnitTest extends BaseTest {
private GenomeLocSortedSet mSortedSet = null; private GenomeLocSortedSet mSortedSet = null;
private SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(NUMBER_OF_CHROMOSOMES, STARTING_CHROMOSOME, CHROMOSOME_SIZE); private SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(NUMBER_OF_CHROMOSOMES, STARTING_CHROMOSOME, CHROMOSOME_SIZE);

View File

@ -32,7 +32,7 @@ import static org.junit.Assert.assertTrue;
* @author aaron * @author aaron
* @version 1.0 * @version 1.0
*/ */
public class ShardStrategyFactoryTest extends BaseTest { public class ShardStrategyFactoryUnitTest extends BaseTest {
private SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(NUMBER_OF_CHROMOSOMES, STARTING_CHROMOSOME, CHROMOSOME_SIZE); private SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(NUMBER_OF_CHROMOSOMES, STARTING_CHROMOSOME, CHROMOSOME_SIZE);
private static final int NUMBER_OF_CHROMOSOMES = 5; private static final int NUMBER_OF_CHROMOSOMES = 5;

View File

@ -35,7 +35,7 @@ import static org.junit.Assert.assertTrue;
* Test the contents and number of iterators in the pool. * Test the contents and number of iterators in the pool.
*/ */
public class ReferenceOrderedDataPoolTest extends BaseTest { public class ReferenceOrderedDataPoolUnitTest extends BaseTest {
private RMDTrack rod = null; private RMDTrack rod = null;

View File

@ -43,11 +43,11 @@ import java.util.List;
* @version 1.0 * @version 1.0
* @date Apr 8, 2009 * @date Apr 8, 2009
* <p/> * <p/>
* Class SAMBAMDataSourceTest * Class SAMBAMDataSourceUnitTest
* <p/> * <p/>
* The test of the SAMBAM simple data source. * The test of the SAMBAM simple data source.
*/ */
public class SAMBAMDataSourceTest extends BaseTest { public class SAMBAMDataSourceUnitTest extends BaseTest {
private List<File> fl; private List<File> fl;
private ReferenceSequenceFile seq; private ReferenceSequenceFile seq;

View File

@ -48,11 +48,11 @@ import net.sf.samtools.SAMRecord;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class SAMByIntervalTest * Class SAMByIntervalUnitTest
* <p/> * <p/>
* Test that the SAM data source behaves well given intervals * Test that the SAM data source behaves well given intervals
*/ */
public class SAMByIntervalTest extends BaseTest { public class SAMByIntervalUnitTest extends BaseTest {
private List<File> fl; private List<File> fl;
ShardStrategy shardStrategy; ShardStrategy shardStrategy;
Reads reads; Reads reads;
@ -65,7 +65,7 @@ public class SAMByIntervalTest extends BaseTest {
protected final int STARTING_CHROMO; protected final int STARTING_CHROMO;
protected final int UNMAPPED_READ_COUNT; protected final int UNMAPPED_READ_COUNT;
public SAMByIntervalTest() { public SAMByIntervalUnitTest() {
READ_COUNT = 100; READ_COUNT = 100;
ENDING_CHROMO = 10; ENDING_CHROMO = 10;
STARTING_CHROMO = 1; STARTING_CHROMO = 1;

View File

@ -39,7 +39,7 @@ import java.util.List;
* @author aaron * @author aaron
* @version 1.0 * @version 1.0
*/ */
public class SAMByReadsTest extends BaseTest { public class SAMByReadsUnitTest extends BaseTest {
private List<File> fl; private List<File> fl;

View File

@ -30,7 +30,7 @@ import java.util.ArrayList;
* Make sure the reduce tree organizes reduces in the correct way. * Make sure the reduce tree organizes reduces in the correct way.
*/ */
public class ReduceTreeTest extends BaseTest implements ReduceTree.TreeReduceNotifier { public class ReduceTreeUnitTest extends BaseTest implements ReduceTree.TreeReduceNotifier {
/** /**
* The tree indicating reduce order. * The tree indicating reduce order.

View File

@ -15,7 +15,7 @@ import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
public class ReadGroupBlackListFilterTest extends BaseTest { public class ReadGroupBlackListFilterUnitTest extends BaseTest {
private static final int READ_GROUP_COUNT = 5; private static final int READ_GROUP_COUNT = 5;
private static final String READ_GROUP_PREFIX = "ReadGroup"; private static final String READ_GROUP_PREFIX = "ReadGroup";
private static final String SAMPLE_NAME_PREFIX = "Sample"; private static final String SAMPLE_NAME_PREFIX = "Sample";

View File

@ -27,9 +27,9 @@ import java.util.Scanner;
* For the file opening and closing mechanisms. * For the file opening and closing mechanisms.
*/ */
public class OutputTrackerTest extends BaseTest { public class OutputTrackerUnitTest extends BaseTest {
public static final String OUTPUT_FILENAME = "OutputTrackerTest.out"; public static final String OUTPUT_FILENAME = "OutputTrackerUnitTest.out";
public static final String ERROR_FILENAME = "OutputTrackerTest.err"; public static final String ERROR_FILENAME = "OutputTrackerUnitTest.err";
@After @After
public void cleanupTestFiles() { public void cleanupTestFiles() {

View File

@ -61,11 +61,11 @@ import java.util.List;
* @version 1.0 * @version 1.0
* @date Apr 14, 2009 * @date Apr 14, 2009
* <p/> * <p/>
* Class BoundedReadIteratorTest * Class BoundedReadIteratorUnitTest
* <p/> * <p/>
* tests for the bounded read iterator. * tests for the bounded read iterator.
*/ */
public class BoundedReadIteratorTest extends BaseTest { public class BoundedReadIteratorUnitTest extends BaseTest {
/** the file list and the fasta sequence */ /** the file list and the fasta sequence */
private List<File> fl; private List<File> fl;

View File

@ -23,7 +23,7 @@ import java.util.Iterator;
* <p/> * <p/>
* test the DuplicateDetectorIterator class. * test the DuplicateDetectorIterator class.
*/ */
public class IntervalOverlapIteratorTest extends BaseTest { public class IntervalOverlapIteratorUnitTest extends BaseTest {
private final File bam = new File(validationDataLocation + "index_test.bam"); private final File bam = new File(validationDataLocation + "index_test.bam");
private static IndexedFastaSequenceFile seq; private static IndexedFastaSequenceFile seq;
private int chromosomeOneReadCount = 885; private int chromosomeOneReadCount = 885;

View File

@ -22,7 +22,7 @@ import java.util.List;
/** /**
* testing of the LocusIteratorByState * testing of the LocusIteratorByState
*/ */
public class LocusIteratorByStateTest extends BaseTest { public class LocusIteratorByStateUnitTest extends BaseTest {
private final int MAX_READS = 10; private final int MAX_READS = 10;
private static SAMFileHeader header; private static SAMFileHeader header;

View File

@ -16,11 +16,11 @@ import org.junit.Test;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class LocusOverflowTrackerTest * Class LocusOverflowTrackerUnitTest
* <p/> * <p/>
* test out the locus overflow tracker * test out the locus overflow tracker
*/ */
public class LocusOverflowTrackerTest extends BaseTest { public class LocusOverflowTrackerUnitTest extends BaseTest {
private LocusOverflowTracker tracker; private LocusOverflowTracker tracker;
private final int MAX_READS = 10; private final int MAX_READS = 10;

View File

@ -22,7 +22,7 @@ import net.sf.samtools.SAMRecord;
* Date: Nov 4, 2009 * Date: Nov 4, 2009
* Time: 11:02:24 PM * Time: 11:02:24 PM
*/ */
public class PlusOneFixIteratorTest extends BaseTest { public class PlusOneFixIteratorUnitTest extends BaseTest {
private final File bam = new File(validationDataLocation + "index_test.bam"); private final File bam = new File(validationDataLocation + "index_test.bam");
private static IndexedFastaSequenceFile seq; private static IndexedFastaSequenceFile seq;
private int chromosomeOneReadCount = 885; private int chromosomeOneReadCount = 885;

View File

@ -34,7 +34,7 @@ import java.util.Iterator;
* <p/> * <p/>
* Tests the StingSAMIteratorAdapter class. * Tests the StingSAMIteratorAdapter class.
*/ */
public class StingSAMIteratorAdapterTest extends BaseTest { public class StingSAMIteratorAdapterUnitTest extends BaseTest {
class MyTestIterator implements Iterator<SAMRecord> { class MyTestIterator implements Iterator<SAMRecord> {

View File

@ -24,7 +24,7 @@ import java.util.*;
* Time: 11:27:33 PM * Time: 11:27:33 PM
* To change this template use File | Settings | File Templates. * To change this template use File | Settings | File Templates.
* *
public class PlinkRodTest extends BaseTest { public class PlinkRodUnitTest extends BaseTest {
// todo :: get the isIndel() isInsertion() and isDeletion() tests working again -- this may require new // todo :: get the isIndel() isInsertion() and isDeletion() tests working again -- this may require new
// todo :: methods in the objects themselves // todo :: methods in the objects themselves
private static IndexedFastaSequenceFile seq; private static IndexedFastaSequenceFile seq;

View File

@ -42,11 +42,11 @@ import java.util.*;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class ReadMetaDataTrackerTest * Class ReadMetaDataTrackerUnitTest
* <p/> * <p/>
* test out the ReadMetaDataTracker * test out the ReadMetaDataTracker
*/ */
public class ReadMetaDataTrackerTest extends BaseTest { public class ReadMetaDataTrackerUnitTest extends BaseTest {
private static int startingChr = 1; private static int startingChr = 1;
private static int endingChr = 2; private static int endingChr = 2;
private static int readCount = 100; private static int readCount = 100;

View File

@ -12,12 +12,12 @@ import java.util.List;
* *
* @author aaron * @author aaron
* *
* Class ReferenceOrderedDataTest * Class ReferenceOrderedDataUnitTest
* *
* some functionality to test parts of the reference ordered data system that I've added. This is by NO MEANS * some functionality to test parts of the reference ordered data system that I've added. This is by NO MEANS
* a complete test suite, but additions would be extremely welcome * a complete test suite, but additions would be extremely welcome
*/ */
public class ReferenceOrderedDataTest extends BaseTest { public class ReferenceOrderedDataUnitTest extends BaseTest {
@Test @Test
public void extractRodsFromFileTest() { public void extractRodsFromFileTest() {
String file = validationDataLocation + "testRODFileImpl.csv"; String file = validationDataLocation + "testRODFileImpl.csv";

View File

@ -26,7 +26,7 @@ import java.io.File;
* <p/> * <p/>
* You'll notice that the first is a hom ref, and the other two are hom alt SNP's * You'll notice that the first is a hom ref, and the other two are hom alt SNP's
*/ */
public class RodGLFTest extends BaseTest { public class RodGLFUnitTest extends BaseTest {
static final File glfFile = new File(validationDataLocation + "glfTestFile.glf"); static final File glfFile = new File(validationDataLocation + "glfTestFile.glf");
static final int finalRecordCount = 100; // the number of records in the above file static final int finalRecordCount = 100; // the number of records in the above file
static final int contigCount = 1; static final int contigCount = 1;

View File

@ -24,11 +24,11 @@ import java.util.List;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class RodVCFTest * Class RodVCFUnitTest
* <p/> * <p/>
* test out the rod VCF * test out the rod VCF
*/ */
public class RodVCFTest extends BaseTest { public class RodVCFUnitTest extends BaseTest {
private static File vcfFile = new File(validationDataLocation + "vcfexample.vcf"); private static File vcfFile = new File(validationDataLocation + "vcfexample.vcf");
private VCFHeader mHeader; private VCFHeader mHeader;

View File

@ -28,7 +28,7 @@ import static org.junit.Assert.assertTrue;
* Basic unit test for TabularROD * Basic unit test for TabularROD
* *
*/ */
public class TabularRODTest extends BaseTest { public class TabularRODUnitTest extends BaseTest {
private static ReferenceSequenceFile seq; private static ReferenceSequenceFile seq;
private ReferenceOrderedData ROD; private ReferenceOrderedData ROD;
private LocationAwareSeekableRODIterator iter; private LocationAwareSeekableRODIterator iter;

View File

@ -26,12 +26,12 @@ import java.util.List;
* *
* @author aaron * @author aaron
* *
* Class VariantContextAdaptorsTest * Class VariantContextAdaptorsUnitTest
* *
* This test class exists to test input -> output of variant formats * This test class exists to test input -> output of variant formats
* run through the VariantContext class. * run through the VariantContext class.
*/ */
public class VariantContextAdaptorsTest extends BaseTest { public class VariantContextAdaptorsUnitTest extends BaseTest {
public static IndexedFastaSequenceFile seq = null; public static IndexedFastaSequenceFile seq = null;
@BeforeClass @BeforeClass

View File

@ -14,11 +14,11 @@ import java.io.*;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class rodDbSNPTest * Class rodDbSNPUnitTest
* <p/> * <p/>
* A descriptions should go here. Blame aaron if it's missing. * A descriptions should go here. Blame aaron if it's missing.
*/ */
public class rodDbSNPTest extends BaseTest { public class rodDbSNPUnitTest extends BaseTest {
private static IndexedFastaSequenceFile seq; private static IndexedFastaSequenceFile seq;
@BeforeClass @BeforeClass

View File

@ -41,10 +41,10 @@ import java.util.Iterator;
import java.util.List; import java.util.List;
/** /**
* class RMDTrackManagerTest * class RMDTrackManagerUnitTest
* tests out the ability of the RMDTrackManager to correctly create RMDtracks based on the requested types. * tests out the ability of the RMDTrackManager to correctly create RMDtracks based on the requested types.
*/ */
public class RMDTrackManagerTest extends BaseTest { public class RMDTrackManagerUnitTest extends BaseTest {
List<String> triplets; List<String> triplets;
List<RMDTrack> tracks; List<RMDTrack> tracks;

View File

@ -34,11 +34,11 @@ import java.util.Map;
* *
* @author aaron * @author aaron
* *
* Class TribbleRMDTrackBuilderTest * Class TribbleRMDTrackBuilderUnitTest
* *
* Testing out the builder for tribble Tracks (not really a functional test right now) * Testing out the builder for tribble Tracks (not really a functional test right now)
*/ */
public class TribbleRMDTrackBuilderTest extends BaseTest { public class TribbleRMDTrackBuilderUnitTest extends BaseTest {
private TribbleRMDTrackBuilder builder; private TribbleRMDTrackBuilder builder;
@Before @Before

View File

@ -21,11 +21,11 @@ import java.util.List;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class FlashBackIteratorTest * Class FlashBackIteratorUnitTest
* <p/> * <p/>
* just like a greatful dead show...this will be prone to flashbacks * just like a greatful dead show...this will be prone to flashbacks
*/ */
public class FlashBackIteratorTest extends BaseTest { public class FlashBackIteratorUnitTest extends BaseTest {
private SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(NUMBER_OF_CHROMOSOMES, STARTING_CHROMOSOME, CHROMOSOME_SIZE); private SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(NUMBER_OF_CHROMOSOMES, STARTING_CHROMOSOME, CHROMOSOME_SIZE);
private static final int NUMBER_OF_CHROMOSOMES = 5; private static final int NUMBER_OF_CHROMOSOMES = 5;
private static final int STARTING_CHROMOSOME = 1; private static final int STARTING_CHROMOSOME = 1;

View File

@ -18,11 +18,11 @@ import java.util.Set;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class TraverseDuplicatesTest * Class TraverseDuplicatesUnitTest
* <p/> * <p/>
* test the meat of the traverse dupplicates. * test the meat of the traverse dupplicates.
*/ */
public class TraverseDuplicatesTest extends BaseTest { public class TraverseDuplicatesUnitTest extends BaseTest {
private TraverseDuplicates obj = new TraverseDuplicates(); private TraverseDuplicates obj = new TraverseDuplicates();
private SAMFileHeader header; private SAMFileHeader header;

View File

@ -48,11 +48,11 @@ import java.util.List;
* @version 1.0 * @version 1.0
* @date Apr 24, 2009 * @date Apr 24, 2009
* <p/> * <p/>
* Class TraverseReadsTest * Class TraverseReadsUnitTest
* <p/> * <p/>
* test traversing reads * test traversing reads
*/ */
public class TraverseReadsTest extends BaseTest { public class TraverseReadsUnitTest extends BaseTest {
private ReferenceSequenceFile seq; private ReferenceSequenceFile seq;
private File bam = new File(validationDataLocation + "index_test.bam"); // TCGA-06-0188.aligned.duplicates_marked.bam"); private File bam = new File(validationDataLocation + "index_test.bam"); // TCGA-06-0188.aligned.duplicates_marked.bam");

View File

@ -42,11 +42,11 @@ import net.sf.samtools.SAMFileHeader;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class PrintReadsWalkerTest * Class PrintReadsWalkerUnitTest
* <p/> * <p/>
* This tests the print reads walker, using the artificial reads traversal * This tests the print reads walker, using the artificial reads traversal
*/ */
public class PrintReadsWalkerTest extends BaseTest { public class PrintReadsWalkerUnitTest extends BaseTest {
/** /**
* our private fake reads traversal. This traversal seeds the * our private fake reads traversal. This traversal seeds the

View File

@ -7,7 +7,7 @@ import org.junit.Assert;
import static java.lang.Math.log10; import static java.lang.Math.log10;
public class GenotypeLikelihoodsTest extends BaseTest { public class GenotypeLikelihoodsUnitTest extends BaseTest {
private final static double DELTA = 1e-8; private final static double DELTA = 1e-8;
@Test @Test

View File

@ -19,7 +19,7 @@ import java.util.ArrayList;
* Time: 9:40:51 AM * Time: 9:40:51 AM
* To change this template use File | Settings | File Templates. * To change this template use File | Settings | File Templates.
*/ */
public class ConcordanceTruthTableTest extends BaseTest { public class ConcordanceTruthTableUnitTest extends BaseTest {
@Test @Test
public void testAlleleFrequencyCalculation() { public void testAlleleFrequencyCalculation() {

View File

@ -16,7 +16,7 @@ import java.math.BigDecimal;
* Time: 10:19:53 AM * Time: 10:19:53 AM
* To change this template use File | Settings | File Templates. * To change this template use File | Settings | File Templates.
*/ */
public class PowerTest extends BaseTest { public class PowerUnitTest extends BaseTest {
// test for various items involved in PowerBelowFrequency // test for various items involved in PowerBelowFrequency
@Test @Test
public void testBinomialProbabilityLog() { public void testBinomialProbabilityLog() {

View File

@ -11,11 +11,11 @@ import org.junit.Test;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class AnalysisModuleScannerTest * Class AnalysisModuleScannerUnitTest
* <p/> * <p/>
* Test out the analysis scanner, which takes an analysis module and extracts out basic data * Test out the analysis scanner, which takes an analysis module and extracts out basic data
*/ */
public class AnalysisModuleScannerTest extends BaseTest { public class AnalysisModuleScannerUnitTest extends BaseTest {
@Test @Test
public void testBasicScan() { public void testBasicScan() {

View File

@ -30,11 +30,11 @@ import org.junit.Test;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class ReportMarshallerTest * Class ReportMarshallerUnitTest
* <p/> * <p/>
* test out the marshaller * test out the marshaller
*/ */
public class ReportMarshallerTest extends BaseTest { public class ReportMarshallerUnitTest extends BaseTest {
@Test @Test
public void testMarshalling() { public void testMarshalling() {
/*Configuration cfg = new Configuration(); /*Configuration cfg = new Configuration();

View File

@ -5,7 +5,7 @@ import org.junit.Test;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Assert; import org.junit.Assert;
public class BaseUtilsTest extends BaseTest { public class BaseUtilsUnitTest extends BaseTest {
@BeforeClass @BeforeClass
public static void init() { } public static void init() { }

View File

@ -13,7 +13,7 @@ import java.util.Arrays;
/** /**
* Basic unit test for RecalData * Basic unit test for RecalData
*/ */
public class ExpandingArrayListTest extends BaseTest { public class ExpandingArrayListUnitTest extends BaseTest {
ExpandingArrayList<Integer> empty, initCap10, hasOne, hasTen; ExpandingArrayList<Integer> empty, initCap10, hasOne, hasTen;
@Before @Before

View File

@ -17,11 +17,11 @@ import java.util.List;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class GenomeLocParserTest * Class GenomeLocParserUnitTest
* <p/> * <p/>
* Test out the functionality of the new genome loc parser * Test out the functionality of the new genome loc parser
*/ */
public class GenomeLocParserTest extends BaseTest { public class GenomeLocParserUnitTest extends BaseTest {
@Test(expected = StingException.class) @Test(expected = StingException.class)
public void testUnsetupException() { public void testUnsetupException() {
GenomeLocParser.contigInfo = null; GenomeLocParser.contigInfo = null;

View File

@ -36,7 +36,7 @@ import java.util.Arrays;
* <p/> * <p/>
* This tests the functions of the GenomeLocSet * This tests the functions of the GenomeLocSet
*/ */
public class GenomeLocSortedSetTest extends BaseTest { public class GenomeLocSortedSetUnitTest extends BaseTest {
private GenomeLocSortedSet mSortedSet = null; private GenomeLocSortedSet mSortedSet = null;
private SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(NUMBER_OF_CHROMOSOMES, STARTING_CHROMOSOME, CHROMOSOME_SIZE); private SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader(NUMBER_OF_CHROMOSOMES, STARTING_CHROMOSOME, CHROMOSOME_SIZE);
@ -207,15 +207,15 @@ public class GenomeLocSortedSetTest extends BaseTest {
public void fromSequenceDictionary() { public void fromSequenceDictionary() {
mSortedSet = GenomeLocSortedSet.createSetFromSequenceDictionary(this.header.getSequenceDictionary()); mSortedSet = GenomeLocSortedSet.createSetFromSequenceDictionary(this.header.getSequenceDictionary());
// we should have sequence // we should have sequence
assertTrue(mSortedSet.size() == GenomeLocSortedSetTest.NUMBER_OF_CHROMOSOMES); assertTrue(mSortedSet.size() == GenomeLocSortedSetUnitTest.NUMBER_OF_CHROMOSOMES);
int seqNumber = 0; int seqNumber = 0;
for (GenomeLoc loc : mSortedSet) { for (GenomeLoc loc : mSortedSet) {
assertTrue(loc.getStart() == 1); assertTrue(loc.getStart() == 1);
assertTrue(loc.getStop() == GenomeLocSortedSetTest.CHROMOSOME_SIZE); assertTrue(loc.getStop() == GenomeLocSortedSetUnitTest.CHROMOSOME_SIZE);
assertTrue(loc.getContigIndex() == seqNumber); assertTrue(loc.getContigIndex() == seqNumber);
++seqNumber; ++seqNumber;
} }
assertTrue(seqNumber == GenomeLocSortedSetTest.NUMBER_OF_CHROMOSOMES); assertTrue(seqNumber == GenomeLocSortedSetUnitTest.NUMBER_OF_CHROMOSOMES);
} }
@Test @Test
@ -223,9 +223,9 @@ public class GenomeLocSortedSetTest extends BaseTest {
mSortedSet = GenomeLocSortedSet.createSetFromSequenceDictionary(this.header.getSequenceDictionary()); mSortedSet = GenomeLocSortedSet.createSetFromSequenceDictionary(this.header.getSequenceDictionary());
GenomeLocSortedSet set = GenomeLocSortedSet.createSetFromSequenceDictionary(this.header.getSequenceDictionary()); GenomeLocSortedSet set = GenomeLocSortedSet.createSetFromSequenceDictionary(this.header.getSequenceDictionary());
// we should have sequence // we should have sequence
assertTrue(mSortedSet.size() == GenomeLocSortedSetTest.NUMBER_OF_CHROMOSOMES); assertTrue(mSortedSet.size() == GenomeLocSortedSetUnitTest.NUMBER_OF_CHROMOSOMES);
mSortedSet.addAllRegions(set.toList()); mSortedSet.addAllRegions(set.toList());
assertTrue(mSortedSet.size() == GenomeLocSortedSetTest.NUMBER_OF_CHROMOSOMES); assertTrue(mSortedSet.size() == GenomeLocSortedSetUnitTest.NUMBER_OF_CHROMOSOMES);
} }
@Test @Test

View File

@ -18,7 +18,7 @@ import net.sf.picard.reference.ReferenceSequenceFile;
/** /**
* Basic unit test for GenomeLoc * Basic unit test for GenomeLoc
*/ */
public class GenomeLocTest extends BaseTest { public class GenomeLocUnitTest extends BaseTest {
private static ReferenceSequenceFile seq; private static ReferenceSequenceFile seq;
@BeforeClass @BeforeClass

View File

@ -13,7 +13,7 @@ import java.util.Collections;
/** /**
* Basic unit test for MathUtils * Basic unit test for MathUtils
*/ */
public class ListUtilsTest extends BaseTest { public class ListUtilsUnitTest extends BaseTest {
@BeforeClass @BeforeClass
public static void init() { } public static void init() { }

View File

@ -12,7 +12,7 @@ import java.io.File;
/** /**
* Basic unit test for MathUtils * Basic unit test for MathUtils
*/ */
public class MathUtilsTest extends BaseTest { public class MathUtilsUnitTest extends BaseTest {
@BeforeClass @BeforeClass
public static void init() { } public static void init() { }

View File

@ -7,7 +7,7 @@ import org.junit.Assert;
import java.io.File; import java.io.File;
public class PathUtilsTest extends BaseTest { public class PathUtilsUnitTest extends BaseTest {
@BeforeClass @BeforeClass
public static void init() { } public static void init() { }

View File

@ -38,7 +38,7 @@ import java.util.Map;
* @version 0.1 * @version 0.1
*/ */
public class UtilsTest extends BaseTest { public class UtilsUnitTest extends BaseTest {
@Test @Test
public void testDupStringNoChars() { public void testDupStringNoChars() {

View File

@ -15,7 +15,7 @@ import java.io.FileNotFoundException;
import java.util.List; import java.util.List;
public class BedParserTest extends BaseTest { public class BedParserUnitTest extends BaseTest {
private static IndexedFastaSequenceFile seq; private static IndexedFastaSequenceFile seq;
private File bedFile = new File("testdata/sampleBedFile.bed"); private File bedFile = new File("testdata/sampleBedFile.bed");

View File

@ -25,7 +25,7 @@ import java.util.EnumSet;
/** /**
* Test suite for the parsing engine. * Test suite for the parsing engine.
*/ */
public class ParsingEngineTest extends BaseTest { public class ParsingEngineUnitTest extends BaseTest {
private ParsingEngine parsingEngine; private ParsingEngine parsingEngine;
@Before @Before

View File

@ -14,7 +14,7 @@ import java.util.Iterator;
/** /**
* Test the fasta sequence index reader. * Test the fasta sequence index reader.
*/ */
public class FastaSequenceIndexTest extends BaseTest { public class FastaSequenceIndexUnitTest extends BaseTest {
// our basic human 18 fai // our basic human 18 fai
private static String sequenceIndexName = null; private static String sequenceIndexName = null;
private FastaSequenceIndex sequenceIndex = null; private FastaSequenceIndex sequenceIndex = null;

View File

@ -18,7 +18,7 @@ import net.sf.samtools.util.StringUtil;
/** /**
* Test the indexed fasta sequence file reader. * Test the indexed fasta sequence file reader.
*/ */
public class IndexedFastaSequenceFileTest extends BaseTest { public class IndexedFastaSequenceFileUnitTest extends BaseTest {
private static String sequenceFileName; private static String sequenceFileName;
private IndexedFastaSequenceFile sequenceFile = null; private IndexedFastaSequenceFile sequenceFile = null;

View File

@ -16,11 +16,11 @@ import java.io.FileNotFoundException;
* *
* @author aaron * @author aaron
* *
* Class BasicGenotypeTest * Class BasicGenotypeUnitTest
* *
* tests the basic genotype class * tests the basic genotype class
*/ */
public class BasicGenotypeTest extends BaseTest { public class BasicGenotypeUnitTest extends BaseTest {
private static IndexedFastaSequenceFile seq; private static IndexedFastaSequenceFile seq;
@BeforeClass @BeforeClass

View File

@ -19,7 +19,7 @@ import java.io.FileNotFoundException;
* <p/> * <p/>
* some quick tests for the BasicVariation class * some quick tests for the BasicVariation class
*/ */
public class BasicVariationTest extends BaseTest { public class BasicVariationUnitTest extends BaseTest {
private static IndexedFastaSequenceFile seq; private static IndexedFastaSequenceFile seq;
@BeforeClass @BeforeClass

View File

@ -9,11 +9,11 @@ import org.junit.Test;
* *
* @author aaron * @author aaron
* *
* Class DiploidGenotypeTest * Class DiploidGenotypeUnitTest
* *
* Testing the basic functionality of the diploid genotype class * Testing the basic functionality of the diploid genotype class
*/ */
public class DiploidGenotypeTest extends BaseTest { public class DiploidGenotypeUnitTest extends BaseTest {
@Test @Test
public void testCreateDiploidFromString() { public void testCreateDiploidFromString() {

View File

@ -36,11 +36,11 @@ import static junit.framework.Assert.assertTrue;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class LikelihoodObjectTest * Class LikelihoodObjectUnitTest
* <p/> * <p/>
* Tests the Likelihood object. * Tests the Likelihood object.
*/ */
public class LikelihoodObjectTest extends BaseTest { public class LikelihoodObjectUnitTest extends BaseTest {
private LikelihoodObject mLO = null; private LikelihoodObject mLO = null;

View File

@ -12,11 +12,11 @@ import java.util.List;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class GLFReaderTest * Class GLFReaderUnitTest
* <p/> * <p/>
* A descriptions should go here. Blame aaron if it's missing. * A descriptions should go here. Blame aaron if it's missing.
*/ */
public class GLFReaderTest extends BaseTest { public class GLFReaderUnitTest extends BaseTest {
// our test file // our test file

View File

@ -9,11 +9,11 @@ import org.junit.Test;
* *
* @author aaron * @author aaron
* *
* Class GLFRecordTest * Class GLFRecordUnitTest
* *
* Test out the basics of a GLFRecord * Test out the basics of a GLFRecord
*/ */
public class GLFRecordTest extends BaseTest { public class GLFRecordUnitTest extends BaseTest {
@Test @Test
public void testConstructingGLFRecord() { public void testConstructingGLFRecord() {

View File

@ -49,7 +49,7 @@ import net.sf.samtools.SAMSequenceRecord;
* <p/> * <p/>
* Tests for the GLFRecord class * Tests for the GLFRecord class
*/ */
public class GLFWriterTest extends BaseTest { public class GLFWriterUnitTest extends BaseTest {
/** some made up values that we use to generate the GLF */ /** some made up values that we use to generate the GLF */
private final String header = ""; private final String header = "";

View File

@ -8,11 +8,11 @@ import org.junit.Test;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class VCFGenotypeEncodingTest * Class VCFGenotypeEncodingUnitTest
* <p/> * <p/>
* test the VCFGenotypeEncoding class * test the VCFGenotypeEncoding class
*/ */
public class VCFGenotypeEncodingTest extends BaseTest { public class VCFGenotypeEncodingUnitTest extends BaseTest {
@Test @Test
public void testDecodingSingle() { public void testDecodingSingle() {
VCFGenotypeEncoding enc = new VCFGenotypeEncoding("A"); VCFGenotypeEncoding enc = new VCFGenotypeEncoding("A");

View File

@ -11,11 +11,11 @@ import java.util.*;
* *
* @author aaron * @author aaron
* *
* Class VCFHeaderTest * Class VCFHeaderUnitTest
* *
* Test the VCF Header class * Test the VCF Header class
*/ */
public class VCFHeaderTest extends BaseTest { public class VCFHeaderUnitTest extends BaseTest {
private Set<VCFHeaderLine> metaData = new HashSet<VCFHeaderLine>(); private Set<VCFHeaderLine> metaData = new HashSet<VCFHeaderLine>();
private Set<String> additionalColumns = new HashSet<String>(); private Set<String> additionalColumns = new HashSet<String>();

View File

@ -22,7 +22,7 @@ import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
/** test the VCFReader class test */ /** test the VCFReader class test */
public class VCFReaderTest extends BaseTest { public class VCFReaderUnitTest extends BaseTest {
private static final File vcfFile = new File(validationDataLocation + "vcfexample.vcf"); private static final File vcfFile = new File(validationDataLocation + "vcfexample.vcf");
private static final File multiSampleVCF = new File(validationDataLocation + "MultiSample.vcf"); private static final File multiSampleVCF = new File(validationDataLocation + "MultiSample.vcf");

View File

@ -16,11 +16,11 @@ import java.io.FileNotFoundException;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class VCFRecordTest * Class VCFRecordUnitTest
* <p/> * <p/>
* test the basic functionality of the vcf record * test the basic functionality of the vcf record
*/ */
public class VCFRecordTest extends BaseTest { public class VCFRecordUnitTest extends BaseTest {
@BeforeClass @BeforeClass
public static void beforeTests() { public static void beforeTests() {

View File

@ -16,11 +16,11 @@ import java.util.*;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class VCFWriterTest * Class VCFWriterUnitTest
* <p/> * <p/>
* This class tests out the ability of the VCF writer to correctly write VCF files * This class tests out the ability of the VCF writer to correctly write VCF files
*/ */
public class VCFWriterTest extends BaseTest { public class VCFWriterUnitTest extends BaseTest {
private Set<VCFHeaderLine> metaData = new HashSet<VCFHeaderLine>(); private Set<VCFHeaderLine> metaData = new HashSet<VCFHeaderLine>();
private Set<String> additionalColumns = new HashSet<String>(); private Set<String> additionalColumns = new HashSet<String>();
private File fakeVCFFile = new File("FAKEVCFFILEFORTESTING.vcf"); private File fakeVCFFile = new File("FAKEVCFFILEFORTESTING.vcf");

View File

@ -38,12 +38,12 @@ import net.sf.samtools.SAMRecord;
* *
* @author aaron * @author aaron
* *
* Class ArtificialPatternedSAMIteratorTest * Class ArtificialPatternedSAMIteratorUnitTest
* *
* tests ArtificialPatternedSAMIterator, making sure that if you specify in order * tests ArtificialPatternedSAMIterator, making sure that if you specify in order
* you get reads in order, and if you specify out of order you get them out of order. * you get reads in order, and if you specify out of order you get them out of order.
*/ */
public class ArtificialPatternedSAMIteratorTest extends BaseTest { public class ArtificialPatternedSAMIteratorUnitTest extends BaseTest {
// our artifical patterned iterator // our artifical patterned iterator
ArtificialPatternedSAMIterator iter; ArtificialPatternedSAMIterator iter;

View File

@ -44,7 +44,7 @@ import java.util.List;
* <p/> * <p/>
* Test out the ArtificialSAMFileWriter class * Test out the ArtificialSAMFileWriter class
*/ */
public class ArtificialSAMFileWriterTest extends BaseTest { public class ArtificialSAMFileWriterUnitTest extends BaseTest {
/** the artificial sam writer */ /** the artificial sam writer */
private ArtificialSAMFileWriter writer; private ArtificialSAMFileWriter writer;

View File

@ -35,11 +35,11 @@ import static junit.framework.Assert.assertTrue;
/** /**
* @author aaron * @author aaron
* <p/> * <p/>
* Class ArtificialSAMQueryIteratorTest * Class ArtificialSAMQueryIteratorUnitTest
* <p/> * <p/>
* a test for the ArtificialSAMQueryIterator class. * a test for the ArtificialSAMQueryIterator class.
*/ */
public class ArtificialSAMQueryIteratorTest extends BaseTest { public class ArtificialSAMQueryIteratorUnitTest extends BaseTest {
@Test @Test
public void testWholeChromosomeQuery() { public void testWholeChromosomeQuery() {

View File

@ -15,7 +15,7 @@ import net.sf.samtools.SAMRecord;
* Time: 3:09:34 AM * Time: 3:09:34 AM
* To change this template use File | Settings | File Templates. * To change this template use File | Settings | File Templates.
*/ */
public class ArtificialSAMUtilsTest extends BaseTest { public class ArtificialSAMUtilsUnitTest extends BaseTest {
@Test @Test

View File

@ -22,7 +22,7 @@ import java.util.concurrent.Executors;
* Tests for the thread pool monitor class. * Tests for the thread pool monitor class.
*/ */
public class ThreadPoolMonitorTest extends BaseTest { public class ThreadPoolMonitorUnitTest extends BaseTest {
private ExecutorService threadPool = Executors.newFixedThreadPool(1); private ExecutorService threadPool = Executors.newFixedThreadPool(1);
/** /**