Package org.fest.swing.fixture

Examples of org.fest.swing.fixture.JTableFixture


  @Test
  public void testSetApplied() {
    dialogFixture.checkBox("CheckBoxFilter").uncheck();

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

    tableFixture.cell(row(0).column(1)).click();

    dialogFixture.button("ButtonApply").requireEnabled();
    dialogFixture.button("ButtonUnapply").requireDisabled();

    dialogFixture.button("ButtonApply").click();

    DialogFixture articleView = WindowFinder.findDialog(
        "ArticlePackageView").using(dialogFixture.robot);
    JTableFixture tableFixtureArticles =articleView.table("TableArticles");
    int rows=tableFixtureArticles.rowCount();
    for (int i = 0; i < rows; i++) {
      String test=tableFixtureArticles.cell(row(i).column(1)).value();
      if("false".equalsIgnoreCase(test)){
        tableFixtureArticles.cell(row(i).column(1)).click();
      }
    }
   
    articleView.button("ButtonOk").click();
   
View Full Code Here


    dialogFixture.button("ButtonUnapply").requireDisabled();

    dialogFixture.button("ButtonApply").click();
    DialogFixture articleView = WindowFinder.findDialog(
        "ArticlePackageView").using(dialogFixture.robot);
    JTableFixture tableFixtureArticles =articleView.table("TableArticles");
    int rows=tableFixtureArticles.rowCount();
    for (int i = 0; i < rows; i++) {
      String test=tableFixtureArticles.cell(row(i).column(1)).value();
      if("false".equalsIgnoreCase(test)){
        tableFixtureArticles.cell(row(i).column(1)).click();
      }
    }
   
    articleView.button("ButtonOk").click();
View Full Code Here

    dialogFixture.button("ButtonNotStart").requireDisabled();
    dialogFixture.button("ButtonNotStart").requireText(
        "Ikke startet pakking");

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

    assertEquals("Startet", tableFixture.target.getColumnName(6));

    tableFixture.cell(row(0).column(1)).click();

    String content = tableFixture.cell(row(0).column(6)).value();

    if (content.equalsIgnoreCase("---")) {
      dialogFixture.button("ButtonStart").requireEnabled();
      dialogFixture.button("ButtonStart").click();
      dialogFixture.button("ButtonStart").requireDisabled();

      tableFixture.cell(row(0).column(1)).click();
      dialogFixture.button("ButtonStart").requireDisabled();
      dialogFixture.button("ButtonNotStart").requireEnabled();

    } else {
      dialogFixture.button("ButtonNotStart").requireEnabled();
      dialogFixture.button("ButtonNotStart").click();
      dialogFixture.button("ButtonNotStart").requireDisabled();

      tableFixture.cell(row(0).column(1)).click();
      dialogFixture.button("ButtonNotStart").requireDisabled();
      dialogFixture.button("ButtonStart").requireEnabled();
    }
  }
View Full Code Here

  }

  @Test
  public void testRightClickRegisterAccident() {
    dialogFixture.show(new Dimension(1000, 500));
    JTableFixture tableFixture = dialogFixture
        .table(TableEnum.TABLEPACKAGETAKSTOL.getTableName());
    tableFixture.cell(row(0).column(1)).click();
    tableFixture.cell(row(0).column(1)).rightClick();

    JPopupMenuFixture popupMenuFixture = new JPopupMenuFixture(
        dialogFixture.robot, (JPopupMenu) dialogFixture.robot.finder()
            .findByName("PopupMenuProductionPackage"));
    popupMenuFixture.menuItem("MenuItemAccident").click();
View Full Code Here

    dialogFixture.button("ButtonNotStart").requireDisabled();
    dialogFixture.button("ButtonNotStart").requireText(
        "Ikke startet produksjon");

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

    assertEquals("Startet", tableFixture.target.getColumnName(8));

    tableFixture.cell(row(0).column(1)).click();

    String content = tableFixture.cell(row(0).column(8)).value();

    if (content.equalsIgnoreCase("---")) {
      dialogFixture.button("ButtonStart").requireEnabled();
      dialogFixture.button("ButtonStart").click();
      dialogFixture.button("ButtonStart").requireDisabled();

      tableFixture.cell(row(0).column(1)).click();
      dialogFixture.button("ButtonStart").requireDisabled();
      dialogFixture.button("ButtonNotStart").requireEnabled();

    } else {
      dialogFixture.button("ButtonNotStart").requireEnabled();
      dialogFixture.button("ButtonNotStart").click();
      dialogFixture.button("ButtonNotStart").requireDisabled();

      tableFixture.cell(row(0).column(1)).click();
      dialogFixture.button("ButtonNotStart").requireDisabled();
      dialogFixture.button("ButtonStart").requireEnabled();
    }
  }
