Examples of JTableFixture


Examples of org.fest.swing.fixture.JTableFixture

  public void testShowContentForPostShipment() {
    dialogFixture.requireVisible();
    dialogFixture.comboBox("ComboBoxProductAreaGroup").selectItem("Alle");
    // dialogFixture.checkBox("CheckBoxFilter").uncheck();

    JTableFixture tableFixture = dialogFixture
        .table(TableEnum.TABLEPRODUCTIONOVERVIEW.getTableName());

    int row = -1;
    boolean postShipmentNotFound = true;

    Transportable transportable = null;
    int maxRow = tableFixture.target.getRowCount();
    while (postShipmentNotFound && row < maxRow - 1) {

      row++;
      transportable = ((ProductionOverviewTableModel) tableFixture.target
          .getModel()).getObjectAtRow(row);
      if (transportable instanceof PostShipment) {
        postShipmentNotFound = false;
      }
    }
    assertEquals(false, postShipmentNotFound);
    if (!postShipmentNotFound) {
      ((JXTable) tableFixture.target).scrollRowToVisible(row);

      tableFixture.cell(row(row).column(2)).click();
      tableFixture.cell(row(row).column(2)).rightClick();
      JPopupMenuFixture popupMenuFixture = new JPopupMenuFixture(
          dialogFixture.robot, (JPopupMenu) dialogFixture.robot
              .finder().findByName("PopupMenuProduction"));
      popupMenuFixture.menuItem("MenuItemShowContent").click();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.