当前位置: 首页>>代码示例>>Java>>正文


Java JTableFixture.selectCells方法代码示例

本文整理汇总了Java中org.fest.swing.fixture.JTableFixture.selectCells方法的典型用法代码示例。如果您正苦于以下问题:Java JTableFixture.selectCells方法的具体用法?Java JTableFixture.selectCells怎么用?Java JTableFixture.selectCells使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.fest.swing.fixture.JTableFixture的用法示例。


在下文中一共展示了JTableFixture.selectCells方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: selectCells

import org.fest.swing.fixture.JTableFixture; //导入方法依赖的package包/类
/**
 * Select table cells
 *
 * @param cells the cells coordinates (eg. new int[][]{ { 1, 1 }, { 1, 2 }, { 2, 2 } )
 * @throws VerificationException if the element doesn't exist
 */
@PublicAtsApi
public void selectCells(
                         int[][] cells ) {

    new SwingElementState(this).waitToBecomeExisting();

    JTableFixture tableFixture = (JTableFixture) SwingElementLocator.findFixture(this);
    try {

        TableCell[] cellsToSelect = new TableCell[cells.length];
        for (int i = 0; i < cells.length; i++) {
            int row = cells[i][0];
            int column = cells[i][1];
            cellsToSelect[i] = new TableCell(row, column) {};
        }
        tableFixture.selectCells(cellsToSelect);
    } catch (Exception e) {

        throw new UiElementException(e.getMessage(), this);
    }
}
 
开发者ID:Axway,项目名称:ats-framework,代码行数:28,代码来源:SwingTable.java

示例2: linkTreesAndDeleteTest2a

import org.fest.swing.fixture.JTableFixture; //导入方法依赖的package包/类
@Test
public void linkTreesAndDeleteTest2a() throws Exception {
	warning("Load gopher data 26.nex, 47.nex");
	importAlignment("examples/nexus", new File("26.nex"), new File("47.nex"));

	JTabbedPaneFixture f = beautiFrame.tabbedPane();
	printBeautiState(f);

	JTableFixture t = beautiFrame.table();
	t.selectCells(TableCell.row(0).column(0), TableCell.row(1).column(0));

	warning("Link trees");
	f.selectTab("Partitions");
	beautiFrame.button("Link Trees").click();
	printBeautiState(f);

	warning("Delete second partition");
	f.selectTab("Partitions");
	beautiFrame.table().selectCell(TableCell.row(1).column(0));
	beautiFrame.button("-").click();
	printBeautiState(f);
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26");
	
	makeSureXMLParses();
}
 
开发者ID:rbouckaert,项目名称:YABBY,代码行数:26,代码来源:LinkUnlinkTest.java

示例3: linkTreesAndDeleteTest2b

import org.fest.swing.fixture.JTableFixture; //导入方法依赖的package包/类
@Test
public void linkTreesAndDeleteTest2b() throws Exception {
	warning("Load gopher data 26.nex, 47.nex");
	importAlignment("examples/nexus", new File("26.nex"), new File("47.nex"));

	JTabbedPaneFixture f = beautiFrame.tabbedPane();
	printBeautiState(f);

	JTableFixture t = beautiFrame.table();
	t.selectCells(TableCell.row(0).column(0), TableCell.row(1).column(0));

	warning("Link trees");
	f.selectTab("Partitions");
	beautiFrame.button("Link Trees").click();
	printBeautiState(f);

	warning("Delete first partition");
	f.selectTab("Partitions");
	beautiFrame.table().selectCell(TableCell.row(0).column(0));
	beautiFrame.button("-").click();
	printBeautiState(f);
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26");
	
	makeSureXMLParses();
}
 
开发者ID:rbouckaert,项目名称:YABBY,代码行数:26,代码来源:LinkUnlinkTest.java

示例4: linkTreesAndDeleteTest3

