コード例 #1
0
 @Test
 public void testGetByFileNoMatch() {
   FeatureManager.FeatureDescriptor byFile = manager.getByFiletype(RANDOM_FILE);
   Assert.assertNull(
       byFile,
       "Found type " + byFile + " associated with RANDOM, non-Tribble file " + RANDOM_FILE);
 }
コード例 #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);
   }
 }