+ public void testHideAll()
+ {
+ StructureCommandI cmd = testee.hideAll();
+ assertEquals(cmd.getCommand(), "~display; ~ribbon");
+ }
+
+ @Test(groups = "Functional")
+ public void testHideChain()
+ {
+ StructureCommandI cmd = testee.hideChain("1.1", "B");
+ assertEquals(cmd.getCommand(), "~ribbon #1.1:.B");
+ }
+
+ @Test(groups = "Functional")
+ public void testShowStructures()
+ {
+ /*
+ * with nothing excluded
+ */
+ StructureCommandI cmd = testee.showStructures(null);
+ assertEquals(cmd.getCommand(), "ribbon");
+
+ /*
+ * restricted to specified positions
+ */
+ AtomSpecModel restrictTo = new AtomSpecModel();
+ restrictTo.addRange("1.1", 12, 20, "A");
+ restrictTo.addRange("1.1", 30, 35, "A");
+ restrictTo.addRange("2.1", 11, 30, "B");
+ cmd = testee.showStructures(restrictTo);
+ assertEquals(cmd.getCommand(),
+ "ribbon #1.1:12-20.A,30-35.A|#2.1:11-30.B");
+ }
+