Package org.fest.swing.fixture

Examples of org.fest.swing.fixture.JTableFixture


    dialogFixture.requireVisible();
  }

  @Test
  public void testShowNumberOf() {
    JTableFixture tableFixture = dialogFixture.table("TableOrderLines");
    assertEquals("#", tableFixture.target.getColumnName(1));
  }
View Full Code Here


  }

  @Test
  public void testSetColliHeight() {
    dialogFixture.checkBox("CheckBoxShowPackaged").uncheck();
    JTableFixture tableFixture = dialogFixture.table("TableOrders");
    tableFixture.cell(row(0).column(0)).select();
    if (dialogFixture.checkBox("CheckBoxReady").target.isSelected()) {
      dialogFixture.checkBox("CheckBoxReady").uncheck();
    }
    dialogFixture.checkBox("CheckBoxReady").check();
View Full Code Here

    editPackInitials.textBox("TextFieldColliHeight").requireText("200");
  }

  @Test
  public void testClickPostShipment() {
    JTableFixture tableFixture = dialogFixture.table("TablePostShipment");
    tableFixture.cell(row(0).column(0)).select();
  }
View Full Code Here

    tableFixture.cell(row(0).column(0)).select();
  }

  @Test
  public void testAddArticleAddComment() {
    JTableFixture tableFixture = dialogFixture.table("TableOrders");
    tableFixture.cell(row(0).column(0)).select();
    dialogFixture.button("ButtonAddArticle").click();

    DialogFixture dialogArticle = WindowFinder
        .findDialog("ArticleTypeView").using(dialogFixture.robot);
    dialogArticle.list("ListArticles").selectItem(0);
View Full Code Here

  }

  @Test
  public void testShowStarted() {
    dialogFixture.show(new Dimension(1010, 600));
    JTableFixture tableFixture = dialogFixture.table("TableOrderLines");
    assertEquals("Startet", tableFixture.target.getColumnName(4));
  }
View Full Code Here

  @Test
  public void testSetReady() {
    dialogFixture.show(new Dimension(1010, 600));
    dialogFixture.checkBox("CheckBoxShowPackaged").uncheck();
    JTableFixture tableFixture = dialogFixture.table("TableOrders");
    tableFixture.cell(row(0).column(0)).select();
    boolean isChecked = false;
    if (dialogFixture.checkBox("CheckBoxReady").target.isSelected()) {
      isChecked = true;
      dialogFixture.checkBox("CheckBoxReady").uncheck();
    } else {
      dialogFixture.checkBox("CheckBoxReady").check();
    }

    if (!isChecked) {
      DialogFixture editPackInitials = WindowFinder.findDialog(
          "EditPackInitials").using(dialogFixture.robot);
      editPackInitials.comboBox("ComboBoxInitials1").selectItem(0);
      editPackInitials.textBox("TextFieldColliHeight").deleteText();
      editPackInitials.textBox("TextFieldColliHeight").enterText("200");
      editPackInitials.button("ButtonOk").click();
    }

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

    if (isChecked) {
      dialogFixture.checkBox("CheckBoxReady").requireNotSelected();
    } else {
      dialogFixture.checkBox("CheckBoxReady").requireSelected();
View Full Code Here

  @Test
  public void testPackOrderLine() {
    dialogFixture.show(new Dimension(1010, 600));
    dialogFixture.checkBox("CheckBoxShowPackaged").uncheck();

    JTableFixture tableFixtureOrder = dialogFixture.table("TableOrders");
    tableFixtureOrder.cell(row(0).column(0)).select();

    JTableFixture tableFixture = dialogFixture.table("TableOrderLines");
    tableFixture.cell(row(0).column(0)).select();
    tableFixture.cell(row(0).column(0)).doubleClick();

    DialogFixture optionDialog = WindowFinder.findDialog("Velg kolli")
        .using(dialogFixture.robot);
    optionDialog.comboBox("ComboBoxOptions").selectItem(0);
    optionDialog.button("ButtonOk").click();
View Full Code Here

  }

  @Test
  public void testShowReady() {
    dialogFixture.comboBox("ComboBoxProductAreaGroup").selectItem("Alle");
    JTableFixture tableFixture = dialogFixture
        .table(TableEnum.TABLEPRODUCTIONGAVL.getTableName());
    assertEquals("Takstol", tableFixture.target.getColumnName(5));
  }
View Full Code Here

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

    JTableFixture tableFixture = dialogFixture
        .table(TableEnum.TABLEPRODUCTIONGAVL.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.comboBox("ComboBoxProductAreaGroup").selectItem("Alle");
    JTableFixture tableFixture = dialogFixture
        .table(TableEnum.TABLEPRODUCTIONGAVL.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.