Package 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):
- user input simulation
- state verification
- property value query
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Simulates a user closing this fixture's window-like container.Simulates a user moving this fixture's window-like container to the given point.Sends this fixture's window-like component to the back.Brings this fixture's window-like component to the front.requireSize(Dimension size) Asserts that the size of this fixture's window-like container is equal to given one.resizeHeightTo(int height) Simulates a user resizing vertically this fixture's window-like container.Simulates a user resizing this fixture's window-like container.resizeWidthTo(int width) Simulates a user resizing horizontally this fixture's window-like container.
-
Method Details
-
close
void close()Simulates a user closing this fixture's window-like container. -
resizeWidthTo
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
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
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.
-