1 package jalview.ext.archaeopteryx;
3 import static org.testng.Assert.assertTrue;
5 import jalview.bin.Jalview;
6 import jalview.gui.Desktop;
7 import jalview.gui.JvOptionPane;
9 import javax.swing.JInternalFrame;
11 import org.testng.annotations.BeforeClass;
12 import org.testng.annotations.Test;
14 public abstract class TreeViewTest
18 JInternalFrame treeView;
20 @BeforeClass(alwaysRun = true)
21 public void setUpJvOptionPane()
23 JvOptionPane.setInteractiveMode(false);
24 JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
27 public abstract void setUpTree();
29 @BeforeClass(alwaysRun = true)
30 public void setUpJalview()
32 String[] args = new String[0];
36 public abstract void createTreeView();
38 @Test(groups = "Functional")
39 public void testTreeViewExists()
41 assertTrue(treeView != null);
44 @Test(groups = "Functional")
45 public void testTreeViewBoundToJalview()
47 assertTrue(treeView.getTopLevelAncestor() instanceof Desktop);
50 @Test(groups = "Functional")
51 public void testShowingTreeView()
53 assertTrue(treeView.isShowing());
56 @Test(groups = "Functional")
57 public abstract void testTreeLoaded();
59 @Test(groups = "Functional")
60 public abstract void testTreeTitle();
62 @Test(groups = "Functional")
63 public abstract void testExistingBranchName();
65 @Test(groups = "Functional")
66 public abstract void testChildNodesCount();
68 @Test(groups = "Functional")
69 public abstract void testChildToParentBranchLength();
71 @Test(groups = "Functional")
72 public abstract void testNodeToRootBranchLength();
74 @Test(groups = "Functional")
75 public abstract void testDistantNodeToRootBranchLength();