String toStockholm = af.formatSequences(FileFormat.Stockholm,
new Alignment(new SequenceI[]
{ sq }), false);
- assertTrue(toStockholm.matches("AC\\s+P00224"),
+ System.out.println(toStockholm);
+ // bleh - java.util.Regex sucks
+ assertTrue(
+ Pattern.compile(".*\\s+AC\\s+P00224.*",
+ java.util.regex.Pattern.DOTALL).matcher(toStockholm)
+ .matches(),
"Couldn't locate UNIPROT Accession in generated Stockholm file.");
AlignmentI fromStockholm = af.readFile(toStockholm,
DataSourceType.PASTE, FileFormat.Stockholm);