@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"); }
@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); } }