|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Matcher
to act as an
EasyMock IArgumentMatcher
and
report it to EasyMock so it can be kept track of.
Matcher
to act as an
jMock Constraint
.
type
,
as determined by calling the Class.isInstance(Object)
method on that type, passing the
the examined object.
type
,
as determined by calling the Class.isInstance(Object)
method on that type, passing the
the examined object.
type
,
as determined by calling the Class.isInstance(Object)
method on that type, passing the
the examined object.
String
.
String
.
String
.
SelfDescribing
value to this description.
SelfDescribing
objects
to the description.
length
of the array
satisfies the specified matcher.
length
of the array
equals the specified size
.
length
of the array
satisfies the specified matcher.
length
of the array
equals the specified size
.
StringDescription.toString(SelfDescribing)
.
Description
that is stored as a string.Double
s that matches when an examined double is equal
to the specified operand
, within a range of +/- error
.
BigDecimal
s that matches when an examined BigDecimal is equal
to the specified operand
, within a range of +/- error
.
BigDecimal
s that matches when an examined BigDecimal is equal
to the specified operand
, within a range of +/- error
.
Double
s that matches when an examined double is equal
to the specified operand
, within a range of +/- error
.
Comparable
object that matches when the examined object is
equal to the specified value, as reported by the compareTo
method of the
examined object.
Comparable
object that matches when the examined object is
equal to the specified value, as reported by the compareTo
method of the
examined object.
Iterable
s that matches when a single pass over the
examined Iterable
yields a series of items, each logically equal to the
corresponding item in the specified items.
Iterable
s that matches when a single pass over the
examined Iterable
yields a single item that satisfies the specified matcher.
Iterable
s that matches when a single pass over the
examined Iterable
yields a series of items, each satisfying the corresponding
matcher in the specified matchers.
Iterable
s that matches when a single pass over the
examined Iterable
yields a series of items, each satisfying the corresponding
matcher in the specified list of matchers.
Iterable
s that matches when a single pass over the
examined Iterable
yields a series of items, each satisfying the corresponding
matcher in the specified matchers.
Iterable
s that matches when a single pass over the
examined Iterable
yields a series of items, each logically equal to the
corresponding item in the specified items.
Iterable
s that matches when a single pass over the
examined Iterable
yields a single item that satisfies the specified matcher.
Iterable
s that matches when a single pass over the
examined Iterable
yields a series of items, each satisfying the corresponding
matcher in the specified list of matchers.
Iterable
s that matches when a single pass over
the examined Iterable
yields a series of items, each satisfying one matcher anywhere
in the specified matchers.
Iterable
s that matches when a single pass over
the examined Iterable
yields a series of items, each logically equal to one item
anywhere in the specified items.
Iterable
s that matches when a single pass over
the examined Iterable
yields a series of items, each satisfying one matcher anywhere
in the specified collection of matchers.
Iterable
s that matches when a single pass over
the examined Iterable
yields a series of items, each logically equal to one item
anywhere in the specified items.
Iterable
s that matches when a single pass over
the examined Iterable
yields a series of items, each satisfying one matcher anywhere
in the specified collection of matchers.
Iterable
s that matches when a single pass over
the examined Iterable
yields a series of items, each satisfying one matcher anywhere
in the specified matchers.
String
contains the specified
String
anywhere.
String
contains the specified
String
anywhere.
String
contains the specified
String
anywhere.
Matcher
to act as an EasyMock IArgumentMatcher
.Collection
s matching examined collections whose isEmpty
method returns true
.
Collection
s matching examined collections whose isEmpty
method returns true
.
length
of the array
is zero.
length
of the array
is zero.
Collection
s matching examined collections whose isEmpty
method returns true
.
Collection
s matching examined collections whose isEmpty
method returns true
.
Iterable
s matching examined iterables that yield no items.
Iterable
s matching examined iterables that yield no items.
Iterable
s matching examined iterables that yield no items.
Iterable
s matching examined iterables that yield no items.
String
ends with the specified
String
.
String
ends with the specified
String
.
String
ends with the specified
String
.
operand
, as determined by calling the Object.equals(java.lang.Object)
method on
the examined object.
operand
, as determined by calling the Object.equals(java.lang.Object)
method on
the examined object.
operand
, as determined by calling the Object.equals(java.lang.Object)
method on
the examined object.
String
that matches when the examined string is equal to
the specified expectedString, ignoring case.
String
that matches when the examined string is equal to
the specified expectedString, ignoring case.
String
that matches when the examined string is equal to
the specified expectedString, when whitespace differences are (mostly) ignored.
String
that matches when the examined string is equal to
the specified expectedString, when whitespace differences are (mostly) ignored.
EventObject
that matches any object
derived from eventClass announced by source.
EventObject
that matches any EventObject
announced by source.
EventObject
that matches any object
derived from eventClass announced by source.
EventObject
that matches any EventObject
announced by source.
Iterable
s that only matches when a single pass over the
examined Iterable
yields items that are all matched by the specified
itemMatcher
.
Iterable
s that only matches when a single pass over the
examined Iterable
yields items that are all matched by the specified
itemMatcher
.
Iterable
s that only matches when a single pass over the
examined Iterable
yields items that are all matched by the specified
itemMatcher
.
Comparable
object that matches when the examined object is
greater than the specified value, as reported by the compareTo
method of the
examined object.
Comparable
object that matches when the examined object is
greater than the specified value, as reported by the compareTo
method of the
examined object.
Comparable
object that matches when the examined object is
greater than or equal to the specified value, as reported by the compareTo
method
of the examined object.
Comparable
object that matches when the examined object is
greater than or equal to the specified value, as reported by the compareTo
method
of the examined object.
Map
s matching when the examined Map
contains
at least one entry whose key satisfies the specified keyMatcher
and whose
value satisfies the specified valueMatcher
.
Map
s matching when the examined Map
contains
at least one entry whose key equals the specified key
and whose value equals the
specified value
.
Map
s matching when the examined Map
contains
at least one entry whose key equals the specified key
and whose value equals the
specified value
.
Map
s matching when the examined Map
contains
at least one entry whose key satisfies the specified keyMatcher
and whose
value satisfies the specified valueMatcher
.
Iterable
s that only matches when a single pass over the
examined Iterable
yields at least one item that is matched by the specified
itemMatcher
.
Iterable
s that only matches when a single pass over the
examined Iterable
yields at least one item that is equal to the specified
item
.
Iterable
s that only matches when a single pass over the
examined Iterable
yields at least one item that is equal to the specified
item
.
Iterable
s that only matches when a single pass over the
examined Iterable
yields at least one item that is matched by the specified
itemMatcher
.
Iterable
s that only matches when a single pass over the
examined Iterable
yields at least one item that is equal to the specified
item
.
Iterable
s that only matches when a single pass over the
examined Iterable
yields at least one item that is matched by the specified
itemMatcher
.
elementMatcher
.
hasItemInArray(equalTo(x))
.
hasItemInArray(equalTo(x))
.
elementMatcher
.
Iterable
s that matches when consecutive passes over the
examined Iterable
yield at least one item that is matched by the corresponding
matcher from the specified itemMatchers
.
Iterable
s that matches when consecutive passes over the
examined Iterable
yield at least one item that is equal to the corresponding
item from the specified items
.
Iterable
s that matches when consecutive passes over the
examined Iterable
yield at least one item that is equal to the corresponding
item from the specified items
.
Iterable
s that matches when consecutive passes over the
examined Iterable
yield at least one item that is matched by the corresponding
matcher from the specified itemMatchers
.
Iterable
s that matches when consecutive passes over the
examined Iterable
yield at least one item that is equal to the corresponding
item from the specified items
.
Iterable
s that matches when consecutive passes over the
examined Iterable
yield at least one item that is matched by the corresponding
matcher from the specified itemMatchers
.
Map
s matching when the examined Map
contains
at least one key that satisfies the specified matcher.
Map
s matching when the examined Map
contains
at least one key that is equal to the specified key.
Map
s matching when the examined Map
contains
at least one key that satisfies the specified matcher.
Map
s matching when the examined Map
contains
at least one key that is equal to the specified key.
Collection
s that matches when the size()
method returns
a value that satisfies the specified matcher.
Collection
s that matches when the size()
method returns
a value equal to the specified size
.
Collection
s that matches when the size()
method returns
a value that satisfies the specified matcher.
Collection
s that matches when the size()
method returns
a value equal to the specified size
.
toString
method
returns a value that satisfies the specified matcher.
toString
method
returns a value equalTo the specified string.
toString
method
returns a value that satisfies the specified matcher.
toString
method
returns a value equalTo the specified string.
Map
s matching when the examined Map
contains
at least one value that satisfies the specified valueMatcher.
Map
s matching when the examined Map
contains
at least one value that is equal to the specified value.
Map
s matching when the examined Map
contains
at least one value that is equal to the specified value.
Map
s matching when the examined Map
contains
at least one value that satisfies the specified valueMatcher.
Node
s that matches when the examined node contains a node
at the specified xPath
within the specified namespace context, with any content.
Node
s that matches when the examined node contains a node
at the specified xPath
, with any content.
Node
s that matches when the examined node has a value at the
specified xPath
, within the specified namespaceContext
, that satisfies
the specified valueMatcher
.
Node
s that matches when the examined node has a value at the
specified xPath
that satisfies the specified valueMatcher
.
Node
s that matches when the examined node has a value at the
specified xPath
that satisfies the specified valueMatcher
.
Node
s that matches when the examined node has a value at the
specified xPath
, within the specified namespaceContext
, that satisfies
the specified valueMatcher
.
Node
s that matches when the examined node contains a node
at the specified xPath
, with any content.
Node
s that matches when the examined node contains a node
at the specified xPath
within the specified namespace context, with any content.
type
,
as determined by calling the Class.isInstance(Object)
method on that type, passing the
the examined object.
type
,
as determined by calling the Class.isInstance(Object)
method on that type, passing the
the examined object.
type
,
as determined by calling the Class.isInstance(Object)
method on that type, passing the
the examined object.
is(equalTo(x))
.
is(equalTo(x))
.
is(equalTo(x))
.
is(instanceOf(SomeClass.class))
.
is(instanceOf(SomeClass.class))
.
is(instanceOf(SomeClass.class))
.
true
.String
that matches when the examined string is null
, or
has zero length.
String
that matches when the examined string is null
, or
has zero length.
String
that matches when the examined string has zero length.
String
that matches when the examined string has zero length.
Object.equals(java.lang.Object)
invokedMethod?Iterable
s that matches when a single pass over the
examined Iterable
yields an item count that satisfies the specified
matcher.
Iterable
s that matches when a single pass over the
examined Iterable
yields an item count that is equal to the specified
size
argument.
Iterable
s that matches when a single pass over the
examined Iterable
yields an item count that satisfies the specified
matcher.
Iterable
s that matches when a single pass over the
examined Iterable
yields an item count that is equal to the specified
size
argument.
assert
keyword.Matcher
to act as an jMock1 Constraint
.Comparable
object that matches when the examined object is
less than the specified value, as reported by the compareTo
method of the
examined object.
Comparable
object that matches when the examined object is
less than the specified value, as reported by the compareTo
method of the
examined object.
Comparable
object that matches when the examined object is
less than or equal to the specified value, as reported by the compareTo
method
of the examined object.
Comparable
object that matches when the examined object is
less than or equal to the specified value, as reported by the compareTo
method
of the examined object.
not(equalTo(x))
.
not(equalTo(x))
.
not(equalTo(x))
.
not(nullValue())
.
not(nullValue(X.class)).
- notNullValue() -
Static method in class org.hamcrest.CoreMatchers
- A shortcut to the frequently used
not(nullValue())
.
- notNullValue(Class<T>) -
Static method in class org.hamcrest.CoreMatchers
- A shortcut to the frequently used
not(nullValue(X.class)).
- notNullValue() -
Static method in class org.hamcrest.Matchers
- A shortcut to the frequently used
not(nullValue())
.
- notNullValue(Class<T>) -
Static method in class org.hamcrest.Matchers
- A shortcut to the frequently used
not(nullValue(X.class)).
- nullValue() -
Static method in class org.hamcrest.core.IsNull
- Creates a matcher that matches if examined object is
null
.
- nullValue(Class<T>) -
Static method in class org.hamcrest.core.IsNull
- Creates a matcher that matches if examined object is
null
.
- nullValue() -
Static method in class org.hamcrest.CoreMatchers
- Creates a matcher that matches if examined object is
null
.
- nullValue(Class<T>) -
Static method in class org.hamcrest.CoreMatchers
- Creates a matcher that matches if examined object is
null
.
- nullValue() -
Static method in class org.hamcrest.Matchers
- Creates a matcher that matches if examined object is
null
.
- nullValue(Class<T>) -
Static method in class org.hamcrest.Matchers
- Creates a matcher that matches if examined object is
null
.
String
starts with the specified
String
.
String
starts with the specified
String
.
String
starts with the specified
String
.
String
that matches when the examined string contains all of
the specified substrings, regardless of the order of their appearance.
String
that matches when the examined string contains all of
the specified substrings, regardless of the order of their appearance.
Description
that is stored as a string.SelfDescribing
object as a String.
Class
that matches when the specified baseType is
assignable from the examined class.
Class
that matches when the specified baseType is
assignable from the examined class.
matchesSafely
is not the class that binds <T> to a type.
matchesSafely
is not the class that binds <T> to a type.
matchesSafely
is not the class that binds <T> to a type.
matchesSafely
is not the class that binds <T> to a type.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |