1 package jalview.ext.archaeopteryx;
3 import static org.testng.Assert.assertTrue;
5 import jalview.bin.Jalview;
6 import jalview.ext.treeviewer.TreeFrameI;
7 import jalview.gui.Desktop;
8 import jalview.gui.JvOptionPane;
10 import org.testng.annotations.BeforeClass;
11 import org.testng.annotations.Test;
13 public abstract class TreeViewTest
19 @BeforeClass(alwaysRun = true)
20 public void setUpJvOptionPane()
22 JvOptionPane.setInteractiveMode(false);
23 JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
26 public abstract void setUpTree();
28 @BeforeClass(alwaysRun = true)
29 public void setUpJalview()
31 String[] args = new String[0];
35 public abstract void createTreeView();
37 @Test(groups = "Functional")
38 public void testTreeViewExists()
40 assertTrue(treeView != null);
43 @Test(groups = "Functional")
44 public void testTreeViewBoundToJalview()
46 assertTrue(treeView.getTopLevelAncestor() instanceof Desktop);
49 @Test(groups = "Functional")
50 public void testShowingTreeView()
52 assertTrue(treeView.isShowing());
55 @Test(groups = "Functional")
56 public abstract void testTreeLoaded();
58 @Test(groups = "Functional")
59 public abstract void testTreeTitle();
61 @Test(groups = "Functional")
62 public abstract void testExistingBranchName();
64 @Test(groups = "Functional")
65 public abstract void testChildNodesCount();
67 @Test(groups = "Functional")
68 public abstract void testChildToParentBranchLength();
70 @Test(groups = "Functional")
71 public abstract void testNodeToRootBranchLength();
73 @Test(groups = "Functional")
74 public abstract void testDistantNodeToRootBranchLength();