import org.fest.swing.fixture.JTableFixture; //导入方法依赖的package包/类
@Test
public void linkTreesAndDeleteTest3() throws Exception {
	warning("Load gopher data 26.nex, 47.nex, 59.nex");
	importAlignment("examples/nexus", new File("26.nex"), new File("47.nex"), new File("59.nex"));

	JTabbedPaneFixture f = beautiFrame.tabbedPane();
	printBeautiState(f);
	assertStateEquals("Tree.t:26", "birthRate.t:26", "Tree.t:47", "clockRate.c:47", "birthRate.t:47", "Tree.t:59", "clockRate.c:59", "birthRate.t:59");
	assertOperatorsEqual("YuleBirthRateScaler.t:26", "treeScaler.t:26", "treeRootScaler.t:26", "UniformOperator.t:26", "SubtreeSlide.t:26", "narrow.t:26", "wide.t:26", "WilsonBalding.t:26", "StrictClockRateScaler.c:47", "YuleBirthRateScaler.t:47", "treeScaler.t:47", "treeRootScaler.t:47", "UniformOperator.t:47", "SubtreeSlide.t:47", "narrow.t:47", "wide.t:47", "WilsonBalding.t:47", "strictClockUpDownOperator.c:47", "StrictClockRateScaler.c:59", "YuleBirthRateScaler.t:59", "treeScaler.t:59", "treeRootScaler.t:59", "UniformOperator.t:59", "SubtreeSlide.t:59", "narrow.t:59", "wide.t:59", "WilsonBalding.t:59", "strictClockUpDownOperator.c:59");
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26", "YuleModel.t:47", "ClockPrior.c:47", "YuleBirthRatePrior.t:47", "YuleModel.t:59", "ClockPrior.c:59", "YuleBirthRatePrior.t:59");
	assertTraceLogEqual("posterior", "likelihood", "prior", "treeLikelihood.26", "TreeHeight.t:26", "YuleModel.t:26", "birthRate.t:26", "treeLikelihood.47", "TreeHeight.t:47", "clockRate.c:47", "YuleModel.t:47", "birthRate.t:47", "treeLikelihood.59", "TreeHeight.t:59", "clockRate.c:59", "YuleModel.t:59", "birthRate.t:59");

	JTableFixture t = beautiFrame.table();
	t.selectCells(TableCell.row(0).column(0), TableCell.row(1).column(0), TableCell.row(2).column(0));

	warning("Link trees");
	f.selectTab("Partitions");
	beautiFrame.button("Link Trees").click();
	printBeautiState(f);
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26", "ClockPrior.c:47", "ClockPrior.c:59");
	makeSureXMLParses();

	warning("Delete second partition (47)");
	f.selectTab("Partitions");
	beautiFrame.table().selectCell(TableCell.row(1).column(0));
	beautiFrame.button("-").click();
	printBeautiState(f);
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26", "ClockPrior.c:59");
	makeSureXMLParses();

	warning("Delete first partition (26)");
	f.selectTab("Partitions");
	beautiFrame.table().selectCell(TableCell.row(0).column(0));
	beautiFrame.button("-").click();
	printBeautiState(f);
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26");

	makeSureXMLParses();
}
 
开发者ID:rbouckaert,项目名称:YABBY,代码行数:40,代码来源:LinkUnlinkTest.java

示例5: simpleLinkUnlinkTwoAlignmentTest

