1 package jalview.ext.pymol;
3 import static org.testng.Assert.assertEquals;
5 import jalview.structure.StructureCommand;
7 import org.testng.annotations.Test;
9 public class PymolManagerTest
11 @Test(groups = "Functional")
12 public void testGetPostRequest()
14 String req = PymolManager
15 .getPostRequest(new StructureCommand("foobar"));
17 "<methodCall><methodName>foobar</methodName><params></params></methodCall>");
20 .getPostRequest(new StructureCommand("foobar", "blue", "all"));
21 assertEquals(req, "<methodCall><methodName>foobar</methodName><params>"
22 + "<parameter><value>blue</value></parameter>"
23 + "<parameter><value>all</value></parameter>"
24 + "</params></methodCall>");