Package org.fest.swing.core

Examples of org.fest.swing.core.Settings


    driver = new ComponentDriver(robot);
  }

  @Test
  public void should_return_settings_from_Robot() {
    Settings settings = new Settings();
    when(robot.settings()).thenReturn(settings);
    assertThat(driver.settings()).isSameAs(settings);
  }
View Full Code Here


  }

  @Test
  public void should_lookup_Component_by_name_and_type() {
    Frame frame = mock(type);
    Settings settings = mock(Settings.class);
    when(robot.settings()).thenReturn(settings);
    when(settings.componentLookupScope()).thenReturn(SHOWING_ONLY);
    ComponentFinder finder = mock(ComponentFinder.class);
    when(robot.finder()).thenReturn(finder);
    when(finder.findByType(type, true)).thenReturn(frame);
    ComponentFixture fixture = new ComponentFixture(ComponentFixture.class, robot, type);
    assertThat(fixture.robot()).isSameAs(robot);
View Full Code Here

  }

  @Test
  public void should_lookup_Component_by_name_and_type() {
    Frame frame = mock(type);
    Settings settings = mock(Settings.class);
    when(robot.settings()).thenReturn(settings);
    when(settings.componentLookupScope()).thenReturn(SHOWING_ONLY);
    ComponentFinder finder = mock(ComponentFinder.class);
    when(robot.finder()).thenReturn(finder);
    when(finder.findByName(name, type, true)).thenReturn(frame);
    ComponentFixture fixture = new ComponentFixture(ComponentFixture.class, robot, name, type);
    assertThat(fixture.robot()).isSameAs(robot);
View Full Code Here

TOP

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

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.