import org.fest.swing.fixture.JTableFixture; //导入方法依赖的package包/类
@Test
public void simpleLinkUnlinkTwoAlignmentTest() throws Exception {
	warning("Load gopher data 26.nex, 47.nex");
	importAlignment("examples/nexus", new File("26.nex"), new File("47.nex"));
	
	JTabbedPaneFixture f = beautiFrame.tabbedPane();
	printBeautiState(f);

	JTableFixture t = beautiFrame.table();
	t.selectCells(TableCell.row(0).column(0), TableCell.row(1).column(0));
	
	warning("Link site models");
	f.selectTab("Partitions");
	beautiFrame.button("Link Site Models").click();
	printBeautiState(f);

	warning("Unlink site models");
	f.selectTab("Partitions");
	beautiFrame.button("Unlink Site Models").click();
	printBeautiState(f);
	assertStateEquals("Tree.t:26", "birthRate.t:26", "Tree.t:47", "clockRate.c:47", "birthRate.t:47");
	assertOperatorsEqual("YuleBirthRateScaler.t:26", "treeScaler.t:26", "treeRootScaler.t:26", "UniformOperator.t:26", "SubtreeSlide.t:26", "narrow.t:26", "wide.t:26", "WilsonBalding.t:26", "StrictClockRateScaler.c:47", "YuleBirthRateScaler.t:47", "treeScaler.t:47", "treeRootScaler.t:47", "UniformOperator.t:47", "SubtreeSlide.t:47", "narrow.t:47", "wide.t:47", "WilsonBalding.t:47", "strictClockUpDownOperator.c:47");
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26", "YuleModel.t:47", "ClockPrior.c:47", "YuleBirthRatePrior.t:47");
	assertTraceLogEqual("posterior", "likelihood", "prior", "treeLikelihood.26", "TreeHeight.t:26", "YuleModel.t:26", "birthRate.t:26", "treeLikelihood.47", "TreeHeight.t:47", "clockRate.c:47", "YuleModel.t:47", "birthRate.t:47");
	
	warning("Link clock models");
	f.selectTab("Partitions");
	beautiFrame.button("Link Clock Models").click();
	printBeautiState(f);

	warning("Unlink clock models");
	f.selectTab("Partitions");
	beautiFrame.button("Unlink Clock Models").click();
	printBeautiState(f);
	assertStateEquals("Tree.t:26", "birthRate.t:26", "Tree.t:47", "clockRate.c:47", "birthRate.t:47");
	assertOperatorsEqual("YuleBirthRateScaler.t:26", "treeScaler.t:26", "treeRootScaler.t:26", "UniformOperator.t:26", "SubtreeSlide.t:26", "narrow.t:26", "wide.t:26", "WilsonBalding.t:26", "StrictClockRateScaler.c:47", "YuleBirthRateScaler.t:47", "treeScaler.t:47", "treeRootScaler.t:47", "UniformOperator.t:47", "SubtreeSlide.t:47", "narrow.t:47", "wide.t:47", "WilsonBalding.t:47", "strictClockUpDownOperator.c:47");
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26", "YuleModel.t:47", "ClockPrior.c:47", "YuleBirthRatePrior.t:47");
	assertTraceLogEqual("posterior", "likelihood", "prior", "treeLikelihood.26", "TreeHeight.t:26", "YuleModel.t:26", "birthRate.t:26", "treeLikelihood.47", "TreeHeight.t:47", "clockRate.c:47", "YuleModel.t:47", "birthRate.t:47");

	warning("Link trees");
	f.selectTab("Partitions");
	beautiFrame.button("Link Trees").click();
	printBeautiState(f);

	warning("Unlink trees");
	f.selectTab("Partitions");
	beautiFrame.button("Unlink Trees").click();
	printBeautiState(f);
	assertStateEquals("Tree.t:26", "birthRate.t:26", "Tree.t:47", "clockRate.c:47", "birthRate.t:47");
	assertOperatorsEqual("YuleBirthRateScaler.t:26", "treeScaler.t:26", "treeRootScaler.t:26", "UniformOperator.t:26", "SubtreeSlide.t:26", "narrow.t:26", "wide.t:26", "WilsonBalding.t:26", "StrictClockRateScaler.c:47", "YuleBirthRateScaler.t:47", "treeScaler.t:47", "treeRootScaler.t:47", "UniformOperator.t:47", "SubtreeSlide.t:47", "narrow.t:47", "wide.t:47", "WilsonBalding.t:47", "strictClockUpDownOperator.c:47");
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26", "YuleModel.t:47", "ClockPrior.c:47", "YuleBirthRatePrior.t:47");
	assertTraceLogEqual("posterior", "likelihood", "prior", "treeLikelihood.26", "TreeHeight.t:26", "YuleModel.t:26", "birthRate.t:26", "treeLikelihood.47", "TreeHeight.t:47", "clockRate.c:47", "YuleModel.t:47", "birthRate.t:47");

	makeSureXMLParses();
}
 
开发者ID:rbouckaert,项目名称:YABBY,代码行数:56,代码来源:LinkUnlinkTest.java

