From ef6a364081c8bee71ae4e8839304e5e3a7056e5e Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Wed, 25 Oct 2017 19:27:36 +0100 Subject: [PATCH] finished up tests for trees made from jalview data --- src/jalview/ext/archaeopteryx/ArchaeopteryxTreeBuilder.java | 1 + test/jalview/ext/archaeopteryx/AptxJalviewTreeTest.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/jalview/ext/archaeopteryx/ArchaeopteryxTreeBuilder.java b/src/jalview/ext/archaeopteryx/ArchaeopteryxTreeBuilder.java index 7096eff..e159763 100644 --- a/src/jalview/ext/archaeopteryx/ArchaeopteryxTreeBuilder.java +++ b/src/jalview/ext/archaeopteryx/ArchaeopteryxTreeBuilder.java @@ -30,6 +30,7 @@ public class ArchaeopteryxTreeBuilder // cannot inherit { this.rootNode = new PhylogenyNode(); + this.rootNode.setName("root"); } diff --git a/test/jalview/ext/archaeopteryx/AptxJalviewTreeTest.java b/test/jalview/ext/archaeopteryx/AptxJalviewTreeTest.java index 51bfeeb..51754f5 100644 --- a/test/jalview/ext/archaeopteryx/AptxJalviewTreeTest.java +++ b/test/jalview/ext/archaeopteryx/AptxJalviewTreeTest.java @@ -85,6 +85,8 @@ public class AptxJalviewTreeTest extends TreeViewTest @Override public void testChildNodesCount() { + assertEquals( + tree.getNode("Seq2").getParent().getNumberOfExternalNodes(), 2); } -- 1.7.10.2