コード例 #1
0
  @Test
  public void testCodecCreation() {
    FeatureManager.FeatureDescriptor descriptor = manager.getByName("vcf");
    Assert.assertNotNull(descriptor, "Couldn't find VCF feature descriptor!");

    FeatureCodec c = manager.createCodec(descriptor, "foo", genomeLocParser);
    Assert.assertNotNull(c, "Couldn't create codec");
    Assert.assertEquals(c.getClass(), descriptor.getCodecClass());
    Assert.assertEquals(c.getFeatureType(), descriptor.getFeatureClass());
  }
コード例 #2
0
 public void assertExpected(FeatureManager.FeatureDescriptor featureDescriptor) {
   Assert.assertEquals(featureDescriptor.getCodecClass(), codec);
   Assert.assertEquals(featureDescriptor.getFeatureClass(), feature);
   Assert.assertEquals(featureDescriptor.getName().toLowerCase(), name.toLowerCase());
 }