S - used to simulate "self types." For more information please read "Emulating 'self types' using Java Generics to simplify fluent API implementation."public interface WindowLikeContainerFixture<S>
Window).| Modifier and Type | Method and Description |
|---|---|
void |
close()
Simulates a user closing this fixture's window-like container.
|
S |
moveTo(Point p)
Simulates a user moving this fixture's window-like container to the given point.
|
S |
moveToBack()
Sends this fixture's window-like component to the back.
|
S |
moveToFront()
Brings this fixture's window-like component to the front.
|
S |
requireSize(Dimension size)
Asserts that the size of this fixture's window-like container is equal to given one.
|
S |
resizeHeightTo(int height)
Simulates a user resizing vertically this fixture's window-like container.
|
S |
resizeTo(Dimension size)
Simulates a user resizing this fixture's window-like container.
|
S |
resizeWidthTo(int width)
Simulates a user resizing horizontally this fixture's window-like container.
|
void close()
@Nonnull S resizeWidthTo(int width)
width - the width that this fixture's window-like container should have after being resized.@Nonnull S resizeHeightTo(int height)
height - the height that this fixture's window-like container should have after being resized.@Nonnull S resizeTo(@Nonnull Dimension size)
size - the size that the target window should have after being resized.@Nonnull S requireSize(@Nonnull Dimension size)
size - the given size to match.AssertionError - if the size of this fixture's window-like container is not equal to the given size.@Nonnull S moveTo(@Nonnull Point p)
p - the point to move this fixture's window-like container to.@Nonnull S moveToFront()
Copyright © 2014 AssertJ. All rights reserved.