import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
+import jalview.gui.Desktop;
+
+import org.forester.archaeopteryx.Archaeopteryx;
import org.forester.archaeopteryx.MainFrame;
import org.forester.archaeopteryx.TreePanel;
import org.forester.phylogeny.Phylogeny;
ancestor1Node.setDistanceToParent(36);
ancestor2Node.setDistanceToParent(42);
+ inputTree.setName("test");
inputTree.setRoot(rootNode);
inputTree.setRooted(true);
@BeforeClass(dependsOnMethods = { "setUpJalview", "setUpTree" })
public void createTreeView()
{
- treeView = ArchaeopteryxInit.createInstance(inputTree);
+ treeView = Archaeopteryx.createApplication(inputTree);
aptx = (MainFrame) treeView; // pretty ugly
treePanel = aptx.getMainPanel().getCurrentTreePanel();
tree = treePanel.getPhylogeny();
+
+ Desktop.addInternalFrame(aptx, "Archaeopteryx", 500, 500);
+
}
assertTrue(treePanel != null);
}
+ @Override
+ public void testTreeTitle()
+ {
+ assertTrue(tree.getName().equals("test"));
+
+ }
+
@Test(
groups = "Functional",
expectedExceptions = IllegalArgumentException.class)
+
}