finished up tests for trees made from jalview data
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 25 Oct 2017 18:27:36 +0000 (19:27 +0100)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 25 Oct 2017 18:27:36 +0000 (19:27 +0100)
src/jalview/ext/archaeopteryx/ArchaeopteryxTreeBuilder.java
test/jalview/ext/archaeopteryx/AptxJalviewTreeTest.java

index 7096eff..e159763 100644 (file)
@@ -30,6 +30,7 @@ public class ArchaeopteryxTreeBuilder // cannot inherit
   {
 
     this.rootNode = new PhylogenyNode();
+    this.rootNode.setName("root");
 
   }
 
index 51bfeeb..51754f5 100644 (file)
@@ -85,6 +85,8 @@ public class AptxJalviewTreeTest extends TreeViewTest
   @Override
   public void testChildNodesCount()
   {
+    assertEquals(
+            tree.getNode("Seq2").getParent().getNumberOfExternalNodes(), 2);
 
   }