示例6: simpleLinkUnlinkThreeAlignmentsTest

import org.fest.swing.fixture.JTableFixture; //导入方法依赖的package包/类
@Test
public void simpleLinkUnlinkThreeAlignmentsTest() throws Exception {
	warning("Load gopher data 26.nex, 47.nex, 59.nex");
	importAlignment("examples/nexus", new File("26.nex"), new File("47.nex"), new File("59.nex"));

	JTabbedPaneFixture f = beautiFrame.tabbedPane();
	printBeautiState(f);
	assertStateEquals("Tree.t:26", "birthRate.t:26", "Tree.t:47", "clockRate.c:47", "birthRate.t:47", "Tree.t:59", "clockRate.c:59", "birthRate.t:59");
	assertOperatorsEqual("YuleBirthRateScaler.t:26", "treeScaler.t:26", "treeRootScaler.t:26", "UniformOperator.t:26", "SubtreeSlide.t:26", "narrow.t:26", "wide.t:26", "WilsonBalding.t:26", "StrictClockRateScaler.c:47", "YuleBirthRateScaler.t:47", "treeScaler.t:47", "treeRootScaler.t:47", "UniformOperator.t:47", "SubtreeSlide.t:47", "narrow.t:47", "wide.t:47", "WilsonBalding.t:47", "strictClockUpDownOperator.c:47", "StrictClockRateScaler.c:59", "YuleBirthRateScaler.t:59", "treeScaler.t:59", "treeRootScaler.t:59", "UniformOperator.t:59", "SubtreeSlide.t:59", "narrow.t:59", "wide.t:59", "WilsonBalding.t:59", "strictClockUpDownOperator.c:59");
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26", "YuleModel.t:47", "ClockPrior.c:47", "YuleBirthRatePrior.t:47", "YuleModel.t:59", "ClockPrior.c:59", "YuleBirthRatePrior.t:59");
	assertTraceLogEqual("posterior", "likelihood", "prior", "treeLikelihood.26", "TreeHeight.t:26", "YuleModel.t:26", "birthRate.t:26", "treeLikelihood.47", "TreeHeight.t:47", "clockRate.c:47", "YuleModel.t:47", "birthRate.t:47", "treeLikelihood.59", "TreeHeight.t:59", "clockRate.c:59", "YuleModel.t:59", "birthRate.t:59");

	JTableFixture t = beautiFrame.table();
	t.selectCells(TableCell.row(0).column(0), TableCell.row(1).column(0), TableCell.row(2).column(0));

	warning("Link site models");
	f.selectTab("Partitions");
	beautiFrame.button("Link Site Models").click();
	printBeautiState(f);

	warning("Unlink site models");
	f.selectTab("Partitions");
	beautiFrame.button("Unlink Site Models").click();
	printBeautiState(f);
	assertStateEquals("Tree.t:26", "birthRate.t:26", "Tree.t:47", "clockRate.c:47", "birthRate.t:47", "Tree.t:59", "clockRate.c:59", "birthRate.t:59");
	assertOperatorsEqual("YuleBirthRateScaler.t:26", "treeScaler.t:26", "treeRootScaler.t:26", "UniformOperator.t:26", "SubtreeSlide.t:26", "narrow.t:26", "wide.t:26", "WilsonBalding.t:26", "StrictClockRateScaler.c:47", "YuleBirthRateScaler.t:47", "treeScaler.t:47", "treeRootScaler.t:47", "UniformOperator.t:47", "SubtreeSlide.t:47", "narrow.t:47", "wide.t:47", "WilsonBalding.t:47", "strictClockUpDownOperator.c:47", "StrictClockRateScaler.c:59", "YuleBirthRateScaler.t:59", "treeScaler.t:59", "treeRootScaler.t:59", "UniformOperator.t:59", "SubtreeSlide.t:59", "narrow.t:59", "wide.t:59", "WilsonBalding.t:59", "strictClockUpDownOperator.c:59");
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26", "YuleModel.t:47", "ClockPrior.c:47", "YuleBirthRatePrior.t:47", "YuleModel.t:59", "ClockPrior.c:59", "YuleBirthRatePrior.t:59");
	assertTraceLogEqual("posterior", "likelihood", "prior", "treeLikelihood.26", "TreeHeight.t:26", "YuleModel.t:26", "birthRate.t:26", "treeLikelihood.47", "TreeHeight.t:47", "clockRate.c:47", "YuleModel.t:47", "birthRate.t:47", "treeLikelihood.59", "TreeHeight.t:59", "clockRate.c:59", "YuleModel.t:59", "birthRate.t:59");
	
	warning("Link clock models");
	f.selectTab("Partitions");
	beautiFrame.button("Link Clock Models").click();
	printBeautiState(f);

	warning("Unlink clock models");
	f.selectTab("Partitions");
	beautiFrame.button("Unlink Clock Models").click();
	printBeautiState(f);
	assertStateEquals("Tree.t:26", "birthRate.t:26", "Tree.t:47", "clockRate.c:47", "birthRate.t:47", "Tree.t:59", "clockRate.c:59", "birthRate.t:59");
	assertOperatorsEqual("YuleBirthRateScaler.t:26", "treeScaler.t:26", "treeRootScaler.t:26", "UniformOperator.t:26", "SubtreeSlide.t:26", "narrow.t:26", "wide.t:26", "WilsonBalding.t:26", "StrictClockRateScaler.c:47", "YuleBirthRateScaler.t:47", "treeScaler.t:47", "treeRootScaler.t:47", "UniformOperator.t:47", "SubtreeSlide.t:47", "narrow.t:47", "wide.t:47", "WilsonBalding.t:47", "strictClockUpDownOperator.c:47", "StrictClockRateScaler.c:59", "YuleBirthRateScaler.t:59", "treeScaler.t:59", "treeRootScaler.t:59", "UniformOperator.t:59", "SubtreeSlide.t:59", "narrow.t:59", "wide.t:59", "WilsonBalding.t:59", "strictClockUpDownOperator.c:59");
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26", "YuleModel.t:47", "ClockPrior.c:47", "YuleBirthRatePrior.t:47", "YuleModel.t:59", "ClockPrior.c:59", "YuleBirthRatePrior.t:59");
	assertTraceLogEqual("posterior", "likelihood", "prior", "treeLikelihood.26", "TreeHeight.t:26", "YuleModel.t:26", "birthRate.t:26", "treeLikelihood.47", "TreeHeight.t:47", "clockRate.c:47", "YuleModel.t:47", "birthRate.t:47", "treeLikelihood.59", "TreeHeight.t:59", "clockRate.c:59", "YuleModel.t:59", "birthRate.t:59");

	warning("Link trees");
	f.selectTab("Partitions");
	beautiFrame.button("Link Trees").click();
	printBeautiState(f);

	warning("Unlink trees");
	f.selectTab("Partitions");
	beautiFrame.button("Unlink Trees").click();
	printBeautiState(f);
	assertStateEquals("Tree.t:26", "birthRate.t:26", "Tree.t:47", "clockRate.c:47", "birthRate.t:47", "Tree.t:59", "clockRate.c:59", "birthRate.t:59");
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26", "YuleModel.t:47", "ClockPrior.c:47", "YuleBirthRatePrior.t:47", "YuleModel.t:59", "ClockPrior.c:59", "YuleBirthRatePrior.t:59");
	assertOperatorsEqual("YuleBirthRateScaler.t:26", "treeScaler.t:26", "treeRootScaler.t:26", "UniformOperator.t:26", "SubtreeSlide.t:26", "narrow.t:26", "wide.t:26", "WilsonBalding.t:26", "StrictClockRateScaler.c:47", "YuleBirthRateScaler.t:47", "treeScaler.t:47", "treeRootScaler.t:47", "UniformOperator.t:47", "SubtreeSlide.t:47", "narrow.t:47", "wide.t:47", "WilsonBalding.t:47", "strictClockUpDownOperator.c:47", "StrictClockRateScaler.c:59", "YuleBirthRateScaler.t:59", "treeScaler.t:59", "treeRootScaler.t:59", "UniformOperator.t:59", "SubtreeSlide.t:59", "narrow.t:59", "wide.t:59", "WilsonBalding.t:59", "strictClockUpDownOperator.c:59");
	assertTraceLogEqual("posterior", "likelihood", "prior", "treeLikelihood.26", "TreeHeight.t:26", "YuleModel.t:26", "birthRate.t:26", "treeLikelihood.47", "TreeHeight.t:47", "clockRate.c:47", "YuleModel.t:47", "birthRate.t:47", "treeLikelihood.59", "TreeHeight.t:59", "clockRate.c:59", "YuleModel.t:59", "birthRate.t:59");

	makeSureXMLParses();
}
 
