Examples of internalFrame()


Examples of org.fest.swing.test.swing.TestMdiWindow.internalFrame()

  @Test
  public void should_pass_if_JInternalFrame_is_resizable() {
    TestMdiWindow w = TestMdiWindow.createNewWindow(getClass());
    robot.showWindow(w);
    checkCanResize(w.internalFrame());
  }

  @Test
  public void should_pass_if_JInternalFrame_is_resizableAndDisabled() {
    TestMdiWindow w = TestMdiWindow.createNewWindow(getClass());
View Full Code Here

Examples of org.fest.swing.test.swing.TestMdiWindow.internalFrame()

  @Test
  public void should_pass_if_JInternalFrame_is_resizableAndDisabled() {
    TestMdiWindow w = TestMdiWindow.createNewWindow(getClass());
    robot.showWindow(w);
    disable(w.internalFrame());
    checkCanResize(w.internalFrame());
  }

  @Test
  public void should_fail_if_JInternalFrame_is_not_resizable() {
View Full Code Here

Examples of org.fest.swing.test.swing.TestMdiWindow.internalFrame()

  @Test
  public void should_pass_if_JInternalFrame_is_resizableAndDisabled() {
    TestMdiWindow w = TestMdiWindow.createNewWindow(getClass());
    robot.showWindow(w);
    disable(w.internalFrame());
    checkCanResize(w.internalFrame());
  }

  @Test
  public void should_fail_if_JInternalFrame_is_not_resizable() {
    TestMdiWindow w = TestMdiWindow.createNewWindow(getClass());
View Full Code Here

Examples of org.fest.swing.test.swing.TestMdiWindow.internalFrame()

  @Test
  public void should_fail_if_JInternalFrame_is_not_resizable() {
    TestMdiWindow w = TestMdiWindow.createNewWindow(getClass());
    robot.showWindow(w);
    JInternalFrame i = w.internalFrame();
    makeNotResizable(i);
    robot.waitForIdle();
    try {
      checkCanResize(i);
      failWhenExpectingException();
View Full Code Here

Examples of org.fest.swing.test.swing.TestMdiWindow.internalFrame()

  @Test
  public void should_fail_if_JInternalFrame_is_resizable_but_not_showing_on_the_screen() {
    TestMdiWindow w = TestMdiWindow.createNewWindow(getClass());
    try {
      checkCanResize(w.internalFrame());
      failWhenExpectingException();
    } catch (IllegalStateException e) {
      assertThatErrorCauseIsNotShowingComponent(e);
    }
  }
View Full Code Here

Examples of org.fest.swing.test.swing.TestMdiWindow.internalFrame()

  private JInternalFrame internalFrame;

  @Override
  protected void onSetUp() {
    TestMdiWindow window = TestMdiWindow.createNewWindow(getClass());
    internalFrame = window.internalFrame();
  }

  @Test
  public void should_iconify_and_deiconify_JInternalFrame() {
    assertThat(isIcon(internalFrame)).isFalse();
View Full Code Here

Examples of org.fest.swing.test.swing.TestMdiWindow.internalFrame()

  private JInternalFrame internalFrame;

  @Override
  protected void onSetUp() {
    TestMdiWindow window = TestMdiWindow.createNewWindow(getClass());
    internalFrame = window.internalFrame();
  }

  @Test
  public void should_return_true_if_JInternalFrame_is_iconified() {
    iconify();
View Full Code Here

Examples of org.fest.swing.test.swing.TestMdiWindow.internalFrame()

  private JInternalFrame internalFrame;

  @Override
  protected void onSetUp() {
    TestMdiWindow window = TestMdiWindow.createNewWindow(getClass());
    internalFrame = window.internalFrame();
    robot.showWindow(window);
    assertThat(window.internalFrame().isVisible()).isTrue();
  }

  @Test
View Full Code Here

Examples of org.fest.swing.test.swing.TestMdiWindow.internalFrame()

  @Override
  protected void onSetUp() {
    TestMdiWindow window = TestMdiWindow.createNewWindow(getClass());
    internalFrame = window.internalFrame();
    robot.showWindow(window);
    assertThat(window.internalFrame().isVisible()).isTrue();
  }

  @Test
  public void should_close_JInternalFrame() {
    JInternalFrameCloseTask.close(internalFrame);
View Full Code Here

Examples of org.fest.swing.test.swing.TestMdiWindow.internalFrame()

  }

  @Test
  public void should_return_parent_of_JInternalFrame() {
    TestMdiWindow window = TestMdiWindow.createNewWindow(getClass());
    JInternalFrame internalFrame = window.internalFrame();
    try {
      assertThat(findParent(finder, internalFrame)).isNotNull().isSameAs(desktopPaneOf(internalFrame));
    } finally {
      window.destroy();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.