Package org.fest.swing.fixture

Examples of org.fest.swing.fixture.JTableFixture


  @Test
  public void testOpenDeviation() {
    dialogFixture.show(new Dimension(850, 500));
    dialogFixture.checkBox("CheckBoxFilterOwn").uncheck();
    JTableFixture tableFixture = dialogFixture.table("TableDeviation");
    tableFixture.click();
    int row = -1;
    boolean functionNotFound = true;
    String content;
    while (functionNotFound) {
      row++;
      content = dialogFixture.table("TableDeviation").cell(
          row(row).column(8)).value();
      if (content.equalsIgnoreCase("Transport")) {
        functionNotFound = false;
      }
    }

    tableFixture.cell(row(row).column(1)).doubleClick();

    WindowFinder.findDialog("EditDeviationView").withTimeout(60000).using(
        dialogFixture.robot);

  }
View Full Code Here


  @Test
  public void testSetDateClosed() {
    dialogFixture.show(new Dimension(850, 500));
    dialogFixture.checkBox("CheckBoxFilterOwn").uncheck();

    JTableFixture tableFixture = dialogFixture.table("TableDeviation");
    tableFixture.click();

    tableFixture.cell(row(1).column(1)).doubleClick();

    DialogFixture editDialog = WindowFinder.findDialog("EditDeviationView")
        .withTimeout(60000).using(dialogFixture.robot);

    editDialog.comboBox("ComboBoxStatus").selectItem("Ferdigbehandlet");
View Full Code Here

    dialogFixture.requireVisible();
  }

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

 
  @Test
  public void testShowPackageArticles() {
    dialogFixture.requireVisible();

    JTableFixture tableFixture = dialogFixture.table("TableArticles");
    tableFixture.requireVisible();
    assertEquals("Artikkel", tableFixture.target.getColumnName(0));
    assertEquals("Pakket", tableFixture.target.getColumnName(1));
   
    assertEquals("test ", tableFixture.cell(row(0).column(0)).value());
    tableFixture.cell(row(0).column(1)).click();
    dialogFixture.button("ButtonOk").click();
  }
View Full Code Here

  }

  @Test
  public void testOpenEditView() throws Exception {

    JTableFixture table = dialogFixture.table("TableConstructionType");

    assertEquals(true, table.target.getModel().getRowCount() != 0);

    dialogFixture.button("RemoveConstructionType");
View Full Code Here

    editDialog.textBox("TextFieldRegisteredBy").enterText("Arild%");
    editDialog.button("EditSearchAccident").click();

    // Pause.pause(10000);

    JTableFixture tableFixture = dialogFixture.table("TableAccident");
    tableFixture.selectCell(row(0).column(1));
    tableFixture.cell(row(0).column(1)).doubleClick();

    editDialog = WindowFinder.findDialog("EditAccidentView").withTimeout(
        20000).using(dialogFixture.robot);
  }
View Full Code Here

  }

  @Test
  public void testOpenAccident() {
    dialogFixture.show(new Dimension(850, 500));
    JTableFixture tableFixture = dialogFixture.table("TableAccident");
    tableFixture.click();

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

    WindowFinder.findDialog("EditAccidentView").withTimeout(60000).using(
        dialogFixture.robot);

  }
View Full Code Here

      }
    }

    assertEquals(true, orderLineFound);

    JTableFixture tableFixture = new JTableFixture(dialogFixture.robot,
        treeTable);
    tableFixture.cell(row(currentRow).column(1)).click();

    List<Object> splitted = viewHandler.getSplitted();
    assertNotNull(splitted);
    assertEquals(1, splitted.size());
View Full Code Here

      }
    }

    assertEquals(true, colliFound);

    JTableFixture tableFixture = new JTableFixture(dialogFixture.robot,
        treeTable);
    tableFixture.cell(row(currentRow).column(1)).click();

    List<Object> splitted = viewHandler.getSplitted();
    assertNotNull(splitted);
    assertEquals(1, splitted.size());
View Full Code Here

  }

  @Test
  public void testOpenProductionUnit() {
    dialogFixture.show(new Dimension(850, 500));
    JTableFixture tableFixture = dialogFixture.table("TableProductionUnit");
    tableFixture.click();

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

    WindowFinder.findDialog("EditProductionUnitView").withTimeout(60000)
        .using(dialogFixture.robot);

  }
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.