- if (fileFormatType!=null && fileFormatType.length()>0)
- {
- String format = FileFormats.getInstance().forName(fileFormatType).getName();
- if (format!=null)
- {
- try
- {
- FileFormatI exportedType = new IdentifyFile()
- .identify(file.getAbsolutePath(), DataSourceType.FILE);
- assertEquals(exportedType, format,
- "Exported file type was wrong");
- } catch (FileFormatException e)
- {
- Assert.fail("Couldn't identify file " + file
- + " as an alignment format", e);
- }
- }
- }