Exemplo n.º 1
0
  @Test(dataProvider = "tests")
  public void testGetters(FMTest params) {
    params.assertExpected(manager.getByCodec(params.codec));
    params.assertExpected(manager.getByName(params.name));
    params.assertExpected(manager.getByName(params.name.toLowerCase()));
    params.assertExpected(manager.getByName(params.name.toUpperCase()));

    Collection<FeatureManager.FeatureDescriptor> descriptors = manager.getByFeature(params.feature);
    Assert.assertTrue(descriptors.size() > 0, "Look up by FeatureClass failed");
  }
Exemplo n.º 2
0
 @Test(dataProvider = "tests")
 public void testGetByFile(FMTest params) {
   if (params.associatedFile != null) {
     FeatureManager.FeatureDescriptor byFile = manager.getByFiletype(params.associatedFile);
     Assert.assertNotNull(
         byFile, "Couldn't find any type associated with file " + params.associatedFile);
     params.assertExpected(byFile);
   }
 }
Exemplo n.º 3
0
 @DataProvider(name = "tests")
 public Object[][] createTests() {
   new FMTest(VariantContext.class, VCF3Codec.class, "VCF3", VCF3_FILE);
   new FMTest(VariantContext.class, VCFCodec.class, "VCF", VCF4_FILE);
   new FMTest(VariantContext.class, VCFCodec.class, "VCF", VCF4_FILE_GZ);
   new FMTest(VariantContext.class, VCFCodec.class, "VCF", VCF4_FILE_BGZIP);
   new FMTest(TableFeature.class, BedTableCodec.class, "bedtable", null);
   return FMTest.getTests(FMTest.class);
 }