Package no.ugland.utransprod.gui.util

Examples of no.ugland.utransprod.gui.util.JYearChooserFinder


  @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


  @Test
  public void testShowReport() throws Exception {

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

    JComboBoxFixture comboBoxFrom = dialogFixture
        .comboBox("ComboBoxWeekFrom");
    comboBoxFrom.target.setSelectedIndex(10);
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

    dialogFixture.show();

    int numberOfTransports = routeViewHandler.getNumberOfTransports();
    if (numberOfTransports == 0) {
      dialogFixture.robot.finder().find(
          new JYearChooserFinder("YearChooserTransport")).setYear(2012);
      dialogFixture.comboBox("ComboBoxWeeks").target
          .setSelectedIndex(Util.getCurrentWeek() - 2);
      Pause.pause(PAUSE);
    }
    int transports = routeViewHandler.getNumberOfTransports();
View Full Code Here

  @Test
  public void testSendNotPaid() {
    int numberOfTransports = routeViewHandler.getNumberOfTransports();
    if (numberOfTransports == 0) {
      dialogFixture.robot.finder().find(
          new JYearChooserFinder("YearChooserTransport")).setYear(2010);
      dialogFixture.comboBox("ComboBoxWeeks").target
          .setSelectedIndex(Util.getCurrentWeek() - 2);
      Pause.pause(PAUSE);
    }
    JCheckBoxFixture checkBox = dialogFixture.checkBox("CheckBoxSent1");
View Full Code Here

  @Test
  public void testOpenOrder() {
    int numberOfTransports = routeViewHandler.getNumberOfTransports();
    if (numberOfTransports == 0) {
      dialogFixture.robot.finder().find(
          new JYearChooserFinder("YearChooserTransport")).setYear(2010);
      dialogFixture.comboBox("ComboBoxWeeks").target
          .setSelectedIndex(Util.getCurrentWeek() - 2);
      Pause.pause(PAUSE);
    }
    JTableFixture tableFixture = dialogFixture
View Full Code Here

  public void testSetTransportForOrder() {
    dialogFixture.show();
    int numberOfTransports = routeViewHandler.getNumberOfTransports();
    if (numberOfTransports == 0) {
      dialogFixture.robot.finder().find(
          new JYearChooserFinder("YearChooserTransport")).setYear(2013);
      dialogFixture.comboBox("ComboBoxWeeks").target
          .setSelectedIndex(Util.getCurrentWeek() - 2);
      Pause.pause(PAUSE);
    }
View Full Code Here

    dialogFixture.show(routeViewHandler.getWindowSize());
    int numberOfTransports = routeViewHandler.getNumberOfTransports();
    boolean oldWeek = false;
    if (numberOfTransports == 0) {
      dialogFixture.robot.finder().find(
          new JYearChooserFinder("YearChooserTransport")).setYear(2012);
      dialogFixture.comboBox("ComboBoxWeeks").target
          .setSelectedIndex(Util.getCurrentWeek() - 2);
      Pause.pause(PAUSE);
      oldWeek = true;
    }
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.gui.util.JYearChooserFinder

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.