Package javax.swing

Examples of javax.swing.JButton.doClick()


    tf.setText(testString);
    tf.postActionEvent(); // send message
    assertEquals(testString, tf.getText());
    JButton reset = (JButton) TestUtils.getChildNamed(gf, "reset");
    assertNotNull(reset); // reset found?
    reset.doClick(); // "click" reset
    assertEquals("", tf.getText());
  }

  /**
   * Get an instance of JabRef via its singleton and get a GeneralFetcher and an ACMPortalFetcher
View Full Code Here


   
    // 2. Click on nextFinishButton
    JComponentTester tester = new JComponentTester();
    tester.invokeAndWait(new Runnable() {
        public void run() {
          nextFinishOptionButton.doClick();
        }
      });
    // Check view displays second step view
    assertEquals("Second step view class isn't correct",
        ControllerTest.SecondStepView.class,
View Full Code Here

   

    // 4. Click on nextFinishButton
    tester.invokeAndWait(new Runnable() {
        public void run() {
          nextFinishOptionButton.doClick();
        }
      });
    // Check view displays second step view
    assertEquals("Second step view class isn't correct",
        ControllerTest.SecondStepView.class,
View Full Code Here

    assertTrue("Next button isn't enabled", nextFinishOptionButton.isEnabled());
   
    // 5. Click on nextFinishButton
    tester.invokeAndWait(new Runnable() {
        public void run() {
          nextFinishOptionButton.doClick();
        }
      });
    // Check finish was called
    assertTrue("Finish wasn't called", finished [0]);
  }
View Full Code Here

    assertFalse("Choice button text didn't change",
        imageChoiceOrChangeButtonText.equals(imageChoiceOrChangeButton.getText()));
    // Click on next button
    tester.invokeAndWait(new Runnable() {
        public void run() {
          nextFinishOptionButton.doClick();
        }
      });
    // Check current step is attributes
    assertStepShowing(panel, false, true);
View Full Code Here

    assertEquals("height", 5 * height, newHeight);
   
    tester.invokeAndWait(new Runnable() {
        public void run() {
          // Click on Finish to hide dialog box in Event Dispatch Thread
          nextFinishOptionButton.doClick();
        }
      });
    assertFalse("Import texture wizard still showing", textureWizardDialog.isShowing());

    // Check the list of available textures has one more selected modifiable texture
View Full Code Here

    widthSpinner = (JSpinner)TestUtilities.getField(panel, "widthSpinner");
    final JButton nextFinishOptionButton2 = (JButton)TestUtilities.getField(
        TestUtilities.findComponent(textureWizardDialog, WizardPane.class), "nextFinishOptionButton");
    tester.invokeAndWait(new Runnable() {
        public void run() {
          nextFinishOptionButton2.doClick();
        }
      });
   
    // Change width
    widthSpinner.setValue((Float)widthSpinner.getValue() * 2);
 
View Full Code Here

    widthSpinner.setValue((Float)widthSpinner.getValue() * 2);
    newWidth = (Float)widthSpinner.getValue();
    tester.invokeAndWait(new Runnable() {
        public void run() {
          // Click on Finish to hide dialog box in Event Dispatch Thread
          nextFinishOptionButton2.doClick();
        }
      });
    tester.waitForIdle();
    assertFalse("Import texture wizard still showing", textureWizardDialog.isShowing());
    // Check the list of available textures has the same texture count
View Full Code Here

          }
        });
    tester.invokeAndWait(new Runnable() {
        public void run() {
          // Display confirm dialog box later in Event Dispatch Thread to avoid blocking test thread
          deleteButton.doClick();       
        }
      });
    tester.waitForIdle();
    // Wait for confirm dialog to be shown
    final String confirmDeleteSelectedCatalogTextureDialogTitle = preferences.getLocalizedString(
View Full Code Here

          }
        });
    tester.invokeLater(new Runnable() {
        public void run() {
          // Display dialog box later in Event Dispatch Thread to avoid blocking test thread
          button.doClick();       
        }
      });
    // Wait for texture wizard to be shown
    String textureWizardTitle = preferences.getLocalizedString(
        ImportedTextureWizardController.class,
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.