Package org.fest.swing.core

Examples of org.fest.swing.core.MouseClickInfo


    verify(driver).click(target, cell, LEFT_BUTTON, 1);
  }

  @Test
  public void should_call_click_with_MouseClickInfo_in_driver_and_return_self() {
    MouseClickInfo info = middleButton().times(3);
    assertThat(fixture.click(cell, info)).isSameAs(fixture);
    verify(driver).click(target, cell, MIDDLE_BUTTON, 3);
  }
View Full Code Here


    MouseClickInfo.button(null);
  }

  @Test
  public void shouldCreateLeftButtonClickOneTime() {
    MouseClickInfo button = MouseClickInfo.leftButton();
    assertThat(button.button()).isEqualTo(LEFT_BUTTON);
    assertThat(button.times()).isEqualTo(1);
  }
View Full Code Here

    assertThat(button.times()).isEqualTo(1);
  }

  @Test
  public void shouldCreateMiddleButtonClickOneTime() {
    MouseClickInfo button = MouseClickInfo.middleButton();
    assertThat(button.button()).isEqualTo(MIDDLE_BUTTON);
    assertThat(button.times()).isEqualTo(1);
  }
View Full Code Here

    assertThat(button.times()).isEqualTo(1);
  }

  @Test
  public void shouldCreateRightButtonClickOneTime() {
    MouseClickInfo button = MouseClickInfo.rightButton();
    assertThat(button.button()).isEqualTo(RIGHT_BUTTON);
    assertThat(button.times()).isEqualTo(1);
  }
View Full Code Here

    assertThat(button.times()).isEqualTo(1);
  }

  @Test
  public void shouldIncludeButtonAndTimesPressedInToString() {
    MouseClickInfo button = MouseClickInfo.rightButton();
    assertThat(button.toString()).contains("button=RIGHT_BUTTON").contains("times=1");
  }
View Full Code Here

    verify(treeFixture).clickRow(index, MIDDLE_BUTTON);
  }

  @Test
  public void should_call_clickRow_with_MouseClickInfo_in_JTreeFixture_and_return_self() {
    MouseClickInfo info = middleButton().times(3);
    assertThat(fixture.click(info)).isSameAs(fixture);
    verify(treeFixture).clickRow(index, info);
  }
View Full Code Here

public class JTreeDriver_clickRow_withMouseClickInfo_Test extends JTreeDriver_clickCell_TestCase {
  private static MouseClickInfo mouseClickInfo = rightButton().times(2);

  @Test(expected = NullPointerException.class)
  public void should_throw_error_if_MouseClickInfo_is_null() {
    MouseClickInfo info = null;
    driver.clickRow(tree, 1, info);
  }
View Full Code Here

TOP

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

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.