X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fio%2FSequenceAnnotationReportTest.java;h=57821c9fe19470fc4cbdffd22f0065b18efaffa7;hb=881dd37ce1077bce230b6b04690112d9d6eafecd;hp=772ed2bb7570050645da2caaa3a1eaf236430d0c;hpb=e6a84268f419fa16fd87f484842150cb0a103ce6;p=jalview.git diff --git a/test/jalview/io/SequenceAnnotationReportTest.java b/test/jalview/io/SequenceAnnotationReportTest.java index 772ed2b..57821c9 100644 --- a/test/jalview/io/SequenceAnnotationReportTest.java +++ b/test/jalview/io/SequenceAnnotationReportTest.java @@ -61,23 +61,20 @@ public class SequenceAnnotationReportTest { SequenceAnnotationReport sar = new SequenceAnnotationReport(false); StringBuilder sb = new StringBuilder(); - sb.append("123456"); + sb.append("foo "); SequenceFeature sf = new SequenceFeature("disulfide bond", "desc", 1, 3, 1.2f, "group"); - // residuePos == 2 does not match start or end of feature, nothing done: - sar.appendFeature(sb, 2, null, sf, null, 0); - assertEquals("123456", sb.toString()); - // residuePos == 1 matches start of feature, text appended (but no
) // feature score is not included sar.appendFeature(sb, 1, null, sf, null, 0); - assertEquals("123456disulfide bond 1:3", sb.toString()); + assertEquals("foo disulfide bond 1:3", sb.toString()); - // residuePos == 3 matches end of feature, text appended + // residuePos == 2 doesnt' match end of feature, text appended anyway + // (the test for this is handled by FeatureStore.findContactFeatures()) //
is prefixed once sb.length() > 6 - sar.appendFeature(sb, 3, null, sf, null, 0); - assertEquals("123456disulfide bond 1:3
disulfide bond 1:3", + sar.appendFeature(sb, 2, null, sf, null, 0); + assertEquals("foo disulfide bond 1:3
disulfide bond 1:3", sb.toString()); }