git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3493 failing test - creates a highlight and column selection and then called...
[jalview.git]
/
test
/
jalview
/
io
/
StockholmFileTest.java
diff --git
a/test/jalview/io/StockholmFileTest.java
b/test/jalview/io/StockholmFileTest.java
index
a16aa07
..
9fdd7b9
100644
(file)
--- a/
test/jalview/io/StockholmFileTest.java
+++ b/
test/jalview/io/StockholmFileTest.java
@@
-114,7
+114,13
@@
public class StockholmFileTest
String toStockholm = af.formatSequences(FileFormat.Stockholm,
new Alignment(new SequenceI[]
{ sq }), false);
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(
+ "^#=GS\\s+FER2_SPIOL(/\\d+-\\d+)?\\s+AC\\s+P00224$",
+ Pattern.MULTILINE).matcher(toStockholm)
+ .find(),
"Couldn't locate UNIPROT Accession in generated Stockholm file.");
AlignmentI fromStockholm = af.readFile(toStockholm,
DataSourceType.PASTE, FileFormat.Stockholm);
"Couldn't locate UNIPROT Accession in generated Stockholm file.");
AlignmentI fromStockholm = af.readFile(toStockholm,
DataSourceType.PASTE, FileFormat.Stockholm);