Interface WindowLikeContainerFixture

All Known Subinterfaces:
FrameLikeFixture
All Known Implementing Classes:
DialogFixture, FrameFixture, JInternalFrameFixture, WindowFixture

public interface WindowLikeContainerFixture
Understands functional testing of window-like containers (not necessarily subclasses of Window):
  • user input simulation
  • state verification
  • property value query
  • Method Details

    • close

      void close()
      Simulates a user closing this fixture's window-like container.
    • resizeWidthTo

      WindowLikeContainerFixture resizeWidthTo(int width)
      Simulates a user resizing horizontally this fixture's window-like container.
      Parameters:
      width - the width that this fixture's window-like container should have after being resized.
      Returns:
      this fixture.
    • resizeHeightTo

      WindowLikeContainerFixture resizeHeightTo(int height)
      Simulates a user resizing vertically this fixture's window-like container.
      Parameters:
      height - the height that this fixture's window-like container should have after being resized.
      Returns:
      this fixture.
    • resizeTo

      Simulates a user resizing this fixture's window-like container.
      Parameters:
      size - the size that the target window should have after being resized.
      Returns:
      this fixture.
    • requireSize

      Asserts that the size of this fixture's window-like container is equal to given one.
      Parameters:
      size - the given size to match.
      Returns:
      this fixture.
      Throws:
      AssertionError - if the size of this fixture's window-like container is not equal to the given size.
    • moveTo

      Simulates a user moving this fixture's window-like container to the given point.
      Parameters:
      p - the point to move this fixture's window-like container to.
      Returns:
      this fixture.
    • moveToFront

      Brings this fixture's window-like component to the front.
      Returns:
      this fixture.
    • moveToBack

      Sends this fixture's window-like component to the back.
      Returns:
      this fixture.