Added branch name tests
[jalview.git] / test / jalview / ext / archaeopteryx / AptxPhylogenyTreeTest.java
index 5e00496..bc908e2 100644 (file)
@@ -58,6 +58,7 @@ public class AptxPhylogenyTreeTest extends TreeViewTest
 
   }
 
+  @Override
   @BeforeClass(dependsOnMethods = { "setUpJalview", "setUpTree" })
   public void createTreeView()
   {
@@ -89,6 +90,24 @@ public class AptxPhylogenyTreeTest extends TreeViewTest
   }
 
   @Override
+  @Test(
+    groups = "Functional",
+    expectedExceptions = IllegalArgumentException.class)
+  public void testInvalidBranchName()
+  {
+    tree.getNode("I shouldn't exist");
+
+  }
+
+  @Override
+  @Test(groups = "Functional")
+  public void testExistingBranchName()
+  {
+    tree.getNode("leaf 2");
+
+  }
+
+  @Override
   @Test(groups = "Functional")
   public void testTreeLoaded()
   {
@@ -133,4 +152,5 @@ public class AptxPhylogenyTreeTest extends TreeViewTest
 
 
 
+
 }