1 package jalview.ext.archaeopteryx;
3 import static org.testng.Assert.assertTrue;
5 import jalview.bin.Jalview;
6 import jalview.gui.Desktop;
8 import javax.swing.JInternalFrame;
10 import org.testng.annotations.BeforeClass;
11 import org.testng.annotations.Test;
13 public abstract class TreeViewTest
18 JInternalFrame treeView;
20 @BeforeClass(alwaysRun = true)
21 public abstract void setUpTree();
23 @BeforeClass(alwaysRun = true)
24 public void setUpJalview()
26 String[] args = new String[0];
30 @Test(groups = "Functional")
31 public void testTreeViewExists()
33 assertTrue(treeView != null);
36 @Test(groups = "Functional")
37 public void testTreeViewBoundToJalview()
39 assertTrue(treeView.getTopLevelAncestor() instanceof Desktop);
42 @Test(groups = "Functional")
43 public void testShowingTreeView()
45 assertTrue(treeView.isShowing());
48 @Test(groups = "Functional")
49 public abstract void testTreeLoaded();
51 @Test(groups = "Functional")
52 public abstract void testChildNodesCount();
54 @Test(groups = "Functional")
55 public abstract void testChildToParentBranchLength();
57 @Test(groups = "Functional")
58 public abstract void testNodeToRootBranchLength();
60 @Test(groups = "Functional")
61 public abstract void testDistantNodeToRootBranchLength();