| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hamcrest.BaseMatcher<List<?>>
org.axonframework.test.matchers.ListMatcher
org.axonframework.test.matchers.ListWithAnyOfMatcher
public class ListWithAnyOfMatcher
A matcher that will match if all the given matchers match against at least one item in a given List.
| Constructor Summary | |
|---|---|
| ListWithAnyOfMatcher(org.hamcrest.Matcher... matchers)Construct a matcher that will return true if any of the given matchersmatches against at least one
 item in a given List. | |
| Method Summary | |
|---|---|
| protected  void | describeCollectionType(org.hamcrest.Description description)Describes the type of collection expected. | 
| protected  String | failedMatcherMessage()The message to append behind a failing matcher. | 
| protected  String | getLastSeparator()The separator to use between the two last events. | 
|  boolean | matchesList(List<?> items)Evaluates the matcher for argument item. | 
| Methods inherited from class org.axonframework.test.matchers.ListMatcher | 
|---|
| describeTo, getMatchers, matches, matchRemainder, reportFailed | 
| Methods inherited from class org.hamcrest.BaseMatcher | 
|---|
| _dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public ListWithAnyOfMatcher(org.hamcrest.Matcher... matchers)
matchers matches against at least one
 item in a given List.
matchers - The matchers that must match against at least one item in the list.| Method Detail | 
|---|
public boolean matchesList(List<?> items)
ListMatcheritem. The item has been verified to be a list, but the exact
 type of contents of a list cannot be verified, due to Erasure of Generic Types.
matchesList in class ListMatcheritems - the object against which the matcher is evaluated.
true if item matches, otherwise false.BaseMatcherprotected void describeCollectionType(org.hamcrest.Description description)
ListMatcher
describeCollectionType in class ListMatcherdescription - the description to append the collection type toprotected String failedMatcherMessage()
ListMatcher
failedMatcherMessage in class ListMatcherprotected String getLastSeparator()
ListMatcher
getLastSeparator in class ListMatcher| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||