Package org.axonframework.test.matchers
Class MapStringEntryMatcher
Matcher that will match an Object if that object is a
Map of which all keys-values pairs are equal to pairs
of the expected instance.- Since:
- 3.3.0
- Author:
- BenoƮt Liessens
-
Constructor Summary
ConstructorsConstructorDescriptionMapStringEntryMatcher(Map<String, String> expectedMap) Constructs aMapStringEntryMatcherthat expects the givenexpectedMapto match. -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeTo(org.hamcrest.Description description) Returns The additional entries that were present in theexpectedMapafter matching.Returns The missing entries that were present in theexpectedMapafter matching.protected booleanmatchesSafely(Map<String, String> actualMap) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
MapStringEntryMatcher
Constructs aMapStringEntryMatcherthat expects the givenexpectedMapto match.- Parameters:
expectedMap- The map of strings expected to match.
-
-
Method Details
-
matchesSafely
-
getAdditionalEntries
Returns The additional entries that were present in theexpectedMapafter matching.- Returns:
- The additional entries that were present in the
expectedMapafter matching.
-
getMissingEntries
Returns The missing entries that were present in theexpectedMapafter matching.- Returns:
- The missing entries that were present in the
expectedMapafter matching.
-
describeTo
public void describeTo(org.hamcrest.Description description)
-