--- /dev/null
+package jalview.datamodel;
+import static org.testng.Assert.assertEquals;
+
+import org.testng.annotations.Test;
+
+public class AlignmentViewTest
+{
+ @Test
+ public void testGetVisibleAlignmentGapChar()
+ {
+ SeqCigar ss = new SeqCigar(new Sequence("One", "A..CDE"));
+ CigarArray ca = new CigarArray(new CigarSimple[] { ss });
+ AlignmentView av = new AlignmentView(ca);
+ String dots = av.getSequenceStrings('.')[0];
+ assertEquals(dots, "A..CDE");
+ String dollars = av.getSequenceStrings('$')[0];
+ assertEquals(dollars, "A$$CDE");
+ assertEquals(av.getVisibleAlignment('$').getSequenceAt(0)
+ .getSequenceAsString(), "A$$CDE");
+ }
+}