View Full Code Here

  @Test
  public void testShowProductionDate() {
    dialogFixture.show(new Dimension(1000, 500));
    dialogFixture.comboBox("ComboBoxProductAreaGroup").selectItem("Alle");
    JTableFixture tableFixture = dialogFixture
        .table(TableEnum.TABLEPRODUCTIONFRONT.getTableName());

    assertEquals("Prod.dato", tableFixture.target.getColumnName(2));

  }
View Full Code Here

    dialogFixture.comboBox("ComboBoxProductAreaGroup").selectItem("Alle");

    dialogFixture.button("ButtonApply").requireText("Sett bestilt");
    dialogFixture.button("ButtonUnapply").requireText("Sett ikke bestilt");

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

    assertEquals("Bestilt", tableFixture.target.getColumnName(6));
  }
View Full Code Here

  @Test
  public void testSetApplied() {
    dialogFixture.checkBox("CheckBoxFilter").uncheck();

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

    tableFixture.cell(row(0).column(1)).click();

    dialogFixture.button("ButtonApply").requireEnabled();
    dialogFixture.button("ButtonUnapply").requireDisabled();

    dialogFixture.button("ButtonApply").click();

    tableFixture.cell(row(0).column(1)).click();

    dialogFixture.button("ButtonApply").requireDisabled();
    dialogFixture.button("ButtonUnapply").requireEnabled();
  }
View Full Code Here

    dialogFixture.button("ButtonNotStart").requireDisabled();
    dialogFixture.button("ButtonNotStart").requireText(
        "Ikke startet produksjon");

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

    assertEquals("Startet", tableFixture.target.getColumnName(9));

    tableFixture.cell(row(0).column(1)).click();

    String content = tableFixture.cell(row(0).column(9)).value();

    if (content.equalsIgnoreCase("---")) {
      dialogFixture.button("ButtonStart").requireEnabled();
      dialogFixture.button("ButtonStart").click();
      dialogFixture.button("ButtonStart").requireDisabled();

      tableFixture.cell(row(0).column(1)).click();
      dialogFixture.button("ButtonStart").requireDisabled();
      dialogFixture.button("ButtonNotStart").requireEnabled();

    } else {
      dialogFixture.button("ButtonNotStart").requireEnabled();
      dialogFixture.button("ButtonNotStart").click();
      dialogFixture.button("ButtonNotStart").requireDisabled();

      tableFixture.cell(row(0).column(1)).click();
      dialogFixture.button("ButtonNotStart").requireDisabled();
      dialogFixture.button("ButtonStart").requireEnabled();
    }
  }
View Full Code Here

  @Test
  public void testShowProductionDate() {
    dialogFixture.show(new Dimension(1000, 500));
    dialogFixture.comboBox("ComboBoxProductAreaGroup").selectItem("Alle");
    JTableFixture tableFixture = dialogFixture
        .table(TableEnum.TABLEPRODUCTIONVEGG.getTableName());

    assertEquals("Prod.dato", tableFixture.target.getColumnName(2));

  }
View Full Code Here

TOP

Related Classes of org.fest.swing.fixture.JTableFixture

Copyright © 2018 www.massapicom. 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.