Package org.fest.swing.core

Examples of org.fest.swing.core.KeyPressInfo


    verify(fixture.driver()).focus(fixture.target());
  }

  @Test
  public void should_call_pressAndReleaseKey_in_driver_and_return_self() {
    KeyPressInfo info = keyCode(VK_C);
    assertThat(fixture.pressAndReleaseKey(info)).isSameAs(fixture);
    verify(fixture.driver()).pressAndReleaseKey(fixture.target(), info);
  }
View Full Code Here


    @Ignore("problem with this test")
    @Test
    public void zoomIn() throws Exception {
        ReferencedEnvelope startEnv = mapPane.getDisplayArea();
       
        KeyPressInfo info = getKeyPressInfo(MapPaneKeyHandler.Action.ZOOM_IN);
        windowFixture.panel("pane").pressAndReleaseKey(info);
       
        assertTrue(mapPane.latch.await(WAIT_TIMEOUT, TimeUnit.MILLISECONDS));
       
        ReferencedEnvelope endEnv = mapPane.getDisplayArea();
View Full Code Here

    }
   
    private void assertScroll(MapPaneKeyHandler.Action action, int expectedDx, int expectedDy)
            throws Exception {
       
        KeyPressInfo info = getKeyPressInfo(action);
        windowFixture.panel("pane").pressAndReleaseKey(info);
       
        assertTrue(mapPane.latch.await(WAIT_TIMEOUT, TimeUnit.MILLISECONDS));
        assertEquals(sign(expectedDx), sign(mapPane.dx));
        assertEquals(sign(expectedDy), sign(mapPane.dy));
View Full Code Here

    @Ignore("problem with this test")
    @Test
    public void zoomIn() throws Exception {
        ReferencedEnvelope startEnv = mapPane.getDisplayArea();
       
        KeyPressInfo info = getKeyPressInfo(MapPaneKeyHandler.Action.ZOOM_IN);
        windowFixture.panel("pane").pressAndReleaseKey(info);
       
        assertTrue(mapPane.latch.await(WAIT_TIMEOUT, TimeUnit.MILLISECONDS));
       
        ReferencedEnvelope endEnv = mapPane.getDisplayArea();
View Full Code Here

    }
   
    private void assertScroll(MapPaneKeyHandler.Action action, int expectedDx, int expectedDy)
            throws Exception {
       
        KeyPressInfo info = getKeyPressInfo(action);
        windowFixture.panel("pane").pressAndReleaseKey(info);
       
        assertTrue(mapPane.latch.await(WAIT_TIMEOUT, TimeUnit.MILLISECONDS));
        assertEquals(sign(expectedDx), sign(mapPane.dx));
        assertEquals(sign(expectedDy), sign(mapPane.dy));
View Full Code Here

TOP

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

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.