Package org.fest.swing.driver

Examples of org.fest.swing.driver.ComponentDriver


      super(selfType, robot, type);
    }

    @Override
    protected @Nonnull ComponentDriver createDriver(@Nonnull Robot robot) {
      return new ComponentDriver(robot);
    }
View Full Code Here


  }

  @Test
  public void should_delegate_to_fontOf_in_driver() {
    Font font = mock(Font.class);
    ComponentDriver driver = fixture.driver();
    Component component = fixture.target();
    when(driver.fontOf(component)).thenReturn(font);
    assertThat(fixture.font().target()).isSameAs(font);
    verify(driver).fontOf(component);
  }
View Full Code Here

    verify(driver).fontOf(component);
  }

  @Test
  public void should_delegate_to_backgroundOf_in_driver() {
    ComponentDriver driver = fixture.driver();
    Component component = fixture.target();
    when(driver.backgroundOf(component)).thenReturn(BLUE);
    assertThat(fixture.background().target()).isSameAs(BLUE);
    verify(driver).backgroundOf(component);
  }
View Full Code Here

    verify(driver).backgroundOf(component);
  }

  @Test
  public void should_delegate_to_foregroundOf_in_driver() {
    ComponentDriver driver = fixture.driver();
    Component component = fixture.target();
    when(driver.foregroundOf(component)).thenReturn(BLUE);
    assertThat(fixture.foreground().target()).isSameAs(BLUE);
    verify(driver).foregroundOf(component);
  }
View Full Code Here

      super(selfType, robot, name, type);
    }

    @Override
    protected @Nonnull ComponentDriver createDriver(@Nonnull Robot robot) {
      return new ComponentDriver(robot);
    }
View Full Code Here

      super(selfType, robot, target);
    }

    @Override
    protected @Nonnull ComponentDriver createDriver(@Nonnull Robot robot) {
      return new ComponentDriver(robot);
    }
View Full Code Here

   * @param target the target <code>Component</code> to be managed by this fixture.
   * @throws NullPointerException if <code>robot</code> is <code>null</code>.
   * @throws NullPointerException if <code>target</code> is <code>null</code>.
   */
  public GenericComponentFixture(Robot robot, T target) {
    this(robot, new ComponentDriver(robot), target);
  }
View Full Code Here

TOP

Related Classes of org.fest.swing.driver.ComponentDriver

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.