开发者ID:rbouckaert,项目名称:YABBY,代码行数:60,代码来源:LinkUnlinkTest.java

示例7: linkTreesAndClocksAndDeleteTest

import org.fest.swing.fixture.JTableFixture; //导入方法依赖的package包/类
@Test
public void linkTreesAndClocksAndDeleteTest() throws Exception {
	warning("Load gopher data 26.nex, 47.nex, 59.nex");
	importAlignment("examples/nexus", new File("26.nex"), new File("47.nex"), new File("59.nex"));

	JTabbedPaneFixture f = beautiFrame.tabbedPane();
	printBeautiState(f);
	assertStateEquals("Tree.t:26", "birthRate.t:26", "Tree.t:47", "clockRate.c:47", "birthRate.t:47", "Tree.t:59", "clockRate.c:59", "birthRate.t:59");
	assertOperatorsEqual("YuleBirthRateScaler.t:26", "treeScaler.t:26", "treeRootScaler.t:26", "UniformOperator.t:26", "SubtreeSlide.t:26", "narrow.t:26", "wide.t:26", "WilsonBalding.t:26", "StrictClockRateScaler.c:47", "YuleBirthRateScaler.t:47", "treeScaler.t:47", "treeRootScaler.t:47", "UniformOperator.t:47", "SubtreeSlide.t:47", "narrow.t:47", "wide.t:47", "WilsonBalding.t:47", "strictClockUpDownOperator.c:47", "StrictClockRateScaler.c:59", "YuleBirthRateScaler.t:59", "treeScaler.t:59", "treeRootScaler.t:59", "UniformOperator.t:59", "SubtreeSlide.t:59", "narrow.t:59", "wide.t:59", "WilsonBalding.t:59", "strictClockUpDownOperator.c:59");
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26", "YuleModel.t:47", "ClockPrior.c:47", "YuleBirthRatePrior.t:47", "YuleModel.t:59", "ClockPrior.c:59", "YuleBirthRatePrior.t:59");
	assertTraceLogEqual("posterior", "likelihood", "prior", "treeLikelihood.26", "TreeHeight.t:26", "YuleModel.t:26", "birthRate.t:26", "treeLikelihood.47", "TreeHeight.t:47", "clockRate.c:47", "YuleModel.t:47", "birthRate.t:47", "treeLikelihood.59", "TreeHeight.t:59", "clockRate.c:59", "YuleModel.t:59", "birthRate.t:59");

	JTableFixture t = beautiFrame.table();
	t.selectCells(TableCell.row(0).column(0), TableCell.row(1).column(0), TableCell.row(2).column(0));

	warning("Link trees");
	f.selectTab("Partitions");
	beautiFrame.button("Link Trees").click();
	printBeautiState(f);

	warning("Link clocks");
	t.selectCells(TableCell.row(0).column(0), TableCell.row(1).column(0), TableCell.row(2).column(0));
	f.selectTab("Partitions");
	beautiFrame.button("Link Clock Models").click();
	printBeautiState(f);

	warning("Delete second partition");
	f.selectTab("Partitions");
	beautiFrame.table().selectCell(TableCell.row(1).column(0));
	beautiFrame.button("-").click();
	printBeautiState(f);

	warning("Delete first partition");
	f.selectTab("Partitions");
	beautiFrame.table().selectCells(TableCell.row(0).column(0), TableCell.row(1).column(0));
	beautiFrame.button("Link Clock Models").click();
	beautiFrame.table().selectCell(TableCell.row(0).column(0));
	beautiFrame.button("-").click();
	printBeautiState(f);
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26");

	makeSureXMLParses();
}
 
