Package org.fest.swing.test.swing

Examples of org.fest.swing.test.swing.TestDialog


  }

  @Test
  public void should_return_false_if_Dialog_is_showing_and_title_is_not_equal_to_expected() {
    TestWindow window = TestWindow.createAndShowNewWindow(DialogMatcher.class);
    TestDialog dialog = TestDialog.createAndShowNewDialog(window);
    DialogMatcher matcher = DialogMatcher.withTitle("Hello").andShowing();
    assertThat(matcher.matches(dialog)).isFalse();
  }
View Full Code Here


  @Test
  public void should_return_owned_Windows() {
    ScreenLock.instance().acquire(this);
    TestWindow window = TestWindow.createNewWindow(getClass());
    TestDialog dialog = TestDialog.createNewDialog(window);
    try {
      Collection<Component> children = findChildren(finder, window);
      assertThat(children).containsOnly(dialog);
    } finally {
      try {
        dialog.destroy();
        window.destroy();
      } finally {
        ScreenLock.instance().release(this);
      }
    }
View Full Code Here

  }

  @Test
  public void should_return_true_if_parent_of_Window_is_ignored() {
    TestWindow window = TestWindow.createNewWindow(getClass());
    TestDialog dialog = TestDialog.createNewDialog(window);
    addToIgnoredMap(window);
    assertThat(isComponentIgnored(filter, dialog)).isTrue();
  }
View Full Code Here

  }

  @Test
  public void should_ignore_owned_Windows() {
    TestWindow window = TestWindow.createNewWindow(getClass());
    TestDialog dialog = TestDialog.createNewDialog(window);
    addToImplicitlyIgnoredMap(window, dialog);
    ignore(filter, window);
    assertThat(allIgnored()).containsOnly(window, dialog);
    assertThatNoComponentsAreImplicitlyIgnored();
  }
View Full Code Here

TOP

Related Classes of org.fest.swing.test.swing.TestDialog

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.