org.fest.swing.fixture
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):

Author:
Yvonne Wang, Alex Ruiz

Method Summary
 void close()
          Simulates a user closing this fixture's window-like container.
 WindowLikeContainerFixture moveTo(Point p)
          Simulates a user moving this fixture's window-like container to the given point.
 WindowLikeContainerFixture moveToBack()
          Sends this fixture's window-like component to the back.
 WindowLikeContainerFixture moveToFront()
          Brings this fixture's window-like component to the front.
 WindowLikeContainerFixture requireSize(Dimension size)
          Asserts that the size of this fixture's window-like container is equal to given one.
 WindowLikeContainerFixture resizeHeightTo(int height)
          Simulates a user resizing vertically this fixture's window-like container.
 WindowLikeContainerFixture resizeTo(Dimension size)
          Simulates a user resizing this fixture's window-like container.
 WindowLikeContainerFixture resizeWidthTo(int width)
          Simulates a user resizing horizontally this fixture's window-like container.
 

Method Detail

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

WindowLikeContainerFixture resizeTo(Dimension size)
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

WindowLikeContainerFixture requireSize(Dimension size)
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

WindowLikeContainerFixture moveTo(Point p)
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

WindowLikeContainerFixture moveToFront()
Brings this fixture's window-like component to the front.

Returns:
this fixture.

moveToBack

WindowLikeContainerFixture moveToBack()
Sends this fixture's window-like component to the back.

Returns:
this fixture.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.