Package org.fest.swing.core

Examples of org.fest.swing.core.ComponentFinder.find()


  @Test
  public void testShowSalesReport() throws Exception {
    dialogFixture.show();
    ComponentFinder finder = BasicComponentFinder
        .finderWithCurrentAwtHierarchy();
    JYearChooser yearChooser = finder.find(new JYearChooserFinder(
        "YearChooser"));
    yearChooser.setYear(2009);

    JComboBoxFixture comboBoxFrom = dialogFixture
        .comboBox("ComboBoxWeekFrom");
View Full Code Here


    ComponentFinder finder = dialogFixture.robot.finder();
    dialogFixture.robot.finder().findByName("DateChooserRegistrationDate");

    dialogFixture.comboBox("ComboBoxJobFunction").selectItem(0);

    JDateChooser dateChooser = finder.find(new JDateChooserFinder(
        "DateChooserAccidentDate"));
    dateChooser.setDate(Util.getCurrentDate());

    dialogFixture.textBox("TextAreaDescription").enterText(
        "testbeskrivelse");
View Full Code Here

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

    ComponentFinder finder = dialogFixture.robot.finder();
    finder.find(new JYearChooserFinder("YearChooser"));

    dialogFixture.comboBox("ComboBoxWeekFrom").requireVisible();
    dialogFixture.comboBox("ComboBoxWeekTo").requireVisible();
    dialogFixture.button("ButtonGenerateReport").requireVisible();
View Full Code Here

  @Test
  public void testGenerateReport() throws Exception {
    dialogFixture.requireVisible();

    ComponentFinder finder = dialogFixture.robot.finder();
    JYearChooser yearChooser = finder.find(new JYearChooserFinder(
        "YearChooser"));
    yearChooser.setYear(2008);

    dialogFixture.comboBox("ComboBoxWeekFrom").requireVisible();
    dialogFixture.comboBox("ComboBoxWeekFrom").target.setSelectedItem(40);
View Full Code Here

  public void testGenerateTransportCost() {
    dialogFixture.show(new Dimension(500, 500));

    ComponentFinder finder = BasicComponentFinder
        .finderWithCurrentAwtHierarchy();
    JYearChooser yearChooser = finder.find(new JYearChooserFinder(
        "YearChooserTransportCost"));
    yearChooser.setYear(2008);

    JComboBoxFixture comboBoxWeekFrom = dialogFixture
        .comboBox("ComboBoxWeekFrom");
View Full Code Here

  @Test
  public void testShowSalesReport() throws Exception {
    ExcelUtil.setUseUniqueFileName(false);
    ComponentFinder finder = dialogFixture.robot.finder();
    JYearChooser yearChooser = finder.find(new JYearChooserFinder(
        "YearChooser"));
    yearChooser.setYear(2008);

    JComboBoxFixture comboBoxFrom = dialogFixture
        .comboBox("ComboBoxWeekFrom");
View Full Code Here

  @Test
  public void testShowSalesReportPrSalesman() throws ProTransException {
    ExcelUtil.setUseUniqueFileName(false);
    dialogFixture.show(new Dimension(320, 150));
    ComponentFinder finder = dialogFixture.robot.finder();
    JYearChooser yearChooser = finder.find(new JYearChooserFinder(
        "YearChooser"));
    yearChooser.setYear(2009);

    JComboBoxFixture comboBoxFrom = dialogFixture
        .comboBox("ComboBoxWeekFrom");
View Full Code Here

  }
  @Test
  public void testRemoveOrderLine() {
   
    ComponentFinder finder = dialogFixture.robot.finder();
    JXTreeTable treeTable = finder.find(new JXTreeTableFinder(
        "TreeTableTransportable"));

    int rowCount = treeTable.getRowCount();
    int currentRow;
    boolean orderLineFound = false;
View Full Code Here

  }

  @Test
  public void testRemoveColli() {
    ComponentFinder finder = dialogFixture.robot.finder();
    JXTreeTable treeTable = finder.find(new JXTreeTableFinder(
        "TreeTableTransportable"));

    int rowCount = treeTable.getRowCount();
    int currentRow;
    boolean colliFound = false;
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.