开发者ID:rbouckaert,项目名称:YABBY,代码行数:44,代码来源:LinkUnlinkTest.java

示例8: linkSiteModelsAndDeleteTest

import org.fest.swing.fixture.JTableFixture; //导入方法依赖的package包/类
@Test
public void linkSiteModelsAndDeleteTest() throws Exception {
	warning("Load gopher data 26.nex, 47.nex, 59.nex");
	importAlignment("examples/nexus", new File("26.nex"), new File("47.nex"), new File("59.nex"));

	JTabbedPaneFixture f = beautiFrame.tabbedPane();
	printBeautiState(f);
	assertStateEquals("Tree.t:26", "birthRate.t:26", "Tree.t:47", "clockRate.c:47", "birthRate.t:47", "Tree.t:59", "clockRate.c:59", "birthRate.t:59");
	assertOperatorsEqual("YuleBirthRateScaler.t:26", "treeScaler.t:26", "treeRootScaler.t:26", "UniformOperator.t:26", "SubtreeSlide.t:26", "narrow.t:26", "wide.t:26", "WilsonBalding.t:26", "StrictClockRateScaler.c:47", "YuleBirthRateScaler.t:47", "treeScaler.t:47", "treeRootScaler.t:47", "UniformOperator.t:47", "SubtreeSlide.t:47", "narrow.t:47", "wide.t:47", "WilsonBalding.t:47", "strictClockUpDownOperator.c:47", "StrictClockRateScaler.c:59", "YuleBirthRateScaler.t:59", "treeScaler.t:59", "treeRootScaler.t:59", "UniformOperator.t:59", "SubtreeSlide.t:59", "narrow.t:59", "wide.t:59", "WilsonBalding.t:59", "strictClockUpDownOperator.c:59");
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26", "YuleModel.t:47", "ClockPrior.c:47", "YuleBirthRatePrior.t:47", "YuleModel.t:59", "ClockPrior.c:59", "YuleBirthRatePrior.t:59");
	assertTraceLogEqual("posterior", "likelihood", "prior", "treeLikelihood.26", "TreeHeight.t:26", "YuleModel.t:26", "birthRate.t:26", "treeLikelihood.47", "TreeHeight.t:47", "clockRate.c:47", "YuleModel.t:47", "birthRate.t:47", "treeLikelihood.59", "TreeHeight.t:59", "clockRate.c:59", "YuleModel.t:59", "birthRate.t:59");

	JTableFixture t = beautiFrame.table();
	t.selectCells(TableCell.row(0).column(0), TableCell.row(1).column(0), TableCell.row(2).column(0));

	warning("Link trees");
	f.selectTab("Partitions");
	beautiFrame.button("Link Trees").click();
	printBeautiState(f);

	warning("Link clocks");
	t.selectCells(TableCell.row(0).column(0), TableCell.row(1).column(0), TableCell.row(2).column(0));
	f.selectTab("Partitions");
	beautiFrame.button("Link Clock Models").click();
	printBeautiState(f);

	warning("Delete second partition");
	f.selectTab("Partitions");
	beautiFrame.table().selectCell(TableCell.row(1).column(0));
	beautiFrame.button("-").click();
	printBeautiState(f);

	warning("Delete first partition");
	f.selectTab("Partitions");
	beautiFrame.table().selectCells(TableCell.row(0).column(0), TableCell.row(1).column(0));
	beautiFrame.button("Link Clock Models").click();
	beautiFrame.table().selectCell(TableCell.row(0).column(0));
	beautiFrame.button("-").click();
	printBeautiState(f);
	assertPriorsEqual("YuleModel.t:26", "YuleBirthRatePrior.t:26");

	makeSureXMLParses();
}
 
开发者ID:rbouckaert,项目名称:YABBY,代码行数:44,代码来源:LinkUnlinkTest.java


注:本文中的org.fest.swing.fixture.JTableFixture.selectCells方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。