Package | Description |
---|---|
student |
This package provides classes written for use in introductory
computer science courses.
|
student.testingsupport |
Modifier and Type | Method and Description |
---|---|
static GUIFilter |
GUITestCase.not(GUIFilter otherFilter)
The "not" operator for negating an existing filter, when the not
operation is at the very beginning of the expression, re-exported
from
GUIFilter so that it is
available in test methods without requiring a static import. |
Modifier and Type | Method and Description |
---|---|
<T extends Component> |
GUITestCase.getAllComponentsMatching(Class<T> type,
GUIFilter filter)
Look up all components in the GUI being tested by specifying their
class and a
GUIFilter . |
List<Component> |
GUITestCase.getAllComponentsMatching(GUIFilter filter)
Look up all components in the GUI being tested by specifying
a
GUIFilter . |
<T extends Component> |
GUITestCase.getComponent(Class<T> type,
GUIFilter filter)
Look up a component in the GUI being tested by specifying its class
and a
GUIFilter . |
Component |
GUITestCase.getComponent(GUIFilter filter)
Look up a component in the GUI being tested, using a filter to
specify which component you want.
|
<T extends Component> |
GUITestCase.getFirstComponentMatching(Class<T> type,
GUIFilter filter)
Look up a component in the GUI being tested by specifying its class
and a
GUIFilter . |
Component |
GUITestCase.getFirstComponentMatching(GUIFilter filter)
Look up a component in the GUI being tested by specifying
a
GUIFilter . |
static GUIFilter |
GUITestCase.not(GUIFilter otherFilter)
The "not" operator for negating an existing filter, when the not
operation is at the very beginning of the expression, re-exported
from
GUIFilter so that it is
available in test methods without requiring a static import. |
Modifier and Type | Method and Description |
---|---|
GUIFilter |
GUIFilter.Operator.ancestorIs(Component ancestor)
Create a filter that checks a component's ancestor
|
GUIFilter |
GUIFilter.and(GUIFilter otherFilter)
The "and" operator for combining filters, when you want to use
parentheses to group its righthand argument.
|
protected abstract GUIFilter |
GUIFilter.Operator.applySelfTo(GUIFilter otherFilter)
Concrete subclasses must override this to implement an
operation on the filter being passed in to transform it into
another filter.
|
protected GUIFilter |
GUIFilter.BinaryOperator.applySelfTo(GUIFilter otherFilter)
Implements a composite filter based on a binary operation,
where the "left"/"first" filter is the parent from which this
class was created, and the "right"/"second" filter is the
argument supplied to this operation.
|
GUIFilter |
GUIFilter.Operator.enabledIs(boolean value)
Create a filter that succeeds if a component is enabled.
|
GUIFilter |
GUIFilter.Operator.hasFocusIs(boolean value)
Create a filter that succeeds if a component has focus.
|
GUIFilter |
GUIFilter.Operator.heightIs(int value)
Create a filter that checks a component's height.
|
GUIFilter |
GUIFilter.Operator.isContainedWithin(Rectangle region)
Create a filter that checks whether a component's bounding box
(as returned by
Component.getBounds() ) lies within a
specific rectangle--that is, whether the entire component's area,
rather than just its top left corner, lies within the specified
region. |
GUIFilter |
GUIFilter.Operator.isLocatedWithin(Rectangle region)
Create a filter that checks whether a component's location (its
top left corner) lies within a specific rectangle.
|
GUIFilter |
GUIFilter.Operator.locationIs(int x,
int y)
Create a filter that checks a component's location relative to
its parent.
|
GUIFilter |
GUIFilter.Operator.nameIs(String name)
Create a filter that compares the name of a component against a
given value.
|
GUIFilter |
GUIFilter.BinaryOperator.not(GUIFilter otherFilter)
The "not" operator for negating an existing filter, when you
want to use parentheses to group its righthand argument.
|
static GUIFilter |
GUIFilter.ClientImports.not(GUIFilter otherFilter)
The "not" operator for negating an existing filter, when the not
operation is at the very beginning of the expression.
|
GUIFilter |
GUIFilter.or(GUIFilter otherFilter)
The "or" operator for combining filters, when you want to use
parentheses to group its righthand argument.
|
GUIFilter |
GUIFilter.Operator.parentIs(Component parent)
Create a filter that checks a component's parent
|
GUIFilter |
GUIFilter.Operator.sizeIs(int width,
int height)
Create a filter that checks a component's size.
|
GUIFilter |
GUIFilter.Operator.sizeIsWithin(int maxWidth,
int maxHeight)
Create a filter that checks a component's size.
|
GUIFilter |
GUIFilter.Operator.textIs(String text)
Create a filter that checks the text of a component by calling the
component's
getText() method. |
GUIFilter |
GUIFilter.Operator.typeIs(Class<? extends Component> aClass)
Create a filter that checks the class of a component.
|
GUIFilter |
GUIFilter.Operator.widthIs(int value)
Create a filter that checks a component's width.
|
GUIFilter |
GUIFilter.Operator.xLocationIs(int x)
Create a filter that checks a component's x-coordinate.
|
GUIFilter |
GUIFilter.Operator.yLocationIs(int y)
Create a filter that checks a component's y-coordinate.
|
Modifier and Type | Method and Description |
---|---|
GUIFilter |
GUIFilter.and(GUIFilter otherFilter)
The "and" operator for combining filters, when you want to use
parentheses to group its righthand argument.
|
protected abstract GUIFilter |
GUIFilter.Operator.applySelfTo(GUIFilter otherFilter)
Concrete subclasses must override this to implement an
operation on the filter being passed in to transform it into
another filter.
|
protected GUIFilter |
GUIFilter.BinaryOperator.applySelfTo(GUIFilter otherFilter)
Implements a composite filter based on a binary operation,
where the "left"/"first" filter is the parent from which this
class was created, and the "right"/"second" filter is the
argument supplied to this operation.
|
GUIFilter |
GUIFilter.BinaryOperator.not(GUIFilter otherFilter)
The "not" operator for negating an existing filter, when you
want to use parentheses to group its righthand argument.
|
static GUIFilter |
GUIFilter.ClientImports.not(GUIFilter otherFilter)
The "not" operator for negating an existing filter, when the not
operation is at the very beginning of the expression.
|
GUIFilter |
GUIFilter.or(GUIFilter otherFilter)
The "or" operator for combining filters, when you want to use
parentheses to group its righthand argument.
|