Index
All Classes and Interfaces|All Packages
A
- aFileNamed(Matcher<String>) - Static method in class org.hamcrest.io.FileMatchers
-
A matcher that checks if a file name matches an expected name.
- aFileWithAbsolutePath(Matcher<String>) - Static method in class org.hamcrest.io.FileMatchers
-
A matcher that checks if a file absolute path matches an expected path.
- aFileWithCanonicalPath(Matcher<String>) - Static method in class org.hamcrest.io.FileMatchers
-
A matcher that checks if a file canonical path matches an expected path.
- aFileWithSize(long) - Static method in class org.hamcrest.io.FileMatchers
-
A matcher that checks if a file has a specific size.
- aFileWithSize(Matcher<Long>) - Static method in class org.hamcrest.io.FileMatchers
-
A matcher that checks if a file size matches an expected size.
- 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(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(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.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.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.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.
- 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
-
Constructor, best called from
AllOf.allOf(Iterable). - AllOf(Matcher<? super T>...) - Constructor for class org.hamcrest.core.AllOf
-
Constructor, best called from
AllOf.allOf(Matcher[]). - aMapWithSize(int) - Static method in class org.hamcrest.collection.IsMapWithSize
-
Creates a matcher for
Maps that matches when thesize()method returns a value equal to the specifiedsize. - aMapWithSize(int) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for
Maps that matches when thesize()method returns a value equal to the specifiedsize. - aMapWithSize(Matcher<? super Integer>) - Static method in class org.hamcrest.collection.IsMapWithSize
-
Creates a matcher for
Maps that matches when thesize()method returns a value that satisfies the specified matcher. - aMapWithSize(Matcher<? super Integer>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for
Maps that matches when thesize()method returns a value that satisfies the specified matcher. - and(Condition.Step<? super T, U>) - Method in class org.hamcrest.Condition
-
Applies the mapping to the current value in the sequence
- and(Matcher<? super T>) - Method in class org.hamcrest.core.CombinableMatcher
-
Specify the second matcher in a
CombinableMatcherpair. - and(Matcher<? super X>) - Method in class org.hamcrest.core.CombinableMatcher.CombinableBothMatcher
-
Specify the second matcher in a
CombinableMatcherpair. - anEmptyMap() - Static method in class org.hamcrest.collection.IsMapWithSize
-
Creates a matcher for
Maps that matches when thesize()method returns zero. - anEmptyMap() - Static method in class org.hamcrest.Matchers
-
Creates a matcher for
Maps that matches when thesize()method returns zero. - anExistingDirectory() - Static method in class org.hamcrest.io.FileMatchers
-
A matcher that checks if a directory exists.
- anExistingFile() - Static method in class org.hamcrest.io.FileMatchers
-
A matcher that checks if a file exists.
- anExistingFileOrDirectory() - Static method in class org.hamcrest.io.FileMatchers
-
A matcher that checks if a file or directory exists.
- 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 theClass.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 theClass.isInstance(Object)method on that type, passing 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 theClass.isInstance(Object)method on that type, passing the examined object. - 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(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(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.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.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.Matchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(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<? 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<? 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<? 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.
- anyOf(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 ANY of the specified matchers.
- 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
-
Constructor, best called from
AnyOf.anyOf(Iterable). - AnyOf(Matcher<? super T>...) - Constructor for class org.hamcrest.core.AnyOf
-
Constructor, best called from
AnyOf.anyOf(Matcher[]). - anything() - Static method in class org.hamcrest.core.IsAnything
-
Creates a matcher that always matches, regardless of the examined object.
- anything() - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that always matches, regardless of the examined object.
- 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.core.IsAnything
-
Creates a matcher that always matches, regardless of the examined object, but describes itself with the specified
String. - 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(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(char) - Method in class org.hamcrest.BaseDescription
-
Append the char c to the description.
- append(char) - Method in class org.hamcrest.StringDescription
- append(String) - Method in class org.hamcrest.BaseDescription
-
Append the String str to the description.
- append(String) - 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
SelfDescribingvalue 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
-
Appends a list of
SelfDescribingobjects to the 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, Iterable<T>) - Method in class org.hamcrest.BaseDescription
- appendValueList(String, String, String, Iterable<T>) - Method in interface org.hamcrest.Description
-
Appends a list of values to the description.
- appendValueList(String, String, String, Iterable<T>) - Method in class org.hamcrest.Description.NullDescription
- appendValueList(String, String, String, 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, T...) - Method in class org.hamcrest.Description.NullDescription
- apply(I, Description) - Method in interface org.hamcrest.Condition.Step
-
Apply this condition to a value
- aReadableFile() - Static method in class org.hamcrest.io.FileMatchers
-
A matcher that checks if a file is readable.
- 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.
- ArrayAsIterableMatcher<E> - Class in org.hamcrest.collection
-
A matcher for arrays that matches when each item in the examined array satisfies the corresponding matcher in the specified list of matchers.
- ArrayAsIterableMatcher(TypeSafeDiagnosingMatcher<Iterable<? extends E>>, Collection<Matcher<? super E>>, String) - Constructor for class org.hamcrest.collection.ArrayAsIterableMatcher
-
Constructor, best called from
ArrayMatching.arrayContainingInAnyOrder(Matcher[]). - arrayContaining(E...) - Static method in class org.hamcrest.collection.ArrayMatching
-
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(E...) - Static method in class org.hamcrest.collection.IsArrayContainingInOrder
-
Deprecated.
- 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(List<Matcher<? super E>>) - Static method in class org.hamcrest.collection.ArrayMatching
-
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(List<Matcher<? super E>>) - Static method in class org.hamcrest.collection.IsArrayContainingInOrder
-
Deprecated.As of version 2.1, use
ArrayMatching.arrayContaining(List). - 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.
- arrayContaining(Matcher<? super E>...) - Static method in class org.hamcrest.collection.ArrayMatching
-
Creates a matcher for arrays that matches when each item in the examined array satisfies the corresponding matcher in the specified matchers.
- arrayContaining(Matcher<? super E>...) - Static method in class org.hamcrest.collection.IsArrayContainingInOrder
-
Deprecated.As of version 2.1, use
ArrayMatching.arrayContaining(Matcher[]). - 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.
- arrayContainingInAnyOrder(E...) - Static method in class org.hamcrest.collection.ArrayMatching
-
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(E...) - Static method in class org.hamcrest.collection.IsArrayContainingInAnyOrder
-
Deprecated.As of version 2.1, use
ArrayMatching.arrayContainingInAnyOrder(Object[]). - 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.
- arrayContainingInAnyOrder(Collection<Matcher<? super E>>) - Static method in class org.hamcrest.collection.ArrayMatching
-
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(Collection<Matcher<? super E>>) - Static method in class org.hamcrest.collection.IsArrayContainingInAnyOrder
-
Deprecated.As of version 2.1, use
ArrayMatching.arrayContainingInAnyOrder(Collection). - 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(Matcher<? super E>...) - Static method in class org.hamcrest.collection.ArrayMatching
-
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(Matcher<? super E>...) - Static method in class org.hamcrest.collection.IsArrayContainingInAnyOrder
-
Deprecated.As of version 2.1, use
ArrayMatching.arrayContainingInAnyOrder(Matcher[]). - 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.
- ArrayMatching - Class in org.hamcrest.collection
-
Collected helper code for converting matchers between lists and iterables.
- arrayWithSize(int) - Static method in class org.hamcrest.collection.IsArrayWithSize
-
Creates a matcher for arrays that matches when the
lengthof the array equals the specifiedsize. - arrayWithSize(int) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for arrays that matches when the
lengthof the array equals the specifiedsize. - arrayWithSize(Matcher<? super Integer>) - Static method in class org.hamcrest.collection.IsArrayWithSize
-
Creates a matcher for arrays that matches when the
lengthof the array satisfies the specified matcher. - arrayWithSize(Matcher<? super Integer>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for arrays that matches when the
lengthof the array satisfies the specified matcher. - asEqualMatchers(E[]) - Static method in class org.hamcrest.collection.ArrayMatching
-
Converts item array to corresponding array of
equalTomatchers - assertThat(String, boolean) - Static method in class org.hamcrest.MatcherAssert
-
Checks that an assertion is true
- assertThat(String, T, Matcher<? super T>) - Static method in class org.hamcrest.MatcherAssert
-
Checks that a value matches a matcher
- assertThat(T, Matcher<? super T>) - Static method in class org.hamcrest.MatcherAssert
-
Checks that a value matches a matcher
- asString(SelfDescribing) - Static method in class org.hamcrest.StringDescription
-
Alias for
StringDescription.toString(SelfDescribing). - aWritableFile() - Static method in class org.hamcrest.io.FileMatchers
-
A matcher that checks if a directory is writable.
B
- BaseDescription - Class in org.hamcrest
-
A
Descriptionthat is stored as a string. - BaseDescription() - Constructor for class org.hamcrest.BaseDescription
-
Default constructor
- BaseMatcher<T> - Class in org.hamcrest
-
BaseClass for all Matcher implementations.
- BaseMatcher() - Constructor for class org.hamcrest.BaseMatcher
-
Default constructor.
- BigDecimalCloseTo - Class in org.hamcrest.number
-
A matcher that checks a
BigDecimalis close to an expected value. - BigDecimalCloseTo(BigDecimal, BigDecimal) - Constructor for class org.hamcrest.number.BigDecimalCloseTo
-
Constructor, best called from
BigDecimalCloseTo.closeTo(BigDecimal, BigDecimal). - blankOrNullString() - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Stringthat matches when the examined string isnull, or contains zero or more whitespace characters and nothing else. - blankOrNullString() - Static method in class org.hamcrest.text.IsBlankString
-
Creates a matcher of
Stringthat matches when the examined string isnull, or contains zero or more whitespace characters and nothing else. - blankString() - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Stringthat matches when the examined string contains zero or more whitespace characters and nothing else. - blankString() - Static method in class org.hamcrest.text.IsBlankString
-
Creates a matcher of
Stringthat matches when the examined string contains zero or more whitespace characters and nothing else. - both(Matcher<? super LHS>) - Static method in class org.hamcrest.core.CombinableMatcher
-
Creates a matcher that matches when both of the specified matchers match the examined object.
- both(Matcher<? super LHS>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches when both of the specified matchers match the examined object.
- both(Matcher<? super LHS>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches when both of the specified matchers match the examined object.
C
- CAN_READ - Static variable in class org.hamcrest.io.FileMatchers
-
Checks if a
Fileis readable. - CAN_WRITE - Static variable in class org.hamcrest.io.FileMatchers
-
Checks if a
Fileis writable. - CharSequenceLength - Class in org.hamcrest.text
-
A Matcher that checks the length of a string.
- CharSequenceLength(Matcher<? super Integer>) - Constructor for class org.hamcrest.text.CharSequenceLength
-
Constructor, best called from
CharSequenceLength.hasLength(Matcher). - check(File) - Method in interface org.hamcrest.io.FileMatchers.FileStatus
-
Checks the give file against a status.
- closeTo(double, double) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Doubles that matches when an examined double is equal to the specifiedoperand, within a range of +/-error. - closeTo(double, double) - Static method in class org.hamcrest.number.IsCloseTo
-
Creates a matcher of
Doubles that matches when an examined double is equal to the specifiedoperand, within a range of +/-error. - closeTo(BigDecimal, BigDecimal) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
BigDecimals that matches when an examined BigDecimal is equal to the specifiedoperand, within a range of +/-error. - closeTo(BigDecimal, BigDecimal) - Static method in class org.hamcrest.number.BigDecimalCloseTo
-
Creates a matcher of
BigDecimals that matches when an examined BigDecimal is equal to the specifiedoperand, within a range of +/-error. - CombinableBothMatcher(Matcher<? super X>) - Constructor for class org.hamcrest.core.CombinableMatcher.CombinableBothMatcher
-
Constructor, best called from
CombinableMatcher.both(Matcher). - CombinableEitherMatcher(Matcher<? super X>) - Constructor for class org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher
-
Constructor, best called from
CombinableMatcher.either(Matcher) - CombinableMatcher<T> - Class in org.hamcrest.core
-
Allows matchers of the same type to be combined using
either/or, orboth/and. - CombinableMatcher(Matcher<? super T>) - Constructor for class org.hamcrest.core.CombinableMatcher
-
Constructor, best called from
eitherorboth. - CombinableMatcher.CombinableBothMatcher<X> - Class in org.hamcrest.core
-
Allows syntactic sugar of using
bothandand. - CombinableMatcher.CombinableEitherMatcher<X> - Class in org.hamcrest.core
-
Allows syntactic sugar of using
eitherandor. - ComparatorMatcherBuilder<T> - Class in org.hamcrest.comparator
-
Builder for matchers that allow matchers to use a corresponding Compartor
- comparedBy(Comparator<T>) - Static method in class org.hamcrest.comparator.ComparatorMatcherBuilder
-
Creates a matcher factory for matchers of
Comparatorss ofT. - comparesEqualTo(T) - Method in class org.hamcrest.comparator.ComparatorMatcherBuilder
-
Creates a matcher of
Tobject that matches when the examined object is equal to the specified value, as reported by theComparatorused to create this builder. - comparesEqualTo(T) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Comparableobject that matches when the examined object is equal to the specified value, as reported by thecompareTomethod of the examined object. - comparesEqualTo(T) - Static method in class org.hamcrest.number.OrderingComparison
-
Creates a matcher of
Comparableobject that matches when the examined object is equal to the specified value, as reported by thecompareTomethod 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 -
Represents a single step in a multi-step sequence
- contains(E...) - Static method in class org.hamcrest.collection.IsIterableContainingInOrder
- contains(E...) - Static method in class org.hamcrest.Matchers
- contains(List<Matcher<? super E>>) - Static method in class org.hamcrest.collection.IsIterableContainingInOrder
- contains(List<Matcher<? super E>>) - Static method in class org.hamcrest.Matchers
- contains(Matcher<? super E>) - Static method in class org.hamcrest.collection.IsIterableContainingInOrder
- contains(Matcher<? super E>) - Static method in class org.hamcrest.Matchers
- contains(Matcher<? super E>...) - Static method in class org.hamcrest.collection.IsIterableContainingInOrder
- contains(Matcher<? super E>...) - Static method in class org.hamcrest.Matchers
- containsInAnyOrder(Collection<Matcher<? super T>>) - Static method in class org.hamcrest.collection.IsIterableContainingInAnyOrder
- containsInAnyOrder(Collection<Matcher<? super T>>) - Static method in class org.hamcrest.Matchers
- containsInAnyOrder(Matcher<? super T>...) - Static method in class org.hamcrest.collection.IsIterableContainingInAnyOrder
- containsInAnyOrder(Matcher<? super T>...) - Static method in class org.hamcrest.Matchers
- containsInAnyOrder(T...) - Static method in class org.hamcrest.collection.IsIterableContainingInAnyOrder
- containsInAnyOrder(T...) - Static method in class org.hamcrest.Matchers
- containsInRelativeOrder(E...) - Static method in class org.hamcrest.collection.IsIterableContainingInRelativeOrder
- containsInRelativeOrder(E...) - Static method in class org.hamcrest.Matchers
- containsInRelativeOrder(List<Matcher<? super E>>) - Static method in class org.hamcrest.collection.IsIterableContainingInRelativeOrder
- containsInRelativeOrder(List<Matcher<? super E>>) - Static method in class org.hamcrest.Matchers
- containsInRelativeOrder(Matcher<? super E>...) - Static method in class org.hamcrest.collection.IsIterableContainingInRelativeOrder
- containsInRelativeOrder(Matcher<? super E>...) - Static method in class org.hamcrest.Matchers
- containsString(String) - Static method in class org.hamcrest.core.StringContains
- containsString(String) - Static method in class org.hamcrest.CoreMatchers
- containsString(String) - Static method in class org.hamcrest.Matchers
- containsStringIgnoringCase(String) - Static method in class org.hamcrest.core.StringContains
- containsStringIgnoringCase(String) - Static method in class org.hamcrest.CoreMatchers
- containsStringIgnoringCase(String) - Static method in class org.hamcrest.Matchers
- converted(String) - Method in class org.hamcrest.core.SubstringMatcher
-
Helper method to allow subclasses to handle case insensitivity.
- CoreMatchers - Class in org.hamcrest
-
Builder methods for various matchers.
- CustomMatcher<T> - Class in org.hamcrest
-
Utility class for writing one off matchers.
- CustomMatcher(String) - Constructor for class org.hamcrest.CustomMatcher
-
Constructor
- CustomTypeSafeMatcher<T> - Class in org.hamcrest
-
Utility class for writing one off matchers (with type safety and null checks).
- CustomTypeSafeMatcher(String) - Constructor for class org.hamcrest.CustomTypeSafeMatcher
-
Constructor
D
- describedAs(String, Matcher<T>, Object...) - Static method in class org.hamcrest.core.DescribedAs
-
Wraps an existing matcher, overriding its description with that specified.
- describedAs(String, Matcher<T>, Object...) - Static method in class org.hamcrest.CoreMatchers
-
Wraps an existing matcher, overriding its description with that specified.
- describedAs(String, Matcher<T>, Object...) - Static method in class org.hamcrest.Matchers
-
Wraps an existing matcher, overriding its description with that specified.
- DescribedAs<T> - Class in org.hamcrest.core
-
Provides a custom description to another matcher.
- DescribedAs(String, Matcher<T>, Object[]) - Constructor for class org.hamcrest.core.DescribedAs
-
Constructor, best called from
DescribedAs.describedAs(String, Matcher, Object...). - describeMismatch(Object, Description) - Method in class org.hamcrest.BaseMatcher
- describeMismatch(Object, Description) - Method in class org.hamcrest.core.DescribedAs
- describeMismatch(Object, Description) - Method in class org.hamcrest.core.Is
- describeMismatch(Object, Description) - Method in class org.hamcrest.DiagnosingMatcher
- describeMismatch(Object, Description) - Method in interface org.hamcrest.Matcher
-
Generate a description of why the matcher has not accepted the item.
- describeMismatch(Object, Description) - Method in class org.hamcrest.TypeSafeDiagnosingMatcher
- describeMismatch(Object, Description) - Method in class org.hamcrest.TypeSafeMatcher
- describeMismatchSafely(E[], Description) - Method in class org.hamcrest.collection.ArrayAsIterableMatcher
- describeMismatchSafely(E[], Description) - Method in class org.hamcrest.collection.IsArrayContainingInAnyOrder
-
Deprecated.
- describeMismatchSafely(E[], Description) - Method in class org.hamcrest.collection.IsArrayContainingInOrder
-
Deprecated.
- describeMismatchSafely(Class<?>, Description) - Method in class org.hamcrest.object.IsCompatibleType
- describeMismatchSafely(Double, Description) - Method in class org.hamcrest.number.IsCloseTo
- describeMismatchSafely(Double, Description) - Method in class org.hamcrest.number.IsNaN
- describeMismatchSafely(Iterable<? extends E>, Description) - Method in class org.hamcrest.collection.IsEmptyIterable
- describeMismatchSafely(String, Description) - Method in class org.hamcrest.core.SubstringMatcher
- describeMismatchSafely(String, Description) - Method in class org.hamcrest.text.IsEqualCompressingWhiteSpace
- describeMismatchSafely(String, Description) - Method in class org.hamcrest.text.IsEqualIgnoringCase
- describeMismatchSafely(String, Description) - Method in class org.hamcrest.text.StringContainsInOrder
- describeMismatchSafely(BigDecimal, Description) - Method in class org.hamcrest.number.BigDecimalCloseTo
- describeMismatchSafely(Collection<? extends E>, Description) - Method in class org.hamcrest.collection.IsEmptyCollection
- describeMismatchSafely(Map<? extends K, ? extends V>, Description) - Method in class org.hamcrest.collection.IsMapContaining
- describeMismatchSafely(T[], Description) - Method in class org.hamcrest.collection.HasItemInArray
- describeMismatchSafely(T[], Description) - Method in class org.hamcrest.collection.IsArray
- describeMismatchSafely(T, Description) - Method in class org.hamcrest.beans.HasProperty
- describeMismatchSafely(T, Description) - Method in class org.hamcrest.TypeSafeMatcher
-
Describe the mismatch.
- describeTo(Description) - Method in class org.hamcrest.beans.HasProperty
- describeTo(Description) - Method in class org.hamcrest.beans.HasPropertyWithValue
- describeTo(Description) - Method in class org.hamcrest.beans.SamePropertyValuesAs
- describeTo(Description) - Method in class org.hamcrest.collection.ArrayAsIterableMatcher
- describeTo(Description) - Method in class org.hamcrest.collection.HasItemInArray
- describeTo(Description) - Method in class org.hamcrest.collection.IsArray
- describeTo(Description) - Method in class org.hamcrest.collection.IsArrayContainingInAnyOrder
-
Deprecated.
- describeTo(Description) - Method in class org.hamcrest.collection.IsArrayContainingInOrder
-
Deprecated.
- describeTo(Description) - Method in class org.hamcrest.collection.IsEmptyCollection
- describeTo(Description) - Method in class org.hamcrest.collection.IsEmptyIterable
- describeTo(Description) - Method in class org.hamcrest.collection.IsIn
- describeTo(Description) - Method in class org.hamcrest.collection.IsIterableContainingInAnyOrder
- describeTo(Description) - Method in class org.hamcrest.collection.IsIterableContainingInOrder
- describeTo(Description) - Method in class org.hamcrest.collection.IsIterableContainingInRelativeOrder
- describeTo(Description) - Method in class org.hamcrest.collection.IsMapContaining
- describeTo(Description) - Method in class org.hamcrest.core.AllOf
- describeTo(Description) - Method in class org.hamcrest.core.AnyOf
- describeTo(Description) - Method in class org.hamcrest.core.CombinableMatcher
- describeTo(Description) - Method in class org.hamcrest.core.DescribedAs
- describeTo(Description) - Method in class org.hamcrest.core.Every
- describeTo(Description) - Method in class org.hamcrest.core.Is
- describeTo(Description) - Method in class org.hamcrest.core.IsAnything
- describeTo(Description) - Method in class org.hamcrest.core.IsCollectionContaining
-
Deprecated.
- describeTo(Description) - Method in class org.hamcrest.core.IsEqual
- describeTo(Description) - Method in class org.hamcrest.core.IsInstanceOf
- describeTo(Description) - Method in class org.hamcrest.core.IsIterableContaining
- describeTo(Description) - Method in class org.hamcrest.core.IsNot
- describeTo(Description) - Method in class org.hamcrest.core.IsNull
- describeTo(Description) - Method in class org.hamcrest.core.IsSame
- describeTo(Description) - Method in class org.hamcrest.core.StringRegularExpression
- describeTo(Description) - Method in class org.hamcrest.core.SubstringMatcher
- describeTo(Description) - Method in class org.hamcrest.CustomMatcher
- describeTo(Description) - Method in class org.hamcrest.CustomTypeSafeMatcher
- describeTo(Description) - Method in class org.hamcrest.FeatureMatcher
- describeTo(Description) - Method in class org.hamcrest.number.BigDecimalCloseTo
- describeTo(Description) - Method in class org.hamcrest.number.IsCloseTo
- describeTo(Description) - Method in class org.hamcrest.number.IsNaN
- describeTo(Description) - Method in class org.hamcrest.object.HasEqualValues
- describeTo(Description) - Method in class org.hamcrest.object.IsCompatibleType
- describeTo(Description) - Method in class org.hamcrest.object.IsEventFrom
- describeTo(Description) - Method in interface org.hamcrest.SelfDescribing
-
Generates a description of the object.
- describeTo(Description) - Method in class org.hamcrest.text.IsBlankString
- describeTo(Description) - Method in class org.hamcrest.text.IsEmptyString
- describeTo(Description) - Method in class org.hamcrest.text.IsEqualCompressingWhiteSpace
- describeTo(Description) - Method in class org.hamcrest.text.IsEqualIgnoringCase
- describeTo(Description) - Method in class org.hamcrest.text.MatchesPattern
- describeTo(Description) - Method in class org.hamcrest.text.StringContainsInOrder
- describeTo(Description) - Method in class org.hamcrest.xml.HasXPath
- describeTo(Description, String) - Method in class org.hamcrest.core.AnyOf
-
Describe this matcher to description
- Description - Interface in org.hamcrest
-
A description of a Matcher.
- Description.NullDescription - Class in org.hamcrest
-
A description that consumes input but does nothing.
- descriptionEnd() - Method in class org.hamcrest.collection.IsArray
-
Returns the string that ends the description.
- descriptionSeparator() - Method in class org.hamcrest.collection.IsArray
-
Returns the string that separates the elements in the description.
- descriptionStart() - Method in class org.hamcrest.collection.IsArray
-
Returns the string that starts the description.
- DiagnosingMatcher<T> - Class in org.hamcrest
-
Convenient base class for Matchers of a specific type and that will report why the received value has been rejected.
- DiagnosingMatcher() - Constructor for class org.hamcrest.DiagnosingMatcher
-
Constructor
E
- 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
- empty() - Static method in class org.hamcrest.Matchers
- emptyArray() - Static method in class org.hamcrest.collection.IsArrayWithSize
-
Creates a matcher for arrays that matches when the
lengthof the array is zero. - emptyArray() - Static method in class org.hamcrest.Matchers
-
Creates a matcher for arrays that matches when the
lengthof the array is zero. - emptyCollectionOf(Class<E>) - Static method in class org.hamcrest.collection.IsEmptyCollection
- emptyCollectionOf(Class<E>) - Static method in class org.hamcrest.Matchers
- emptyIterable() - Static method in class org.hamcrest.collection.IsEmptyIterable
-
Creates a matcher for
Iterables matching examined iterables that yield no items. - emptyIterable() - Static method in class org.hamcrest.Matchers
-
Creates a matcher for
Iterables matching examined iterables that yield no items. - emptyIterableOf(Class<E>) - Static method in class org.hamcrest.collection.IsEmptyIterable
-
Creates a matcher for
Iterables matching examined iterables that yield no items. - emptyIterableOf(Class<E>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for
Iterables matching examined iterables that yield no items. - emptyOrNullString() - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Stringthat matches when the examined string isnull, or has zero length. - emptyOrNullString() - Static method in class org.hamcrest.text.IsEmptyString
-
Creates a matcher of
Stringthat matches when the examined string isnull, or has zero length. - emptyString() - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Stringthat matches when the examined string has zero length. - emptyString() - Static method in class org.hamcrest.text.IsEmptyString
-
Creates a matcher of
Stringthat matches when the examined string has zero length. - endsWith(String) - Static method in class org.hamcrest.core.StringEndsWith
- endsWith(String) - Static method in class org.hamcrest.CoreMatchers
- endsWith(String) - Static method in class org.hamcrest.Matchers
- endsWithIgnoringCase(String) - Static method in class org.hamcrest.core.StringEndsWith
- endsWithIgnoringCase(String) - Static method in class org.hamcrest.CoreMatchers
- endsWithIgnoringCase(String) - Static method in class org.hamcrest.Matchers
- 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 theObject.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 theObject.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 theObject.equals(java.lang.Object)method on the examined object. - equalToCompressingWhiteSpace(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Stringthat matches when the examined string is equal to the specified expectedString, when whitespace differences are (mostly) ignored. - equalToCompressingWhiteSpace(String) - Static method in class org.hamcrest.text.IsEqualCompressingWhiteSpace
-
Creates a matcher of
Stringthat matches when the examined string is equal to the specified expectedString, when whitespace differences are (mostly) ignored. - equalToIgnoringCase(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Stringthat 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
Stringthat matches when the examined string is equal to the specified expectedString, ignoring case. - equalToIgnoringWhiteSpace(String) - Static method in class org.hamcrest.Matchers
-
Deprecated.
- equalToIgnoringWhiteSpace(String) - Static method in class org.hamcrest.text.IsEqualCompressingWhiteSpace
- equalToObject(Object) - Static method in class org.hamcrest.core.IsEqual
-
Creates an
IsEqualmatcher 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
IsEqualmatcher 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
IsEqualmatcher 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
-
Checks if the input matches the specific substring.
- eventFrom(Class<? extends EventObject>, Object) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
EventObjectthat matches any object derived from eventClass announced by source. - eventFrom(Class<? extends EventObject>, Object) - Static method in class org.hamcrest.object.IsEventFrom
-
Creates a matcher of
EventObjectthat matches any object derived from eventClass announced by source. - eventFrom(Object) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
EventObjectthat matches any EventObject announced by source. - eventFrom(Object) - Static method in class org.hamcrest.object.IsEventFrom
-
Creates a matcher of
EventObjectthat matches any EventObject announced by source. - Every<T> - Class in org.hamcrest.core
-
A matcher that applies a delegate matcher to every item in an
Iterable. - Every(Matcher<? super T>) - Constructor for class org.hamcrest.core.Every
-
Constructor, best called from
Every.everyItem(Matcher). - everyItem(Matcher<U>) - Static method in class org.hamcrest.core.Every
- everyItem(Matcher<U>) - Static method in class org.hamcrest.CoreMatchers
- everyItem(Matcher<U>) - Static method in class org.hamcrest.Matchers
- Example Usage - Search tag in class org.hamcrest.beans.HasPropertyWithValue
- Section
- EXISTS - Static variable in class org.hamcrest.io.FileMatchers
-
Checks if a
Fileis a exists.
F
- FeatureMatcher<T,
U> - Class in org.hamcrest -
Supporting class for matching a feature of an object.
- FeatureMatcher(Matcher<? super U>, String, String) - Constructor for class org.hamcrest.FeatureMatcher
-
Constructor
- featureValueOf(E[]) - Method in class org.hamcrest.collection.IsArrayWithSize
- featureValueOf(CharSequence) - Method in class org.hamcrest.text.CharSequenceLength
- featureValueOf(Iterable<E>) - Method in class org.hamcrest.collection.IsIterableWithSize
- featureValueOf(Collection<? extends E>) - Method in class org.hamcrest.collection.IsCollectionWithSize
- featureValueOf(Map<? extends K, ? extends V>) - Method in class org.hamcrest.collection.IsMapWithSize
- featureValueOf(T) - Method in class org.hamcrest.FeatureMatcher
-
Implement this to extract the interesting feature.
- featureValueOf(T) - Method in class org.hamcrest.object.HasToString
- FileMatchers - Class in org.hamcrest.io
-
Matchers for properties of files.
- FileMatchers.FileStatus - Interface in org.hamcrest.io
-
Checks the status of a
File.
G
- getPropertyDescriptor(String, Object) - Static method in class org.hamcrest.beans.PropertyUtil
-
Returns the description of the property with the provided name on the provided object's interface.
- getString() - Method in class org.hamcrest.text.IsEqualCompressingWhiteSpace
-
Gets the string
- greaterThan(T) - Method in class org.hamcrest.comparator.ComparatorMatcherBuilder
-
Creates a matcher of
Tobject that matches when the examined object is greater than the specified value, as reported by theComparatorused to create this builder. - greaterThan(T) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Comparableobject that matches when the examined object is greater than the specified value, as reported by thecompareTomethod of the examined object. - greaterThan(T) - Static method in class org.hamcrest.number.OrderingComparison
-
Creates a matcher of
Comparableobject that matches when the examined object is greater than the specified value, as reported by thecompareTomethod of the examined object. - greaterThanOrEqualTo(T) - Method in class org.hamcrest.comparator.ComparatorMatcherBuilder
-
Creates a matcher of
Tobject that matches when the examined object is greater than or equal to the specified value, as reported by theComparatorused to create this builder. - greaterThanOrEqualTo(T) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Comparableobject that matches when the examined object is greater than or equal to the specified value, as reported by thecompareTomethod of the examined object. - greaterThanOrEqualTo(T) - Static method in class org.hamcrest.number.OrderingComparison
-
Creates a matcher of
Comparableobject that matches when the examined object is greater than or equal to the specified value, as reported by thecompareTomethod of the examined object.
H
- hasEntry(K, V) - Static method in class org.hamcrest.collection.IsMapContaining
- hasEntry(K, V) - Static method in class org.hamcrest.Matchers
- hasEntry(Matcher<? super K>, Matcher<? super V>) - Static method in class org.hamcrest.collection.IsMapContaining
- hasEntry(Matcher<? super K>, Matcher<? super V>) - Static method in class org.hamcrest.Matchers
- HasEqualValues<T> - Class in org.hamcrest.object
-
A matcher that checks if an object as equal fields values to an expected object.
- HasEqualValues(T) - Constructor for class org.hamcrest.object.HasEqualValues
-
Constructor
- hasItem(Matcher<? super T>) - Static method in class org.hamcrest.core.IsCollectionContaining
-
Deprecated.As of version 2.1, use
IsIterableContaining.hasItem(Matcher). - hasItem(Matcher<? super T>) - Static method in class org.hamcrest.core.IsIterableContaining
- hasItem(Matcher<? super T>) - Static method in class org.hamcrest.CoreMatchers
- hasItem(Matcher<? super T>) - Static method in class org.hamcrest.Matchers
- hasItem(T) - Static method in class org.hamcrest.core.IsCollectionContaining
-
Deprecated.As of version 2.1, use
IsIterableContaining.hasItem(Object). - hasItem(T) - Static method in class org.hamcrest.core.IsIterableContaining
- hasItem(T) - Static method in class org.hamcrest.CoreMatchers
- hasItem(T) - Static method in class org.hamcrest.Matchers
- hasItemInArray(Matcher<? super T>) - Static method in class org.hamcrest.collection.ArrayMatching
-
Creates a matcher for arrays that matches when the examined array contains at least one item that is matched by the specified
elementMatcher. - 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.collection.ArrayMatching
-
A shortcut to the frequently used
hasItemInArray(equalTo(x)). - hasItemInArray(T) - Static method in class org.hamcrest.Matchers
-
A shortcut to the frequently used
hasItemInArray(equalTo(x)). - HasItemInArray<T> - Class in org.hamcrest.collection
-
Matches if an array contains an item satisfying a nested matcher.
- HasItemInArray(Matcher<? super T>) - Constructor for class org.hamcrest.collection.HasItemInArray
-
Constructor, best called from
ArrayMatching. - hasItems(Matcher<? super T>...) - Static method in class org.hamcrest.core.IsCollectionContaining
-
Deprecated.As of version 2.1, use
IsIterableContaining.hasItems(Matcher[])}. - hasItems(Matcher<? super T>...) - Static method in class org.hamcrest.core.IsIterableContaining
- hasItems(Matcher<? super T>...) - Static method in class org.hamcrest.CoreMatchers
- hasItems(Matcher<? super T>...) - Static method in class org.hamcrest.Matchers
- hasItems(T...) - Static method in class org.hamcrest.core.IsCollectionContaining
-
Deprecated.As of version 2.1, use
IsIterableContaining.hasItems(Object[])}. - hasItems(T...) - Static method in class org.hamcrest.core.IsIterableContaining
- hasItems(T...) - Static method in class org.hamcrest.CoreMatchers
- hasItems(T...) - Static method in class org.hamcrest.Matchers
- hasKey(K) - Static method in class org.hamcrest.collection.IsMapContaining
- hasKey(K) - Static method in class org.hamcrest.Matchers
- hasKey(Matcher<? super K>) - Static method in class org.hamcrest.collection.IsMapContaining
- hasKey(Matcher<? super K>) - Static method in class org.hamcrest.Matchers
- hasLength(int) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
CharSequencethat matches when a char sequence has the length of the specifiedargument. - hasLength(int) - Static method in class org.hamcrest.text.CharSequenceLength
-
Creates a matcher of
CharSequencethat matches when a char sequence has the given length For example: - hasLength(Matcher<? super Integer>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
CharSequencethat matches when a char sequence has the length that satisfies the specified matcher. - hasLength(Matcher<? super Integer>) - Static method in class org.hamcrest.text.CharSequenceLength
-
Creates a matcher of
CharSequencethat matches when a char sequence has the given length For example: - 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) - 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.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, 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.
- HasProperty<T> - Class in org.hamcrest.beans
-
A matcher that checks if an object has a JavaBean property with the specified name.
- HasProperty(String) - Constructor for class org.hamcrest.beans.HasProperty
-
Constructor, best called from
HasProperty.hasProperty(String). - hasPropertyAtPath(String, Matcher<T>) - Static method in class org.hamcrest.beans.HasPropertyWithValue
-
Creates a matcher that matches when the examined object is a graph of JavaBean objects that can be navigated along the declared dot-separated path and the final element of that path is a JavaBean property whose value satisfies the specified matcher.
- HasPropertyWithValue<T> - Class in org.hamcrest.beans
-
A matcher that checks if an object has a JavaBean property with the specified name and an expected value.
- HasPropertyWithValue(String, Matcher<?>) - Constructor for class org.hamcrest.beans.HasPropertyWithValue
-
Constructor, best called from
HasPropertyWithValue.hasProperty(String, Matcher)orHasPropertyWithValue.hasPropertyAtPath(String, Matcher). - HasPropertyWithValue(String, Matcher<?>, String) - Constructor for class org.hamcrest.beans.HasPropertyWithValue
-
Constructor, best called from
HasPropertyWithValue.hasProperty(String, Matcher)orHasPropertyWithValue.hasPropertyAtPath(String, Matcher). - hasSize(int) - Static method in class org.hamcrest.collection.IsCollectionWithSize
-
Creates a matcher for
Collections that matches when thesize()method returns a value equal to the specifiedsize. - hasSize(int) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for
Collections that matches when thesize()method returns a value equal to the specifiedsize. - hasSize(Matcher<? super Integer>) - Static method in class org.hamcrest.collection.IsCollectionWithSize
-
Creates a matcher for
Collections that matches when thesize()method returns a value that satisfies the specified matcher. - hasSize(Matcher<? super Integer>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher for
Collections that matches when thesize()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
toStringmethod returns a value equalTo the specified string. - hasToString(String) - Static method in class org.hamcrest.object.HasToString
-
Creates a matcher that matches any examined object whose
toStringmethod returns a value equalTo the specified string. - hasToString(Matcher<? super String>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches any examined object whose
toStringmethod returns a value that satisfies the specified matcher. - hasToString(Matcher<? super String>) - Static method in class org.hamcrest.object.HasToString
-
Creates a matcher that matches any examined object whose
toStringmethod returns a value that satisfies the specified matcher. - HasToString<T> - Class in org.hamcrest.object
-
A Matcher that checks the output of the
toString()method. - HasToString(Matcher<? super String>) - Constructor for class org.hamcrest.object.HasToString
-
Constructor, best called from
HasToString.hasToString(String)orHasToString.hasToString(Matcher). - hasValue(Matcher<? super V>) - Static method in class org.hamcrest.collection.IsMapContaining
- hasValue(Matcher<? super V>) - Static method in class org.hamcrest.Matchers
- hasValue(V) - Static method in class org.hamcrest.collection.IsMapContaining
- hasValue(V) - Static method in class org.hamcrest.Matchers
- hasXPath(String) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Nodes that matches when the examined node contains a node at the specifiedxPath, with any content. - hasXPath(String) - Static method in class org.hamcrest.xml.HasXPath
-
Creates a matcher of
Nodes that matches when the examined node contains a node at the specifiedxPath, with any content. - hasXPath(String, NamespaceContext) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Nodes that matches when the examined node contains a node at the specifiedxPathwithin the specified namespace context, with any content. - hasXPath(String, NamespaceContext) - Static method in class org.hamcrest.xml.HasXPath
-
Creates a matcher of
Nodes that matches when the examined node contains a node at the specifiedxPathwithin the specified namespace context, with any content. - hasXPath(String, NamespaceContext, Matcher<String>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Nodes that matches when the examined node has a value at the specifiedxPath, within the specifiednamespaceContext, that satisfies the specifiedvalueMatcher. - hasXPath(String, NamespaceContext, Matcher<String>) - Static method in class org.hamcrest.xml.HasXPath
-
Creates a matcher of
Nodes that matches when the examined node has a value at the specifiedxPath, within the specifiednamespaceContext, that satisfies the specifiedvalueMatcher. - hasXPath(String, Matcher<String>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Nodes that matches when the examined node has a value at the specifiedxPaththat satisfies the specifiedvalueMatcher. - hasXPath(String, Matcher<String>) - Static method in class org.hamcrest.xml.HasXPath
-
Creates a matcher of
Nodes that matches when the examined node has a value at the specifiedxPaththat satisfies the specifiedvalueMatcher. - 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, NamespaceContext, Matcher<String>) - Constructor for class org.hamcrest.xml.HasXPath
-
Constructor, best called from one of the
hasXPathstatic factory methods. - HasXPath(String, Matcher<String>) - Constructor for class org.hamcrest.xml.HasXPath
-
Constructor, best called from one of the
hasXPathstatic factory methods.
I
- 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(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.collection.IsIn
-
Creates a matcher that matches when the examined object is found within the specified array.
- 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 theClass.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 theClass.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 theClass.isInstance(Object)method on that type, passing the the examined object. - 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(Matcher<T>) - Static method in class org.hamcrest.CoreMatchers
-
Decorates another Matcher, retaining its behaviour, but allowing tests to be slightly more expressive.
- 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.core.Is
-
A shortcut to the frequently used
is(equalTo(x)). - is(T) - Static method in class org.hamcrest.CoreMatchers
-
A shortcut to the frequently used
is(equalTo(x)). - is(T) - Static method in class org.hamcrest.Matchers
-
A shortcut to the frequently used
is(equalTo(x)). - 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_DIRECTORY - Static variable in class org.hamcrest.io.FileMatchers
-
Checks if a
Fileis a directory. - IS_FILE - Static variable in class org.hamcrest.io.FileMatchers
-
Checks if a
Fileis a file. - isA(Class<?>) - Static method in class org.hamcrest.core.Is
-
A shortcut to the frequently used
is(instanceOf(SomeClass.class)). - isA(Class<?>) - Static method in class org.hamcrest.Matchers
-
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)). - IsAnything<T> - Class in org.hamcrest.core
-
A matcher that always returns
true. - IsAnything() - Constructor for class org.hamcrest.core.IsAnything
-
Constructor, best called from
IsAnything.anything(). - IsAnything(String) - Constructor for class org.hamcrest.core.IsAnything
-
Constructor, best called from
IsAnything.anything(String). - 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
-
Constructor, best called from
IsArray.array(Matcher[]). - IsArrayContainingInAnyOrder<E> - Class in org.hamcrest.collection
-
Deprecated.As of release 2.1, replaced by
ArrayMatching. - IsArrayContainingInAnyOrder(Collection<Matcher<? super E>>) - Constructor for class org.hamcrest.collection.IsArrayContainingInAnyOrder
-
Deprecated.
- IsArrayContainingInOrder<E> - Class in org.hamcrest.collection
-
Deprecated.As of release 2.1, replaced by
ArrayMatching. - IsArrayContainingInOrder(List<Matcher<? super E>>) - Constructor for class org.hamcrest.collection.IsArrayContainingInOrder
-
Deprecated.Constructor, best called from
IsArrayContainingInOrder.arrayContaining(Object[]),IsArrayContainingInOrder.arrayContaining(Matcher[]), orIsArrayContainingInOrder.arrayContaining(List). - IsArrayWithSize<E> - Class in org.hamcrest.collection
-
Matches if array size satisfies a size matcher.
- IsArrayWithSize(Matcher<? super Integer>) - Constructor for class org.hamcrest.collection.IsArrayWithSize
-
Constructor, best called from
IsArrayWithSize.emptyArray(),IsArrayWithSize.arrayWithSize(int)orIsArrayWithSize.arrayWithSize(Matcher). - 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
-
Constructor, best called from
IsCloseTo.closeTo(double, double). - IsCollectionContaining<T> - Class in org.hamcrest.core
-
Deprecated.As of release 2.1, replaced by
IsIterableContaining. - IsCollectionContaining(Matcher<? super T>) - Constructor for class org.hamcrest.core.IsCollectionContaining
-
Deprecated.Constructor, best called from one of the static factory methods.
- 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
-
Constructor, best called from
IsCollectionWithSize.hasSize(int)orIsCollectionWithSize.hasSize(Matcher). - IsCompatibleType<T> - Class in org.hamcrest.object
-
A matcher of
Classthat matches when the specified baseType is assignable from the examined class. - IsCompatibleType(Class<T>) - Constructor for class org.hamcrest.object.IsCompatibleType
-
Constructor, best called from
IsCompatibleType.typeCompatibleWith(Class). - IsEmptyCollection<E> - Class in org.hamcrest.collection
-
Tests if a collection is empty.
- IsEmptyCollection() - Constructor for class org.hamcrest.collection.IsEmptyCollection
-
Constructor, best called from
IsEmptyCollection.empty()orIsEmptyCollection.emptyCollectionOf(Class). - IsEmptyIterable<E> - Class in org.hamcrest.collection
-
Tests if an iterable is empty.
- IsEmptyIterable() - Constructor for class org.hamcrest.collection.IsEmptyIterable
-
Constructor, best called from
IsEmptyIterable.emptyIterable()orIsEmptyIterable.emptyIterableOf(Class). - isEmptyOrNullString() - Static method in class org.hamcrest.Matchers
-
Deprecated.use is(emptyOrNullString()) instead
- isEmptyOrNullString() - Static method in class org.hamcrest.text.IsEmptyString
-
Deprecated.use is(emptyOrNullString()) instead
- isEmptyString() - Static method in class org.hamcrest.Matchers
-
Deprecated.use is(emptyString()) instead
- isEmptyString() - Static method in class org.hamcrest.text.IsEmptyString
-
Deprecated.use is(emptyString()) instead
- IsEmptyString - Class in org.hamcrest.text
-
Matches empty Strings (and null).
- IsEqual<T> - Class in org.hamcrest.core
-
Is the value equal to another value, as tested by the
Object.equals(java.lang.Object)method. - IsEqual(T) - Constructor for class org.hamcrest.core.IsEqual
-
Constructor, best called from
IsEqual.equalTo(Object)orIsEqual.equalToObject(Object). - IsEqualCompressingWhiteSpace - Class in org.hamcrest.text
-
Tests if a string is equal to another string, compressing any changes in whitespace.
- IsEqualCompressingWhiteSpace(String) - Constructor for class org.hamcrest.text.IsEqualCompressingWhiteSpace
-
Constructor, best called from
IsEqualCompressingWhiteSpace.equalToCompressingWhiteSpace(String). - 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
-
Constructor, best called from
IsEqualIgnoringCase.equalToIgnoringCase(String). - 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
-
Constructor, best called from
IsEventFrom.eventFrom(Object)orIsEventFrom.eventFrom(Class, Object). - isIn(Collection<T>) - Static method in class org.hamcrest.collection.IsIn
-
Deprecated.use is(in(...)) instead
- isIn(Collection<T>) - Static method in class org.hamcrest.Matchers
-
Deprecated.use is(in(...)) instead
- isIn(T[]) - Static method in class org.hamcrest.collection.IsIn
-
Deprecated.use is(in(...)) instead
- isIn(T[]) - Static method in class org.hamcrest.Matchers
-
Deprecated.use is(in(...)) instead
- IsIn<T> - Class in org.hamcrest.collection
-
Tests if a collection contains a matching object.
- IsIn(Collection<T>) - Constructor for class org.hamcrest.collection.IsIn
-
Constructor, best called from
IsIn.in(Collection). - IsIn(T[]) - Constructor for class org.hamcrest.collection.IsIn
-
Constructor, best called from
IsIn.in(Object[]). - 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
- IsIterableContaining<T> - Class in org.hamcrest.core
-
Tests if an iterable contains matching elements.
- IsIterableContaining(Matcher<? super T>) - Constructor for class org.hamcrest.core.IsIterableContaining
-
Constructor, best called from one of the static factory methods.
- IsIterableContainingInAnyOrder<T> - Class in org.hamcrest.collection
-
Tests if an iterable contains matching elements in any order.
- IsIterableContainingInAnyOrder(Collection<Matcher<? super T>>) - Constructor for class org.hamcrest.collection.IsIterableContainingInAnyOrder
-
Constructor, best called from one of the static "
containsInAnyOrder" factory methods. - IsIterableContainingInOrder<E> - Class in org.hamcrest.collection
-
Tests if an iterable contains matching elements in order.
- IsIterableContainingInOrder(List<Matcher<? super E>>) - Constructor for class org.hamcrest.collection.IsIterableContainingInOrder
-
Constructor, best called from one of the static "
contains" factory methods. - IsIterableContainingInRelativeOrder<E> - Class in org.hamcrest.collection
-
Tests if an iterable contains matching elements in relative order.
- IsIterableContainingInRelativeOrder(List<Matcher<? super E>>) - Constructor for class org.hamcrest.collection.IsIterableContainingInRelativeOrder
- IsIterableWithSize<E> - Class in org.hamcrest.collection
-
Matches if iterable size satisfies a size matcher.
- IsIterableWithSize(Matcher<? super Integer>) - Constructor for class org.hamcrest.collection.IsIterableWithSize
-
Constructor, best called from
IsIterableWithSize.iterableWithSize(int)orIsIterableWithSize.iterableWithSize(Matcher). - IsMapContaining<K,
V> - Class in org.hamcrest.collection -
Matches if map keys, values or entries match the value matchers.
- IsMapContaining(Matcher<? super K>, Matcher<? super V>) - Constructor for class org.hamcrest.collection.IsMapContaining
-
Constructor, best called from one of the static factory methods (
hasKey,hasValue, orhasEntry). - 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
-
Constructor, best called from
IsMapWithSize.aMapWithSize(int),IsMapWithSize.aMapWithSize(Matcher), orIsMapWithSize.anEmptyMap(). - 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
-
Constructor, best called from
IsNot.not(Object)orIsNot.not(Matcher). - isNotNull(Object, Description) - Static method in class org.hamcrest.BaseMatcher
-
Useful null-check method.
- IsNull<T> - Class in org.hamcrest.core
-
Is the value null?
- IsNull() - Constructor for class org.hamcrest.core.IsNull
-
Constructor, best called from
IsNull.nullValue(),IsNull.nullValue(Class),IsNull.notNullValue(), orIsNull.notNullValue(Class). - isOneOf(T...) - Static method in class org.hamcrest.collection.IsIn
-
Deprecated.use is(oneOf(...)) instead
- isOneOf(T...) - Static method in class org.hamcrest.Matchers
-
Deprecated.use is(oneOf(...)) instead
- 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
-
Constructor, best called from
IsSame.sameInstance(Object)orIsSame.theInstance(Object). - iterableMatcher - Variable in class org.hamcrest.collection.ArrayAsIterableMatcher
-
The matchers to match iterable against
- iterableWithSize(int) - Static method in class org.hamcrest.collection.IsIterableWithSize
- iterableWithSize(int) - Static method in class org.hamcrest.Matchers
- iterableWithSize(Matcher<? super Integer>) - Static method in class org.hamcrest.collection.IsIterableWithSize
- iterableWithSize(Matcher<? super Integer>) - Static method in class org.hamcrest.Matchers
L
- lessThan(T) - Method in class org.hamcrest.comparator.ComparatorMatcherBuilder
-
Creates a matcher of
Tobject that matches when the examined object is less than the specified value, as reported by theComparatorused to create this builder. - lessThan(T) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Comparableobject that matches when the examined object is less than the specified value, as reported by thecompareTomethod of the examined object. - lessThan(T) - Static method in class org.hamcrest.number.OrderingComparison
-
Creates a matcher of
Comparableobject that matches when the examined object is less than the specified value, as reported by thecompareTomethod of the examined object. - lessThanOrEqualTo(T) - Method in class org.hamcrest.comparator.ComparatorMatcherBuilder
-
Creates a matcher of
Tobject that matches when the examined object is less than or equal to the specified value, as reported by theComparatorused to create this builder. - lessThanOrEqualTo(T) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Comparableobject that matches when the examined object is less than or equal to the specified value, as reported by thecompareTomethod of the examined object. - lessThanOrEqualTo(T) - Static method in class org.hamcrest.number.OrderingComparison
-
Creates a matcher of
Comparableobject that matches when the examined object is less than or equal to the specified value, as reported by thecompareTomethod of the examined object.
M
- matched(T, Description) - Static method in class org.hamcrest.Condition
-
Called by steps when a match occurs
- Matcher<T> - Interface in org.hamcrest
-
A matcher over acceptable values.
- MatcherAssert - Class in org.hamcrest
-
The Hamcrest entrypoint, static methods to check if matchers match a given value.
- matchers - Variable in class org.hamcrest.collection.ArrayAsIterableMatcher
-
The matchers to match items against
- Matchers - Class in org.hamcrest
-
Builder methods for various matchers.
- matches(Object) - Method in class org.hamcrest.collection.IsIn
- matches(Object) - Method in class org.hamcrest.core.AnyOf
- matches(Object) - Method in class org.hamcrest.core.DescribedAs
- matches(Object) - Method in class org.hamcrest.core.Is
- matches(Object) - Method in class org.hamcrest.core.IsAnything
-
Always returns true.
- matches(Object) - Method in class org.hamcrest.core.IsEqual
- matches(Object) - Method in class org.hamcrest.core.IsNot
- matches(Object) - Method in class org.hamcrest.core.IsNull
- matches(Object) - Method in class org.hamcrest.core.IsSame
- matches(Object) - Method in class org.hamcrest.DiagnosingMatcher
- matches(Object) - Method in interface org.hamcrest.Matcher
-
Evaluates the matcher for argument item.
- matches(Object) - Method in class org.hamcrest.TypeSafeDiagnosingMatcher
- matches(Object) - Method in class org.hamcrest.TypeSafeMatcher
-
Methods made final to prevent accidental override.
- matches(Object, boolean) - Method in class org.hamcrest.core.AnyOf
-
Evaluates the argument o against the delegate matchers.
- matches(Object, Description) - Method in class org.hamcrest.beans.SamePropertyValuesAs
- matches(Object, Description) - Method in class org.hamcrest.core.AllOf
- matches(Object, Description) - Method in class org.hamcrest.core.IsInstanceOf
- matches(Object, Description) - Method in class org.hamcrest.DiagnosingMatcher
-
Evaluates the matcher for argument item.
- matchesPattern(String) - Static method in class org.hamcrest.Matchers
- matchesPattern(String) - Static method in class org.hamcrest.text.MatchesPattern
- matchesPattern(Pattern) - Static method in class org.hamcrest.Matchers
- matchesPattern(Pattern) - Static method in class org.hamcrest.text.MatchesPattern
- MatchesPattern - Class in org.hamcrest.text
-
Tests if a string matches a regular expression.
- MatchesPattern(Pattern) - Constructor for class org.hamcrest.text.MatchesPattern
-
Constructor, best called from
MatchesPattern.matchesPattern(String)orMatchesPattern.matchesPattern(Pattern). - matchesRegex(String) - Static method in class org.hamcrest.core.StringRegularExpression
-
Creates a matcher that checks if the examined string matches a specified regex.
- matchesRegex(String) - Static method in class org.hamcrest.Matchers
-
Validate a string with a regex.
- matchesRegex(Pattern) - Static method in class org.hamcrest.core.StringRegularExpression
-
Creates a matcher that checks if the examined string matches a specified
Pattern. - matchesRegex(Pattern) - Static method in class org.hamcrest.Matchers
-
Validate a string with a
Pattern. - matchesSafely(E[]) - Method in class org.hamcrest.collection.ArrayAsIterableMatcher
- matchesSafely(E[]) - Method in class org.hamcrest.collection.IsArrayContainingInAnyOrder
-
Deprecated.
- matchesSafely(E[]) - Method in class org.hamcrest.collection.IsArrayContainingInOrder
-
Deprecated.
- matchesSafely(Class<?>) - Method in class org.hamcrest.object.IsCompatibleType
- matchesSafely(Double) - Method in class org.hamcrest.number.IsCloseTo
- matchesSafely(Double) - Method in class org.hamcrest.number.IsNaN
- matchesSafely(Iterable<? extends E>) - Method in class org.hamcrest.collection.IsEmptyIterable
- matchesSafely(Iterable<? extends E>, Description) - Method in class org.hamcrest.collection.IsIterableContainingInOrder
- matchesSafely(Iterable<? extends E>, Description) - Method in class org.hamcrest.collection.IsIterableContainingInRelativeOrder
- matchesSafely(Iterable<? extends T>, Description) - Method in class org.hamcrest.collection.IsIterableContainingInAnyOrder
- matchesSafely(Iterable<? extends T>, Description) - Method in class org.hamcrest.core.Every
- matchesSafely(Iterable<? super T>, Description) - Method in class org.hamcrest.core.IsCollectionContaining
-
Deprecated.
- matchesSafely(Iterable<? super T>, Description) - Method in class org.hamcrest.core.IsIterableContaining
- matchesSafely(String) - Method in class org.hamcrest.core.SubstringMatcher
- matchesSafely(String) - Method in class org.hamcrest.text.IsBlankString
- matchesSafely(String) - Method in class org.hamcrest.text.IsEmptyString
- matchesSafely(String) - Method in class org.hamcrest.text.IsEqualCompressingWhiteSpace
- matchesSafely(String) - Method in class org.hamcrest.text.IsEqualIgnoringCase
- matchesSafely(String) - Method in class org.hamcrest.text.MatchesPattern
- matchesSafely(String) - Method in class org.hamcrest.text.StringContainsInOrder
- matchesSafely(String, Description) - Method in class org.hamcrest.core.StringRegularExpression
- matchesSafely(BigDecimal) - Method in class org.hamcrest.number.BigDecimalCloseTo
- matchesSafely(Collection<? extends E>) - Method in class org.hamcrest.collection.IsEmptyCollection
- matchesSafely(EventObject, Description) - Method in class org.hamcrest.object.IsEventFrom
- matchesSafely(Map<? extends K, ? extends V>) - Method in class org.hamcrest.collection.IsMapContaining
- matchesSafely(Node, Description) - Method in class org.hamcrest.xml.HasXPath
- matchesSafely(T) - Method in class org.hamcrest.beans.HasProperty
- matchesSafely(T) - Method in class org.hamcrest.TypeSafeMatcher
-
Check if the item matches.
- matchesSafely(T[]) - Method in class org.hamcrest.collection.HasItemInArray
- matchesSafely(T[]) - Method in class org.hamcrest.collection.IsArray
- matchesSafely(T, Description) - Method in class org.hamcrest.beans.HasPropertyWithValue
- matchesSafely(T, Description) - Method in class org.hamcrest.core.CombinableMatcher
- matchesSafely(T, Description) - Method in class org.hamcrest.FeatureMatcher
- matchesSafely(T, Description) - Method in class org.hamcrest.object.HasEqualValues
- matchesSafely(T, Description) - Method in class org.hamcrest.TypeSafeDiagnosingMatcher
-
Subclasses should implement this.
- matching(Matcher<T>) - Method in class org.hamcrest.Condition
-
Applies the matcher as the final step in the sequence
- matching(Matcher<T>, String) - Method in class org.hamcrest.Condition
-
Applies the matcher as the final step in the sequence
N
- NO_ARGUMENTS - Static variable in class org.hamcrest.beans.PropertyUtil
-
Empty object array, used for documenting that we are deliberately passing no arguments to a method.
- NO_NAMESPACE_CONTEXT - Static variable in class org.hamcrest.xml.HasXPath
-
Null
NamespaceContext, used to document deliberate use of no namespace. - NONE - Static variable in interface org.hamcrest.Description
-
A description that consumes input but does nothing, implemented by
Description.NullDescription. - 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(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(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.core.IsNot
-
A shortcut to the frequently used
not(equalTo(x)). - not(T) - Static method in class org.hamcrest.CoreMatchers
-
A shortcut to the frequently used
not(equalTo(x)). - not(T) - Static method in class org.hamcrest.Matchers
-
A shortcut to the frequently used
not(equalTo(x)). - notANumber() - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Doubles that matches when an examined double is not a number. - notANumber() - Static method in class org.hamcrest.number.IsNaN
-
Creates a matcher of
Doubles that matches when an examined double is not a number. - notMatched() - Static method in class org.hamcrest.Condition
-
Called by steps when a mismatch occurs.
- notNullValue() - Static method in class org.hamcrest.core.IsNull
-
A shortcut to the frequently used
not(nullValue()). - notNullValue() - Static method in class org.hamcrest.CoreMatchers
-
A shortcut to the frequently used
not(nullValue()). - 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.core.IsNull
-
A shortcut to the frequently used
not(nullValue(X.class)). - notNullValue(Class<T>) - Static method in class org.hamcrest.CoreMatchers
-
A shortcut to the frequently used
not(nullValue(X.class)). - 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
-
Constructor.
- nullValue() - 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() - 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.core.IsNull
-
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(Class<T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches if examined object is
null.
O
- oneOf(T...) - Static method in class org.hamcrest.collection.IsIn
-
Creates a matcher that matches when the examined object is equal to one of the specified elements.
- oneOf(T...) - Static method in class org.hamcrest.Matchers
-
Creates a matcher that matches when the examined object is equal to one of the specified elements.
- or(Matcher<? super T>) - Method in class org.hamcrest.core.CombinableMatcher
-
Specify the second matcher in a
CombinableMatcherpair. - or(Matcher<? super X>) - Method in class org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher
-
Specify the second matcher in a
CombinableMatcherpair. - OrderingComparison - Class in org.hamcrest.number
-
Static methods for building ordering comparisons.
- org.hamcrest - package org.hamcrest
-
Top level matcher classes and interfaces.
- org.hamcrest.beans - package org.hamcrest.beans
-
Matchers of Java Bean properties and their values.
- org.hamcrest.collection - package org.hamcrest.collection
-
Matchers of arrays and collections.
- org.hamcrest.comparator - package org.hamcrest.comparator
-
Helper classes for building matcher comparators.
- org.hamcrest.core - package org.hamcrest.core
-
Fundamental matchers of objects and values, and composite matchers.
- org.hamcrest.io - package org.hamcrest.io
-
Matchers that perform file comparisons.
- org.hamcrest.number - package org.hamcrest.number
-
Matchers that perform numeric comparisons.
- org.hamcrest.object - package org.hamcrest.object
-
Matchers that inspect objects and classes.
- org.hamcrest.text - package org.hamcrest.text
-
Matchers that perform text comparisons.
- org.hamcrest.xml - package org.hamcrest.xml
-
Matchers of XML documents.
P
- propertyDescriptorsFor(Object, Class<Object>) - Static method in class org.hamcrest.beans.PropertyUtil
-
Returns all the property descriptors for the class associated with the given object
- PropertyUtil - Class in org.hamcrest.beans
-
Utility class with static methods for accessing properties on JavaBean objects.
S
- 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(B, String...) - 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(B, String...) - 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<T> - Class in org.hamcrest.beans
-
A matcher that checks if a given bean has the same property values as an example bean.
- SamePropertyValuesAs(T, List<String>) - Constructor for class org.hamcrest.beans.SamePropertyValuesAs
-
Constructor, best called from
SamePropertyValuesAs.samePropertyValuesAs(Object, String...). - SelfDescribing - Interface in org.hamcrest
-
The ability of an object to describe itself.
- startsWith(String) - Static method in class org.hamcrest.core.StringStartsWith
- startsWith(String) - Static method in class org.hamcrest.CoreMatchers
- startsWith(String) - Static method in class org.hamcrest.Matchers
- startsWithIgnoringCase(String) - Static method in class org.hamcrest.core.StringStartsWith
- startsWithIgnoringCase(String) - Static method in class org.hamcrest.CoreMatchers
- startsWithIgnoringCase(String) - Static method in class org.hamcrest.Matchers
- StringContains - Class in org.hamcrest.core
-
Tests if the argument is a string that contains a specific substring.
- StringContains(boolean, String) - Constructor for class org.hamcrest.core.StringContains
-
Constructor, best used with
StringContains.containsString(String)orStringContains.containsStringIgnoringCase(String). - StringContains(String) - Constructor for class org.hamcrest.core.StringContains
-
Constructor, best used with
StringContains.containsString(String). - stringContainsInOrder(Iterable<String>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Stringthat matches when the examined string contains all of the specified substrings, considering the order of their appearance. - stringContainsInOrder(Iterable<String>) - Static method in class org.hamcrest.text.StringContainsInOrder
-
Creates a matcher of
Stringthat 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
Stringthat 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
Stringthat matches when the examined string contains all of the specified substrings, considering the order of their appearance. - StringContainsInOrder - Class in org.hamcrest.text
-
Tests if a string contains the given substrings in order.
- StringContainsInOrder(Iterable<String>) - Constructor for class org.hamcrest.text.StringContainsInOrder
-
Constructor, best called from
StringContainsInOrder.stringContainsInOrder(Iterable) - StringDescription - Class in org.hamcrest
-
A
Descriptionthat is stored as a string. - StringDescription() - Constructor for class org.hamcrest.StringDescription
-
Creates a new description.
- StringDescription(Appendable) - Constructor for class org.hamcrest.StringDescription
-
Creates a new description using the given appendable.
- StringEndsWith - Class in org.hamcrest.core
-
Tests if the argument is a string that ends with a specific substring.
- StringEndsWith(boolean, String) - Constructor for class org.hamcrest.core.StringEndsWith
-
Constructor, best used with
StringEndsWith.endsWith(String)orStringEndsWith.endsWithIgnoringCase(String). - StringEndsWith(String) - Constructor for class org.hamcrest.core.StringEndsWith
-
Constructor, best used with
StringEndsWith.endsWith(String). - StringRegularExpression - Class in org.hamcrest.core
-
A matcher that checks a string against a regular expression.
- StringRegularExpression(Pattern) - Constructor for class org.hamcrest.core.StringRegularExpression
-
Constructor, best used from
StringRegularExpression.matchesRegex(String). - StringStartsWith - Class in org.hamcrest.core
-
Tests if the argument is a string that starts with a specific substring.
- StringStartsWith(boolean, String) - Constructor for class org.hamcrest.core.StringStartsWith
-
Constructor, best used with
StringStartsWith.startsWith(String)orStringStartsWith.startsWithIgnoringCase(String). - StringStartsWith(String) - Constructor for class org.hamcrest.core.StringStartsWith
-
Constructor, best used with
StringStartsWith.startsWith(String). - stripSpaces(String) - Method in class org.hamcrest.text.IsEqualCompressingWhiteSpace
-
Strips spaces
- substring - Variable in class org.hamcrest.core.SubstringMatcher
-
The substring to match
- SubstringMatcher - Class in org.hamcrest.core
-
Common behaviour for matchers that check substrings.
- SubstringMatcher(String, boolean, String) - Constructor for class org.hamcrest.core.SubstringMatcher
-
Build a
SubstringMatcher.
T
- theInstance(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.
- theInstance(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.
- theInstance(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.
- then(Condition.Step<? super T, U>) - Method in class org.hamcrest.Condition
-
An alias for
Condition.and(Step), which applies the mapping to the current value in the sequence. - toString() - Method in class org.hamcrest.BaseMatcher
- toString() - Method in class org.hamcrest.Description.NullDescription
- toString() - Method in class org.hamcrest.StringDescription
-
Returns the description as a string.
- toString(SelfDescribing) - Static method in class org.hamcrest.StringDescription
-
Return the description of a
SelfDescribingobject as a String. - typeCompatibleWith(Class<T>) - Static method in class org.hamcrest.Matchers
-
Creates a matcher of
Classthat matches when the specified baseType is assignable from the examined class. - typeCompatibleWith(Class<T>) - Static method in class org.hamcrest.object.IsCompatibleType
-
Creates a matcher of
Classthat matches when the specified baseType is assignable from the examined class. - TypeSafeDiagnosingMatcher<T> - Class in org.hamcrest
-
Convenient base class for Matchers that require a non-null value of a specific type and that will report why the received value has been rejected.
- TypeSafeDiagnosingMatcher() - Constructor for class org.hamcrest.TypeSafeDiagnosingMatcher
-
The default constructor for simple sub types
- TypeSafeDiagnosingMatcher(Class<?>) - Constructor for class org.hamcrest.TypeSafeDiagnosingMatcher
-
Use this constructor if the subclass that implements
matchesSafelyis not the class that binds <T> to a type. - TypeSafeDiagnosingMatcher(ReflectiveTypeFinder) - Constructor for class org.hamcrest.TypeSafeDiagnosingMatcher
-
Use this constructor if the subclass that implements
matchesSafelyis not the class that binds <T> to a type. - TypeSafeMatcher<T> - Class in org.hamcrest
-
Convenient base class for Matchers that require a non-null value of a specific type.
- TypeSafeMatcher() - Constructor for class org.hamcrest.TypeSafeMatcher
-
The default constructor for simple sub types
- TypeSafeMatcher(Class<?>) - Constructor for class org.hamcrest.TypeSafeMatcher
-
Use this constructor if the subclass that implements
matchesSafelyis not the class that binds <T> to a type. - TypeSafeMatcher(ReflectiveTypeFinder) - Constructor for class org.hamcrest.TypeSafeMatcher
-
Use this constructor if the subclass that implements
matchesSafelyis not the class that binds <T> to a type.
U
- usingNaturalOrdering() - Static method in class org.hamcrest.comparator.ComparatorMatcherBuilder
-
Creates a matcher factory for matchers of
Comparables.
_
- _dont_implement_Matcher___instead_extend_BaseMatcher_() - Method in class org.hamcrest.BaseMatcher
-
Deprecated.
- _dont_implement_Matcher___instead_extend_BaseMatcher_() - Method in interface org.hamcrest.Matcher
-
Deprecated.to make
All Classes and Interfaces|All Packages
ArrayMatching.arrayContaining(Object[]).