Package org.fest.swing.test.util

Examples of org.fest.swing.test.util.StopWatch


  @Test
  public void should_fail_if_Component_is_not_enabled_before_timeout() {
    disableButton();
    int timeout = 1000;
    StopWatch stopWatch = startNewStopWatch();
    try {
      driver.requireEnabled(window.button, timeout(timeout));
      failWhenExpectingException();
    } catch (WaitTimedOutError e) {
      assertThat(e.getMessage()).contains("Timed out waiting for").contains(window.button.getClass().getName())
      .contains("to be enabled");
    }
    stopWatch.stop();
    assertThatWaited(stopWatch, timeout);
  }
View Full Code Here

TOP

Related Classes of org.fest.swing.test.util.StopWatch

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.