Package junit.extensions.jfcunit.eventdata

Examples of junit.extensions.jfcunit.eventdata.MouseEventData


   *
   * @param component
   */
  public void click(final Component component) {
    component.requestFocus();
    testHelper.enterClickAndLeave(new MouseEventData(testCase, component));
    Sleeper.MILLISECONDS.sleep(100);
  }
View Full Code Here


     *
     * @param component
     */
    public void click(final Component component) {
        component.requestFocus();
        testHelper.enterClickAndLeave(new MouseEventData(testCase, component));
        Sleeper.MILLISECONDS.sleep(100);
    }
View Full Code Here

        Sleeper.MILLISECONDS.sleep(100);
    }

    public void click(final Component component, final int x, final int y) {
        component.requestFocus();
        testHelper.enterClickAndLeave(new MouseEventData(testCase, component), x, y);
        Sleeper.MILLISECONDS.sleep(100);
    }
View Full Code Here

       
        final JFormattedTextField defaultThrottleTextBox = configDialog.getDefaultThrottleTextBox();
        getHelper().sendString(new StringEventData(this, defaultThrottleTextBox, "999"));

        final JButton okButton = configDialog.getOkButton();
        getHelper().enterClickAndLeave(new MouseEventData(this, okButton));       
       
        Map<String, Object> changedProperties = configDialog.getGlobalConfig();
        assertEquals(999L, changedProperties.get(DroidGlobalProperty.DEFAULT_THROTTLE.getName()));
        assertEquals(ConfigDialog.OK, configDialog.getResponse());
       
View Full Code Here

    public void testChangeDefaultThrottleAndCancel() {
        final JFormattedTextField defaultThrottleTextBox = configDialog.getDefaultThrottleTextBox();
        getHelper().sendString(new StringEventData(this, defaultThrottleTextBox, "999"));

        final JButton cancelButton = configDialog.getCancelButton();
        getHelper().enterClickAndLeave(new MouseEventData(this, cancelButton));       
       
        Map<String, Object> changedProperties = configDialog.getGlobalConfig();
        assertEquals(999L, changedProperties.get(DroidGlobalProperty.DEFAULT_THROTTLE.getName()));
        assertEquals(ConfigDialog.CANCEL, configDialog.getResponse());
    }
View Full Code Here

TOP

Related Classes of junit.extensions.jfcunit.eventdata.MouseEventData

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.