Package org.fest.swing.core

Examples of org.fest.swing.core.ComponentFinder


    dialogFixture=null;
  }
  @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


    dialogFixture.button("ButtonCancel").click();
  }

  @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

   * it has been initialised properly. Normally it is a simple call to the "launch" method of
   * the main window.
   * @return
   */
  public static ComponentFinder initialiseNewThread(final Runnable threadInitiated) {
    ComponentFinder finder = BasicComponentFinder.finderWithNewAwtHierarchy();
        // Lauch the "main" thread
        Thread mainThread = new Thread(new Runnable() {
            public void run() {
                if (!ServiceObjectRegistry.isConfigured()) {
                    ServiceObjectRegistry.setConfigFileName("client-config-local.xml");
View Full Code Here

   * it has been initialised properly. Normally it is a simple call to the "launch" method of
   * the main window.
   * @return
   */
  public static ComponentFinder initialiseNewThread(final Runnable threadInitiated) {
    ComponentFinder finder = BasicComponentFinder.finderWithNewAwtHierarchy();
        // Lauch the "main" thread
        Thread mainThread = new Thread(new Runnable() {
            public void run() {
                if (!ServiceObjectRegistry.isConfigured()) {
                    ServiceObjectRegistry.setConfigFileName("client-config-local.xml");
View Full Code Here

  }

  @Test
  public void testInvalidInputDialog()
  {
    final ComponentFinder finder = BasicComponentFinder
        .finderWithCurrentAwtHierarchy();
    JButtonFixture btn = window.button();
    JTextComponentFixture url = window.textBox();
    url.enterText("not a url");
    btn.click();

    window.dialog().requireVisible();

    window.dialog().button().click();

    btn.requireEnabled();
    btn.requireEnabled();

    url.enterText("www.yahoo.com");
    url.pressKey(KeyEvent.VK_ENTER);

    final JFileChooserFixture fc = JFileChooserFinder.findFileChooser()
        .withTimeout(15000).using(window.robot);
    final JButtonFixture fBtn = btn;

    GuiActionRunner.execute(new GuiTask() {
      @Override
      public void executeInEDT()
      {
        fc.target.setSelectedFile(Files.currentFolder());
        fc.target.approveSelection();
        fBtn.requireDisabled();
        fBtn.requireDisabled();
      }
    });

    JPanel panel = (JPanel) finder.findByName("Download Progress");
    Assert.assertTrue(panel.getComponentCount() > 0);
  }
View Full Code Here

TOP

Related Classes of org.fest.swing.core.ComponentFinder

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.