- aFileNamed(Matcher<String>) - Static method in class org.hamcrest.io.FileMatchers
-
- aFileWithAbsolutePath(Matcher<String>) - Static method in class org.hamcrest.io.FileMatchers
-
- aFileWithCanonicalPath(Matcher<String>) - Static method in class org.hamcrest.io.FileMatchers
-
- aFileWithSize(long) - Static method in class org.hamcrest.io.FileMatchers
-
- aFileWithSize(Matcher<Long>) - Static method in class org.hamcrest.io.FileMatchers
-
- AllOf<T> - Class in org.hamcrest.core
-
Calculates the logical conjunction of multiple matchers.
- AllOf(Iterable<Matcher<? super T>>) - Constructor for class org.hamcrest.core.AllOf
-
- allOf(Iterable<Matcher<? super T>>) - Static method in class org.hamcrest.core.AllOf
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>...) - Static method in class org.hamcrest.core.AllOf
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Iterable<Matcher<? super T>>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>...) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Iterable<Matcher<? super T>>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>...) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- aMapWithSize(Matcher<? super Integer>) - Static method in class org.hamcrest.collection.IsMapWithSize
-
Creates a matcher for Map
s that matches when the size()
method returns
a value that satisfies the specified matcher.
- aMapWithSize(int) - Static method in class org.hamcrest.collection.IsMapWithSize
-
Creates a matcher for Map
s that matches when the size()
method returns
a value equal to the specified size
.
- aMapWithSize(Matcher<? super Integer>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Map
s that matches when the size()
method returns
a value that satisfies the specified matcher.
- aMapWithSize(int) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Map
s that matches when the size()
method returns
a value equal to the specified size
.
- and(Condition.Step<? super T, U>) - Method in class org.hamcrest.Condition
-
- and(Matcher<? super T>) - Method in class org.hamcrest.core.CombinableMatcher
-
- and(Matcher<? super X>) - Method in class org.hamcrest.core.CombinableMatcher.CombinableBothMatcher
-
- anEmptyMap() - Static method in class org.hamcrest.collection.IsMapWithSize
-
Creates a matcher for Map
s that matches when the size()
method returns
zero.
- anEmptyMap() - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Map
s that matches when the size()
method returns
zero.
- anExistingDirectory() - Static method in class org.hamcrest.io.FileMatchers
-
- anExistingFile() - Static method in class org.hamcrest.io.FileMatchers
-
- anExistingFileOrDirectory() - Static method in class org.hamcrest.io.FileMatchers
-
- any(Class<T>) - Static method in class org.hamcrest.core.IsInstanceOf
-
Creates a matcher that matches when the examined object is an instance of the specified type
,
as determined by calling the Class.isInstance(Object)
method on that type, passing the
the examined object.
- any(Class<T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches when the examined object is an instance of the specified type
,
as determined by calling the Class.isInstance(Object)
method on that type, passing the
the examined object.
- any(Class<T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches when the examined object is an instance of the specified type
,
as determined by calling the Class.isInstance(Object)
method on that type, passing the
the examined object.
- AnyOf<T> - Class in org.hamcrest.core
-
Calculates the logical disjunction of multiple matchers.
- AnyOf(Iterable<Matcher<? super T>>) - Constructor for class org.hamcrest.core.AnyOf
-
- anyOf(Iterable<Matcher<? super T>>) - Static method in class org.hamcrest.core.AnyOf
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<? super T>...) - Static method in class org.hamcrest.core.AnyOf
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Iterable<Matcher<? super T>>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<? super T>...) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Iterable<Matcher<? super T>>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<? super T>...) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anything() - Static method in class org.hamcrest.core.IsAnything
-
Creates a matcher that always matches, regardless of the examined object.
- anything(String) - Static method in class org.hamcrest.core.IsAnything
-
Creates a matcher that always matches, regardless of the examined object, but describes
itself with the specified String
.
- anything() - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that always matches, regardless of the examined object.
- anything(String) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that always matches, regardless of the examined object, but describes
itself with the specified String
.
- anything() - Static method in class org.hamcrest.Matchers
-
Creates a matcher that always matches, regardless of the examined object.
- anything(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that always matches, regardless of the examined object, but describes
itself with the specified String
.
- append(String) - Method in class org.hamcrest.BaseDescription
-
Append the String str to the description.
- append(char) - Method in class org.hamcrest.BaseDescription
-
Append the char c to the description.
- append(String) - Method in class org.hamcrest.StringDescription
-
- append(char) - Method in class org.hamcrest.StringDescription
-
- appendDescriptionOf(SelfDescribing) - Method in class org.hamcrest.BaseDescription
-
- appendDescriptionOf(SelfDescribing) - Method in interface org.hamcrest.Description
-
Appends the description of a
SelfDescribing
value to this description.
- appendDescriptionOf(SelfDescribing) - Method in class org.hamcrest.Description.NullDescription
-
- appendList(String, String, String, Iterable<? extends SelfDescribing>) - Method in class org.hamcrest.BaseDescription
-
- appendList(String, String, String, Iterable<? extends SelfDescribing>) - Method in interface org.hamcrest.Description
-
- appendList(String, String, String, Iterable<? extends SelfDescribing>) - Method in class org.hamcrest.Description.NullDescription
-
- appendText(String) - Method in class org.hamcrest.BaseDescription
-
- appendText(String) - Method in interface org.hamcrest.Description
-
Appends some plain text to the description.
- appendText(String) - Method in class org.hamcrest.Description.NullDescription
-
- appendValue(Object) - Method in class org.hamcrest.BaseDescription
-
- appendValue(Object) - Method in interface org.hamcrest.Description
-
Appends an arbitrary value to the description.
- appendValue(Object) - Method in class org.hamcrest.Description.NullDescription
-
- appendValueList(String, String, String, T...) - Method in class org.hamcrest.BaseDescription
-
- appendValueList(String, String, String, Iterable<T>) - Method in class org.hamcrest.BaseDescription
-
- appendValueList(String, String, String, T...) - Method in interface org.hamcrest.Description
-
Appends a list of values to the description.
- appendValueList(String, String, String, Iterable<T>) - Method in interface org.hamcrest.Description
-
Appends a list of values to the description.
- appendValueList(String, String, String, T...) - Method in class org.hamcrest.Description.NullDescription
-
- appendValueList(String, String, String, Iterable<T>) - Method in class org.hamcrest.Description.NullDescription
-
- apply(I, Description) - Method in interface org.hamcrest.Condition.Step
-
- aReadableFile() - Static method in class org.hamcrest.io.FileMatchers
-
- array(Matcher<? super T>...) - Static method in class org.hamcrest.collection.IsArray
-
Creates a matcher that matches arrays whose elements are satisfied by the specified matchers.
- array(Matcher<? super T>...) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches arrays whose elements are satisfied by the specified matchers.
- arrayContaining(E...) - Static method in class org.hamcrest.collection.IsArrayContainingInOrder
-
Creates a matcher for arrays that matches when each item in the examined array is
logically equal to the corresponding item in the specified items.
- arrayContaining(Matcher<? super E>...) - Static method in class org.hamcrest.collection.IsArrayContainingInOrder
-
Creates a matcher for arrays that matches when each item in the examined array satisfies the
corresponding matcher in the specified matchers.
- arrayContaining(List<Matcher<? super E>>) - Static method in class org.hamcrest.collection.IsArrayContainingInOrder
-
Creates a matcher for arrays that matches when each item in the examined array satisfies the
corresponding matcher in the specified list of matchers.
- arrayContaining(E...) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for arrays that matches when each item in the examined array is
logically equal to the corresponding item in the specified items.
- arrayContaining(Matcher<? super E>...) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for arrays that matches when each item in the examined array satisfies the
corresponding matcher in the specified matchers.
- arrayContaining(List<Matcher<? super E>>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for arrays that matches when each item in the examined array satisfies the
corresponding matcher in the specified list of matchers.
- arrayContainingInAnyOrder(Matcher<? super E>...) - Static method in class org.hamcrest.collection.IsArrayContainingInAnyOrder
-
Creates an order agnostic matcher for arrays that matches when each item in the
examined array satisfies one matcher anywhere in the specified matchers.
- arrayContainingInAnyOrder(Collection<Matcher<? super E>>) - Static method in class org.hamcrest.collection.IsArrayContainingInAnyOrder
-
Creates an order agnostic matcher for arrays that matches when each item in the
examined array satisfies one matcher anywhere in the specified collection of matchers.
- arrayContainingInAnyOrder(E...) - Static method in class org.hamcrest.collection.IsArrayContainingInAnyOrder
-
Creates an order agnostic matcher for arrays that matches when each item in the
examined array is logically equal to one item anywhere in the specified items.
- arrayContainingInAnyOrder(Matcher<? super E>...) - Static method in class org.hamcrest.Matchers
-
Creates an order agnostic matcher for arrays that matches when each item in the
examined array satisfies one matcher anywhere in the specified matchers.
- arrayContainingInAnyOrder(Collection<Matcher<? super E>>) - Static method in class org.hamcrest.Matchers
-
Creates an order agnostic matcher for arrays that matches when each item in the
examined array satisfies one matcher anywhere in the specified collection of matchers.
- arrayContainingInAnyOrder(E...) - Static method in class org.hamcrest.Matchers
-
Creates an order agnostic matcher for arrays that matches when each item in the
examined array is logically equal to one item anywhere in the specified items.
- ArrayIterator - Class in org.hamcrest.internal
-
- ArrayIterator(Object) - Constructor for class org.hamcrest.internal.ArrayIterator
-
- arrayWithSize(Matcher<? super Integer>) - Static method in class org.hamcrest.collection.IsArrayWithSize
-
Creates a matcher for arrays that matches when the length
of the array
satisfies the specified matcher.
- arrayWithSize(int) - Static method in class org.hamcrest.collection.IsArrayWithSize
-
Creates a matcher for arrays that matches when the length
of the array
equals the specified size
.
- arrayWithSize(Matcher<? super Integer>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for arrays that matches when the length
of the array
satisfies the specified matcher.
- arrayWithSize(int) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for arrays that matches when the length
of the array
equals the specified size
.
- assertThat(T, Matcher<? super T>) - Static method in class org.hamcrest.MatcherAssert
-
- assertThat(String, T, Matcher<? super T>) - Static method in class org.hamcrest.MatcherAssert
-
- assertThat(String, boolean) - Static method in class org.hamcrest.MatcherAssert
-
- asString(SelfDescribing) - Static method in class org.hamcrest.StringDescription
-
- aWritableFile() - Static method in class org.hamcrest.io.FileMatchers
-
- CAN_READ - Static variable in class org.hamcrest.io.FileMatchers
-
- CAN_WRITE - Static variable in class org.hamcrest.io.FileMatchers
-
- canObtainExpectedTypeFrom(Method) - Method in class org.hamcrest.internal.ReflectiveTypeFinder
-
- check(File) - Method in interface org.hamcrest.io.FileMatchers.FileStatus
-
- closeTo(double, double) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of Double
s that matches when an examined double is equal
to the specified operand
, within a range of +/- error
.
- closeTo(BigDecimal, BigDecimal) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of BigDecimal
s that matches when an examined BigDecimal is equal
to the specified operand
, within a range of +/- error
.
- closeTo(BigDecimal, BigDecimal) - Static method in class org.hamcrest.number.BigDecimalCloseTo
-
Creates a matcher of BigDecimal
s that matches when an examined BigDecimal is equal
to the specified operand
, within a range of +/- error
.
- closeTo(double, double) - Static method in class org.hamcrest.number.IsCloseTo
-
Creates a matcher of Double
s that matches when an examined double is equal
to the specified operand
, within a range of +/- error
.
- CombinableBothMatcher(Matcher<? super X>) - Constructor for class org.hamcrest.core.CombinableMatcher.CombinableBothMatcher
-
- CombinableEitherMatcher(Matcher<? super X>) - Constructor for class org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher
-
- CombinableMatcher<T> - Class in org.hamcrest.core
-
- CombinableMatcher(Matcher<? super T>) - Constructor for class org.hamcrest.core.CombinableMatcher
-
- CombinableMatcher.CombinableBothMatcher<X> - Class in org.hamcrest.core
-
- CombinableMatcher.CombinableEitherMatcher<X> - Class in org.hamcrest.core
-
- ComparatorMatcherBuilder<T> - Class in org.hamcrest.comparator
-
- comparedBy(Comparator<T>) - Static method in class org.hamcrest.comparator.ComparatorMatcherBuilder
-
Creates a matcher factory for matchers of Comparators
s of T
.
- comparesEqualTo(T) - Method in class org.hamcrest.comparator.ComparatorMatcherBuilder
-
Creates a matcher of T
object that matches when the examined object is
equal to the specified value, as reported by the Comparator
used to
create this builder.
- comparesEqualTo(T) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of Comparable
object that matches when the examined object is
equal to the specified value, as reported by the compareTo
method of the
examined object.
- comparesEqualTo(T) - Static method in class org.hamcrest.number.OrderingComparison
-
Creates a matcher of Comparable
object that matches when the examined object is
equal to the specified value, as reported by the compareTo
method of the
examined object.
- Condition<T> - Class in org.hamcrest
-
A Condition implements part of a multi-step match.
- Condition.Step<I,O> - Interface in org.hamcrest
-
- contains(E...) - Static method in class org.hamcrest.collection.IsIterableContainingInOrder
-
Creates a matcher for 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.
- contains(Matcher<? super E>) - Static method in class org.hamcrest.collection.IsIterableContainingInOrder
-
Creates a matcher for Iterable
s that matches when a single pass over the
examined Iterable
yields a single item that satisfies the specified matcher.
- contains(Matcher<? super E>...) - Static method in class org.hamcrest.collection.IsIterableContainingInOrder
-
Creates a matcher for 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.
- contains(List<Matcher<? super E>>) - Static method in class org.hamcrest.collection.IsIterableContainingInOrder
-
Creates a matcher for 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.
- contains(E...) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for 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.
- contains(Matcher<? super E>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Iterable
s that matches when a single pass over the
examined Iterable
yields a single item that satisfies the specified matcher.
- contains(Matcher<? super E>...) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for 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.
- contains(List<Matcher<? super E>>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for 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.
- containsInAnyOrder(Matcher<? super T>...) - Static method in class org.hamcrest.collection.IsIterableContainingInAnyOrder
-
Creates an order agnostic matcher for 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.
- containsInAnyOrder(T...) - Static method in class org.hamcrest.collection.IsIterableContainingInAnyOrder
-
Creates an order agnostic matcher for 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.
- containsInAnyOrder(Collection<Matcher<? super T>>) - Static method in class org.hamcrest.collection.IsIterableContainingInAnyOrder
-
Creates an order agnostic matcher for 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.
- containsInAnyOrder(Matcher<? super T>...) - Static method in class org.hamcrest.Matchers
-
Creates an order agnostic matcher for 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.
- containsInAnyOrder(T...) - Static method in class org.hamcrest.Matchers
-
Creates an order agnostic matcher for 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.
- containsInAnyOrder(Collection<Matcher<? super T>>) - Static method in class org.hamcrest.Matchers
-
Creates an order agnostic matcher for 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.
- containsInRelativeOrder(E...) - Static method in class org.hamcrest.collection.IsIterableContainingInRelativeOrder
-
Creates a matcher for Iterable
s that matches when a single pass over the
examined Iterable
yields a series of items, that contains items logically equal to the
corresponding item in the specified items, in the same relative order
For example:
- containsInRelativeOrder(Matcher<? super E>...) - Static method in class org.hamcrest.collection.IsIterableContainingInRelativeOrder
-
Creates a matcher for Iterable
s that matches when a single pass over the
examined Iterable
yields a series of items, that each satisfying the corresponding
matcher in the specified matchers, in the same relative order.
- containsInRelativeOrder(List<Matcher<? super E>>) - Static method in class org.hamcrest.collection.IsIterableContainingInRelativeOrder
-
Creates a matcher for Iterable
s that matches when a single pass over the
examined Iterable
yields a series of items, that contains items satisfying the corresponding
matcher in the specified list of matchers, in the same relative order.
- containsInRelativeOrder(E...) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Iterable
s that matches when a single pass over the
examined Iterable
yields a series of items, that contains items logically equal to the
corresponding item in the specified items, in the same relative order
For example:
- containsInRelativeOrder(Matcher<? super E>...) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Iterable
s that matches when a single pass over the
examined Iterable
yields a series of items, that each satisfying the corresponding
matcher in the specified matchers, in the same relative order.
- containsInRelativeOrder(List<Matcher<? super E>>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Iterable
s that matches when a single pass over the
examined Iterable
yields a series of items, that contains items satisfying the corresponding
matcher in the specified list of matchers, in the same relative order.
- containsString(String) - Static method in class org.hamcrest.core.StringContains
-
Creates a matcher that matches if the examined String
contains the specified
String
anywhere.
- containsString(String) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined String
contains the specified
String
anywhere.
- containsString(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined String
contains the specified
String
anywhere.
- containsStringIgnoringCase(String) - Static method in class org.hamcrest.core.StringContains
-
Creates a matcher that matches if the examined String
contains the specified
String
anywhere, ignoring case.
- containsStringIgnoringCase(String) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined String
contains the specified
String
anywhere, ignoring case.
- containsStringIgnoringCase(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined String
contains the specified
String
anywhere, ignoring case.
- converted(String) - Method in class org.hamcrest.core.SubstringMatcher
-
- CoreMatchers - Class in org.hamcrest
-
- CoreMatchers() - Constructor for class org.hamcrest.CoreMatchers
-
- CustomMatcher<T> - Class in org.hamcrest
-
Utility class for writing one off matchers.
- CustomMatcher(String) - Constructor for class org.hamcrest.CustomMatcher
-
- CustomTypeSafeMatcher<T> - Class in org.hamcrest
-
Utility class for writing one off matchers.
- CustomTypeSafeMatcher(String) - Constructor for class org.hamcrest.CustomTypeSafeMatcher
-
- either(Matcher<? super LHS>) - Static method in class org.hamcrest.core.CombinableMatcher
-
Creates a matcher that matches when either of the specified matchers match the examined object.
- either(Matcher<? super LHS>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches when either of the specified matchers match the examined object.
- either(Matcher<? super LHS>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches when either of the specified matchers match the examined object.
- empty() - Static method in class org.hamcrest.collection.IsEmptyCollection
-
Creates a matcher for Collection
s matching examined collections whose isEmpty
method returns true
.
- empty() - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Collection
s matching examined collections whose isEmpty
method returns true
.
- emptyArray() - Static method in class org.hamcrest.collection.IsArrayWithSize
-
Creates a matcher for arrays that matches when the length
of the array
is zero.
- emptyArray() - Static method in class org.hamcrest.Matchers
-
Creates a matcher for arrays that matches when the length
of the array
is zero.
- emptyCollectionOf(Class<E>) - Static method in class org.hamcrest.collection.IsEmptyCollection
-
Creates a matcher for Collection
s matching examined collections whose isEmpty
method returns true
.
- emptyCollectionOf(Class<E>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Collection
s matching examined collections whose isEmpty
method returns true
.
- emptyIterable() - Static method in class org.hamcrest.collection.IsEmptyIterable
-
Creates a matcher for Iterable
s matching examined iterables that yield no items.
- emptyIterable() - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Iterable
s matching examined iterables that yield no items.
- emptyIterableOf(Class<E>) - Static method in class org.hamcrest.collection.IsEmptyIterable
-
Creates a matcher for Iterable
s matching examined iterables that yield no items.
- emptyIterableOf(Class<E>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Iterable
s matching examined iterables that yield no items.
- emptyOrNullString() - Static method in class org.hamcrest.Matchers
-
Creates a matcher of String
that matches when the examined string is null
, or
has zero length.
- emptyOrNullString() - Static method in class org.hamcrest.text.IsEmptyString
-
Creates a matcher of String
that matches when the examined string is null
, or
has zero length.
- emptyString() - Static method in class org.hamcrest.Matchers
-
Creates a matcher of String
that matches when the examined string has zero length.
- emptyString() - Static method in class org.hamcrest.text.IsEmptyString
-
Creates a matcher of String
that matches when the examined string has zero length.
- endsWith(String) - Static method in class org.hamcrest.core.StringEndsWith
-
Creates a matcher that matches if the examined String
ends with the specified
String
.
- endsWith(String) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined String
ends with the specified
String
.
- endsWith(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined String
ends with the specified
String
.
- endsWithIgnoringCase(String) - Static method in class org.hamcrest.core.StringEndsWith
-
Creates a matcher that matches if the examined String
ends with the specified
String
, ignoring case.
- endsWithIgnoringCase(String) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined String
ends with the specified
String
, ignoring case.
- endsWithIgnoringCase(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined String
ends with the specified
String
, ignoring case.
- equalTo(T) - Static method in class org.hamcrest.core.IsEqual
-
Creates a matcher that matches when the examined object is logically equal to the specified
operand
, as determined by calling the Object.equals(java.lang.Object)
method on
the examined object.
- equalTo(T) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches when the examined object is logically equal to the specified
operand
, as determined by calling the Object.equals(java.lang.Object)
method on
the examined object.
- equalTo(T) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches when the examined object is logically equal to the specified
operand
, as determined by calling the Object.equals(java.lang.Object)
method on
the examined object.
- equalToIgnoringCase(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of String
that matches when the examined string is equal to
the specified expectedString, ignoring case.
- equalToIgnoringCase(String) - Static method in class org.hamcrest.text.IsEqualIgnoringCase
-
Creates a matcher of String
that matches when the examined string is equal to
the specified expectedString, ignoring case.
- equalToIgnoringWhiteSpace(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of String
that matches when the examined string is equal to
the specified expectedString, when whitespace differences are (mostly) ignored.
- equalToIgnoringWhiteSpace(String) - Static method in class org.hamcrest.text.IsEqualIgnoringWhiteSpace
-
Creates a matcher of String
that matches when the examined string is equal to
the specified expectedString, when whitespace differences are (mostly) ignored.
- equalToObject(Object) - Static method in class org.hamcrest.core.IsEqual
-
Creates an
IsEqual
matcher that does not enforce the values being
compared to be of the same static type.
- equalToObject(Object) - Static method in class org.hamcrest.CoreMatchers
-
Creates an
IsEqual
matcher that does not enforce the values being
compared to be of the same static type.
- equalToObject(Object) - Static method in class org.hamcrest.Matchers
-
Creates an
IsEqual
matcher that does not enforce the values being
compared to be of the same static type.
- evalSubstringOf(String) - Method in class org.hamcrest.core.StringContains
-
- evalSubstringOf(String) - Method in class org.hamcrest.core.StringEndsWith
-
- evalSubstringOf(String) - Method in class org.hamcrest.core.StringStartsWith
-
- evalSubstringOf(String) - Method in class org.hamcrest.core.SubstringMatcher
-
- eventFrom(Class<? extends EventObject>, Object) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of EventObject
that matches any object
derived from eventClass announced by source.
- eventFrom(Object) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of EventObject
that matches any EventObject
announced by source.
- eventFrom(Class<? extends EventObject>, Object) - Static method in class org.hamcrest.object.IsEventFrom
-
Creates a matcher of EventObject
that matches any object
derived from eventClass announced by source.
- eventFrom(Object) - Static method in class org.hamcrest.object.IsEventFrom
-
Creates a matcher of EventObject
that matches any EventObject
announced by source.
- Every<T> - Class in org.hamcrest.core
-
- Every(Matcher<? super T>) - Constructor for class org.hamcrest.core.Every
-
- everyItem(Matcher<U>) - Static method in class org.hamcrest.core.Every
-
Creates a matcher for Iterable
s that only matches when a single pass over the
examined Iterable
yields items that are all matched by the specified
itemMatcher
.
- everyItem(Matcher<U>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher for Iterable
s that only matches when a single pass over the
examined Iterable
yields items that are all matched by the specified
itemMatcher
.
- everyItem(Matcher<U>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Iterable
s that only matches when a single pass over the
examined Iterable
yields items that are all matched by the specified
itemMatcher
.
- EXISTS - Static variable in class org.hamcrest.io.FileMatchers
-
- expectedTypeFrom(Method) - Method in class org.hamcrest.internal.ReflectiveTypeFinder
-
- hasEntry(Matcher<? super K>, Matcher<? super V>) - Static method in class org.hamcrest.collection.IsMapContaining
-
Creates a matcher for 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
.
- hasEntry(K, V) - Static method in class org.hamcrest.collection.IsMapContaining
-
Creates a matcher for 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
.
- hasEntry(Matcher<? super K>, Matcher<? super V>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for 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
.
- hasEntry(K, V) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for 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
.
- hasItem(Matcher<? super T>) - Static method in class org.hamcrest.core.IsCollectionContaining
-
Creates a matcher for 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
.
- hasItem(T) - Static method in class org.hamcrest.core.IsCollectionContaining
-
Creates a matcher for 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
.
- hasItem(Matcher<? super T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher for 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
.
- hasItem(T) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher for 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
.
- hasItem(Matcher<? super T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for 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
.
- hasItem(T) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for 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
.
- hasItemInArray(Matcher<? super T>) - Static method in class org.hamcrest.collection.IsArrayContaining
-
Creates a matcher for arrays that matches when the examined array contains at least one item
that is matched by the specified elementMatcher
.
- hasItemInArray(T) - Static method in class org.hamcrest.collection.IsArrayContaining
-
A shortcut to the frequently used hasItemInArray(equalTo(x))
.
- hasItemInArray(Matcher<? super T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for arrays that matches when the examined array contains at least one item
that is matched by the specified elementMatcher
.
- hasItemInArray(T) - Static method in class org.hamcrest.Matchers
-
A shortcut to the frequently used hasItemInArray(equalTo(x))
.
- hasItems(Matcher<? super T>...) - Static method in class org.hamcrest.core.IsCollectionContaining
-
Creates a matcher for 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
.
- hasItems(T...) - Static method in class org.hamcrest.core.IsCollectionContaining
-
Creates a matcher for 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
.
- hasItems(Matcher<? super T>...) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher for 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
.
- hasItems(T...) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher for 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
.
- hasItems(Matcher<? super T>...) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for 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
.
- hasItems(T...) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for 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
.
- hasKey(Matcher<? super K>) - Static method in class org.hamcrest.collection.IsMapContaining
-
Creates a matcher for Map
s matching when the examined Map
contains
at least one key that satisfies the specified matcher.
- hasKey(K) - Static method in class org.hamcrest.collection.IsMapContaining
-
Creates a matcher for Map
s matching when the examined Map
contains
at least one key that is equal to the specified key.
- hasKey(Matcher<? super K>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Map
s matching when the examined Map
contains
at least one key that satisfies the specified matcher.
- hasKey(K) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Map
s matching when the examined Map
contains
at least one key that is equal to the specified key.
- hasNext() - Method in class org.hamcrest.internal.ArrayIterator
-
- hasNext() - Method in class org.hamcrest.internal.SelfDescribingValueIterator
-
- HasProperty<T> - Class in org.hamcrest.beans
-
A Matcher that checks that an object has a JavaBean property
with the specified name.
- HasProperty(String) - Constructor for class org.hamcrest.beans.HasProperty
-
- hasProperty(String) - Static method in class org.hamcrest.beans.HasProperty
-
Creates a matcher that matches when the examined object has a JavaBean property
with the specified name.
- hasProperty(String, Matcher<?>) - Static method in class org.hamcrest.beans.HasPropertyWithValue
-
Creates a matcher that matches when the examined object has a JavaBean property
with the specified name whose value satisfies the specified matcher.
- hasProperty(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches when the examined object has a JavaBean property
with the specified name.
- hasProperty(String, Matcher<?>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches when the examined object has a JavaBean property
with the specified name whose value satisfies the specified matcher.
- HasPropertyWithValue<T> - Class in org.hamcrest.beans
-
Matcher that asserts that a JavaBean property on an argument passed to the
mock object meets the provided matcher.
- HasPropertyWithValue(String, Matcher<?>) - Constructor for class org.hamcrest.beans.HasPropertyWithValue
-
- hasSize(Matcher<? super Integer>) - Static method in class org.hamcrest.collection.IsCollectionWithSize
-
Creates a matcher for Collection
s that matches when the size()
method returns
a value that satisfies the specified matcher.
- hasSize(int) - Static method in class org.hamcrest.collection.IsCollectionWithSize
-
Creates a matcher for Collection
s that matches when the size()
method returns
a value equal to the specified size
.
- hasSize(Matcher<? super Integer>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Collection
s that matches when the size()
method returns
a value that satisfies the specified matcher.
- hasSize(int) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Collection
s that matches when the size()
method returns
a value equal to the specified size
.
- hasToString(Matcher<? super String>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches any examined object whose toString
method
returns a value that satisfies the specified matcher.
- hasToString(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches any examined object whose toString
method
returns a value equalTo the specified string.
- HasToString<T> - Class in org.hamcrest.object
-
- HasToString(Matcher<? super String>) - Constructor for class org.hamcrest.object.HasToString
-
- hasToString(Matcher<? super String>) - Static method in class org.hamcrest.object.HasToString
-
Creates a matcher that matches any examined object whose toString
method
returns a value that satisfies the specified matcher.
- hasToString(String) - Static method in class org.hamcrest.object.HasToString
-
Creates a matcher that matches any examined object whose toString
method
returns a value equalTo the specified string.
- hasValue(Matcher<? super V>) - Static method in class org.hamcrest.collection.IsMapContaining
-
Creates a matcher for Map
s matching when the examined Map
contains
at least one value that satisfies the specified valueMatcher.
- hasValue(V) - Static method in class org.hamcrest.collection.IsMapContaining
-
Creates a matcher for Map
s matching when the examined Map
contains
at least one value that is equal to the specified value.
- hasValue(Matcher<? super V>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Map
s matching when the examined Map
contains
at least one value that satisfies the specified valueMatcher.
- hasValue(V) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Map
s matching when the examined Map
contains
at least one value that is equal to the specified value.
- hasXPath(String, Matcher<String>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of Node
s that matches when the examined node has a value at the
specified xPath
that satisfies the specified valueMatcher
.
- hasXPath(String, NamespaceContext, Matcher<String>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of Node
s that matches when the examined node has a value at the
specified xPath
, within the specified namespaceContext
, that satisfies
the specified valueMatcher
.
- hasXPath(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of Node
s that matches when the examined node contains a node
at the specified xPath
, with any content.
- hasXPath(String, NamespaceContext) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of Node
s that matches when the examined node contains a node
at the specified xPath
within the specified namespace context, with any content.
- HasXPath - Class in org.hamcrest.xml
-
Applies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression.
- HasXPath(String, Matcher<String>) - Constructor for class org.hamcrest.xml.HasXPath
-
- HasXPath(String, NamespaceContext, Matcher<String>) - Constructor for class org.hamcrest.xml.HasXPath
-
- hasXPath(String, Matcher<String>) - Static method in class org.hamcrest.xml.HasXPath
-
Creates a matcher of Node
s that matches when the examined node has a value at the
specified xPath
that satisfies the specified valueMatcher
.
- hasXPath(String, NamespaceContext, Matcher<String>) - Static method in class org.hamcrest.xml.HasXPath
-
Creates a matcher of Node
s that matches when the examined node has a value at the
specified xPath
, within the specified namespaceContext
, that satisfies
the specified valueMatcher
.
- hasXPath(String) - Static method in class org.hamcrest.xml.HasXPath
-
Creates a matcher of Node
s that matches when the examined node contains a node
at the specified xPath
, with any content.
- hasXPath(String, NamespaceContext) - Static method in class org.hamcrest.xml.HasXPath
-
Creates a matcher of Node
s that matches when the examined node contains a node
at the specified xPath
within the specified namespace context, with any content.
- in(Collection<T>) - Static method in class org.hamcrest.collection.IsIn
-
Creates a matcher that matches when the examined object is found within the
specified collection.
- in(T[]) - Static method in class org.hamcrest.collection.IsIn
-
Creates a matcher that matches when the examined object is found within the
specified array.
- in(Collection<T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches when the examined object is found within the
specified collection.
- in(T[]) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches when the examined object is found within the
specified array.
- instanceOf(Class<?>) - Static method in class org.hamcrest.core.IsInstanceOf
-
Creates a matcher that matches when the examined object is an instance of the specified type
,
as determined by calling the Class.isInstance(Object)
method on that type, passing the
the examined object.
- instanceOf(Class<?>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches when the examined object is an instance of the specified type
,
as determined by calling the Class.isInstance(Object)
method on that type, passing the
the examined object.
- instanceOf(Class<?>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches when the examined object is an instance of the specified type
,
as determined by calling the Class.isInstance(Object)
method on that type, passing the
the examined object.
- Is<T> - Class in org.hamcrest.core
-
Decorates another Matcher, retaining the behaviour but allowing tests
to be slightly more expressive.
- Is(Matcher<T>) - Constructor for class org.hamcrest.core.Is
-
- is(Matcher<T>) - Static method in class org.hamcrest.core.Is
-
Decorates another Matcher, retaining its behaviour, but allowing tests
to be slightly more expressive.
- is(T) - Static method in class org.hamcrest.core.Is
-
A shortcut to the frequently used is(equalTo(x))
.
- is(Matcher<T>) - Static method in class org.hamcrest.CoreMatchers
-
Decorates another Matcher, retaining its behaviour, but allowing tests
to be slightly more expressive.
- is(T) - Static method in class org.hamcrest.CoreMatchers
-
A shortcut to the frequently used is(equalTo(x))
.
- is(Matcher<T>) - Static method in class org.hamcrest.Matchers
-
Decorates another Matcher, retaining its behaviour, but allowing tests
to be slightly more expressive.
- is(T) - Static method in class org.hamcrest.Matchers
-
A shortcut to the frequently used is(equalTo(x))
.
- IS_DIRECTORY - Static variable in class org.hamcrest.io.FileMatchers
-
- IS_FILE - Static variable in class org.hamcrest.io.FileMatchers
-
- isA(Class<T>) - Static method in class org.hamcrest.core.Is
-
A shortcut to the frequently used is(instanceOf(SomeClass.class))
.
- isA(Class<T>) - Static method in class org.hamcrest.CoreMatchers
-
A shortcut to the frequently used is(instanceOf(SomeClass.class))
.
- isA(Class<T>) - Static method in class org.hamcrest.Matchers
-
A shortcut to the frequently used is(instanceOf(SomeClass.class))
.
- IsAnything<T> - Class in org.hamcrest.core
-
A matcher that always returns true
.
- IsAnything() - Constructor for class org.hamcrest.core.IsAnything
-
- IsAnything(String) - Constructor for class org.hamcrest.core.IsAnything
-
- IsArray<T> - Class in org.hamcrest.collection
-
Matcher for array whose elements satisfy a sequence of matchers.
- IsArray(Matcher<? super T>[]) - Constructor for class org.hamcrest.collection.IsArray
-
- IsArrayContaining<T> - Class in org.hamcrest.collection
-
Matches if an array contains an item satisfying a nested matcher.
- IsArrayContaining(Matcher<? super T>) - Constructor for class org.hamcrest.collection.IsArrayContaining
-
- IsArrayContainingInAnyOrder<E> - Class in org.hamcrest.collection
-
- IsArrayContainingInAnyOrder(Collection<Matcher<? super E>>) - Constructor for class org.hamcrest.collection.IsArrayContainingInAnyOrder
-
- IsArrayContainingInOrder<E> - Class in org.hamcrest.collection
-
- IsArrayContainingInOrder(List<Matcher<? super E>>) - Constructor for class org.hamcrest.collection.IsArrayContainingInOrder
-
- IsArrayWithSize<E> - Class in org.hamcrest.collection
-
Matches if array size satisfies a nested matcher.
- IsArrayWithSize(Matcher<? super Integer>) - Constructor for class org.hamcrest.collection.IsArrayWithSize
-
- IsBlankString - Class in org.hamcrest.text
-
Matches blank Strings (and null).
- IsCloseTo - Class in org.hamcrest.number
-
Is the value a number equal to a value within some range of
acceptable error?
- IsCloseTo(double, double) - Constructor for class org.hamcrest.number.IsCloseTo
-
- IsCollectionContaining<T> - Class in org.hamcrest.core
-
- IsCollectionContaining(Matcher<? super T>) - Constructor for class org.hamcrest.core.IsCollectionContaining
-
- IsCollectionWithSize<E> - Class in org.hamcrest.collection
-
Matches if collection size satisfies a nested matcher.
- IsCollectionWithSize(Matcher<? super Integer>) - Constructor for class org.hamcrest.collection.IsCollectionWithSize
-
- IsCompatibleType<T> - Class in org.hamcrest.object
-
- IsCompatibleType(Class<T>) - Constructor for class org.hamcrest.object.IsCompatibleType
-
- IsEmptyCollection<E> - Class in org.hamcrest.collection
-
Tests if collection is empty.
- IsEmptyCollection() - Constructor for class org.hamcrest.collection.IsEmptyCollection
-
- IsEmptyIterable<E> - Class in org.hamcrest.collection
-
Tests if collection is empty.
- IsEmptyIterable() - Constructor for class org.hamcrest.collection.IsEmptyIterable
-
- isEmptyOrNullString() - Static method in class org.hamcrest.Matchers
-
- isEmptyOrNullString() - Static method in class org.hamcrest.text.IsEmptyString
-
- isEmptyString() - Static method in class org.hamcrest.Matchers
-
- IsEmptyString - Class in org.hamcrest.text
-
Matches empty Strings (and null).
- isEmptyString() - Static method in class org.hamcrest.text.IsEmptyString
-
- IsEqual<T> - Class in org.hamcrest.core
-
Is the value equal to another value, as tested by the
Object.equals(java.lang.Object)
invokedMethod?
- IsEqual(T) - Constructor for class org.hamcrest.core.IsEqual
-
- IsEqualIgnoringCase - Class in org.hamcrest.text
-
Tests if a string is equal to another string, regardless of the case.
- IsEqualIgnoringCase(String) - Constructor for class org.hamcrest.text.IsEqualIgnoringCase
-
- IsEqualIgnoringWhiteSpace - Class in org.hamcrest.text
-
Tests if a string is equal to another string, ignoring any changes in whitespace.
- IsEqualIgnoringWhiteSpace(String) - Constructor for class org.hamcrest.text.IsEqualIgnoringWhiteSpace
-
- IsEventFrom - Class in org.hamcrest.object
-
Tests if the value is an event announced by a specific object.
- IsEventFrom(Class<?>, Object) - Constructor for class org.hamcrest.object.IsEventFrom
-
- IsIn<T> - Class in org.hamcrest.collection
-
- IsIn(Collection<T>) - Constructor for class org.hamcrest.collection.IsIn
-
- IsIn(T[]) - Constructor for class org.hamcrest.collection.IsIn
-
- isIn(Collection<T>) - Static method in class org.hamcrest.collection.IsIn
-
- isIn(T[]) - Static method in class org.hamcrest.collection.IsIn
-
- isIn(Collection<T>) - Static method in class org.hamcrest.Matchers
-
- isIn(T[]) - Static method in class org.hamcrest.Matchers
-
- IsInstanceOf - Class in org.hamcrest.core
-
Tests whether the value is an instance of a class.
- IsInstanceOf(Class<?>) - Constructor for class org.hamcrest.core.IsInstanceOf
-
Creates a new instance of IsInstanceOf
- IsIterableContainingInAnyOrder<T> - Class in org.hamcrest.collection
-
- IsIterableContainingInAnyOrder(Collection<Matcher<? super T>>) - Constructor for class org.hamcrest.collection.IsIterableContainingInAnyOrder
-
- IsIterableContainingInOrder<E> - Class in org.hamcrest.collection
-
- IsIterableContainingInOrder(List<Matcher<? super E>>) - Constructor for class org.hamcrest.collection.IsIterableContainingInOrder
-
- IsIterableContainingInRelativeOrder<E> - Class in org.hamcrest.collection
-
- IsIterableContainingInRelativeOrder(List<Matcher<? super E>>) - Constructor for class org.hamcrest.collection.IsIterableContainingInRelativeOrder
-
- IsIterableWithSize<E> - Class in org.hamcrest.collection
-
- IsIterableWithSize(Matcher<? super Integer>) - Constructor for class org.hamcrest.collection.IsIterableWithSize
-
- IsMapContaining<K,V> - Class in org.hamcrest.collection
-
- IsMapContaining(Matcher<? super K>, Matcher<? super V>) - Constructor for class org.hamcrest.collection.IsMapContaining
-
- IsMapWithSize<K,V> - Class in org.hamcrest.collection
-
Matches if map size satisfies a nested matcher.
- IsMapWithSize(Matcher<? super Integer>) - Constructor for class org.hamcrest.collection.IsMapWithSize
-
- IsNaN - Class in org.hamcrest.number
-
Is the value a number actually not a number (NaN)?
- IsNot<T> - Class in org.hamcrest.core
-
Calculates the logical negation of a matcher.
- IsNot(Matcher<T>) - Constructor for class org.hamcrest.core.IsNot
-
- IsNull<T> - Class in org.hamcrest.core
-
Is the value null?
- IsNull() - Constructor for class org.hamcrest.core.IsNull
-
- isOneOf(T...) - Static method in class org.hamcrest.collection.IsIn
-
- isOneOf(T...) - Static method in class org.hamcrest.Matchers
-
- IsSame<T> - Class in org.hamcrest.core
-
Is the value the same object as another value?
- IsSame(T) - Constructor for class org.hamcrest.core.IsSame
-
- iterableWithSize(Matcher<? super Integer>) - Static method in class org.hamcrest.collection.IsIterableWithSize
-
Creates a matcher for Iterable
s that matches when a single pass over the
examined Iterable
yields an item count that satisfies the specified
matcher.
- iterableWithSize(int) - Static method in class org.hamcrest.collection.IsIterableWithSize
-
Creates a matcher for Iterable
s that matches when a single pass over the
examined Iterable
yields an item count that is equal to the specified
size
argument.
- iterableWithSize(Matcher<? super Integer>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Iterable
s that matches when a single pass over the
examined Iterable
yields an item count that satisfies the specified
matcher.
- iterableWithSize(int) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for Iterable
s that matches when a single pass over the
examined Iterable
yields an item count that is equal to the specified
size
argument.
- next() - Method in class org.hamcrest.internal.ArrayIterator
-
- next() - Method in class org.hamcrest.internal.SelfDescribingValueIterator
-
- NO_ARGUMENTS - Static variable in class org.hamcrest.beans.PropertyUtil
-
- NO_NAMESPACE_CONTEXT - Static variable in class org.hamcrest.xml.HasXPath
-
- NONE - Static variable in interface org.hamcrest.Description
-
A description that consumes input but does nothing.
- not(Matcher<T>) - Static method in class org.hamcrest.core.IsNot
-
Creates a matcher that wraps an existing matcher, but inverts the logic by which
it will match.
- not(T) - Static method in class org.hamcrest.core.IsNot
-
A shortcut to the frequently used not(equalTo(x))
.
- not(Matcher<T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that wraps an existing matcher, but inverts the logic by which
it will match.
- not(T) - Static method in class org.hamcrest.CoreMatchers
-
A shortcut to the frequently used not(equalTo(x))
.
- not(Matcher<T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that wraps an existing matcher, but inverts the logic by which
it will match.
- not(T) - Static method in class org.hamcrest.Matchers
-
A shortcut to the frequently used not(equalTo(x))
.
- NOT_MATCHED - Static variable in class org.hamcrest.Condition
-
- notANumber() - Static method in class org.hamcrest.Matchers
-
Creates a matcher of Double
s that matches when an examined double is not a number.
- notANumber() - Static method in class org.hamcrest.number.IsNaN
-
Creates a matcher of Double
s that matches when an examined double is not a number.
- notMatched() - Static method in class org.hamcrest.Condition
-
- notNullValue() - Static method in class org.hamcrest.core.IsNull
-
A shortcut to the frequently used not(nullValue())
.
- notNullValue(Class<T>) - Static method in class org.hamcrest.core.IsNull
-
A shortcut to the frequently used 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)).
- NullDescription() - Constructor for class org.hamcrest.Description.NullDescription
-
- nullSafe(Matcher<? super E>[]) - Static method in class org.hamcrest.internal.NullSafety
-
- NullSafety - Class in org.hamcrest.internal
-
- NullSafety() - Constructor for class org.hamcrest.internal.NullSafety
-
- 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
.
- sameInstance(T) - Static method in class org.hamcrest.core.IsSame
-
Creates a matcher that matches only when the examined object is the same instance as
the specified target object.
- sameInstance(T) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches only when the examined object is the same instance as
the specified target object.
- sameInstance(T) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches only when the examined object is the same instance as
the specified target object.
- SamePropertyValuesAs<T> - Class in org.hamcrest.beans
-
- SamePropertyValuesAs(T) - Constructor for class org.hamcrest.beans.SamePropertyValuesAs
-
- samePropertyValuesAs(T) - Static method in class org.hamcrest.beans.SamePropertyValuesAs
-
Creates a matcher that matches when the examined object has values for all of
its JavaBean properties that are equal to the corresponding values of the
specified bean.
- samePropertyValuesAs(T) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches when the examined object has values for all of
its JavaBean properties that are equal to the corresponding values of the
specified bean.
- SamePropertyValuesAs.PropertyMatcher - Class in org.hamcrest.beans
-
- SelfDescribing - Interface in org.hamcrest
-
The ability of an object to describe itself.
- SelfDescribingValue<T> - Class in org.hamcrest.internal
-
- SelfDescribingValue(T) - Constructor for class org.hamcrest.internal.SelfDescribingValue
-
- SelfDescribingValueIterator<T> - Class in org.hamcrest.internal
-
- SelfDescribingValueIterator(Iterator<T>) - Constructor for class org.hamcrest.internal.SelfDescribingValueIterator
-
- startsWith(String) - Static method in class org.hamcrest.core.StringStartsWith
-
Creates a matcher that matches if the examined String
starts with the specified
String
.
- startsWith(String) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined String
starts with the specified
String
.
- startsWith(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined String
starts with the specified
String
.
- startsWithIgnoringCase(String) - Static method in class org.hamcrest.core.StringStartsWith
-
Creates a matcher that matches if the examined String
starts with the specified
String
, ignoring case
- startsWithIgnoringCase(String) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined String
starts with the specified
String
, ignoring case
- startsWithIgnoringCase(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if the examined String
starts with the specified
String
, ignoring case
- StringContains - Class in org.hamcrest.core
-
Tests if the argument is a string that contains a substring.
- StringContains(boolean, String) - Constructor for class org.hamcrest.core.StringContains
-
- stringContainsInOrder(Iterable<String>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of String
that matches when the examined string contains all of
the specified substrings, considering the order of their appearance.
- stringContainsInOrder(String...) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of String
that matches when the examined string contains all of
the specified substrings, considering the order of their appearance.
- StringContainsInOrder - Class in org.hamcrest.text
-
- StringContainsInOrder(Iterable<String>) - Constructor for class org.hamcrest.text.StringContainsInOrder
-
- stringContainsInOrder(Iterable<String>) - Static method in class org.hamcrest.text.StringContainsInOrder
-
Creates a matcher of String
that matches when the examined string contains all of
the specified substrings, considering the order of their appearance.
- stringContainsInOrder(String...) - Static method in class org.hamcrest.text.StringContainsInOrder
-
Creates a matcher of String
that matches when the examined string contains all of
the specified substrings, considering the order of their appearance.
- StringDescription - Class in org.hamcrest
-
- StringDescription() - Constructor for class org.hamcrest.StringDescription
-
- StringDescription(Appendable) - Constructor for class org.hamcrest.StringDescription
-
- StringEndsWith - Class in org.hamcrest.core
-
Tests if the argument is a string that contains a substring.
- StringEndsWith(boolean, String) - Constructor for class org.hamcrest.core.StringEndsWith
-
- StringStartsWith - Class in org.hamcrest.core
-
Tests if the argument is a string that contains a substring.
- StringStartsWith(boolean, String) - Constructor for class org.hamcrest.core.StringStartsWith
-
- stripSpace(String) - Method in class org.hamcrest.text.IsEqualIgnoringWhiteSpace
-
- substring - Variable in class org.hamcrest.core.SubstringMatcher
-
- SubstringMatcher - Class in org.hamcrest.core
-
- SubstringMatcher(String, boolean, String) - Constructor for class org.hamcrest.core.SubstringMatcher
-