Package org.axonframework.test.matchers
Class ExactClassMatcher<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<T>
org.axonframework.test.matchers.ExactClassMatcher<T>
- All Implemented Interfaces:
org.hamcrest.Matcher<T>,org.hamcrest.SelfDescribing
public class ExactClassMatcher<T>
extends org.hamcrest.TypeSafeMatcher<T>
Matcher testing for exact classes.
- Since:
- 4.6.2
- Author:
- Yoann CAPLAIN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeTo(org.hamcrest.Description description) static <T> org.hamcrest.Matcher<T> exactClassOf(Class<T> expectedClass) protected booleanmatchesSafely(T item) 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
-
ExactClassMatcher
- Parameters:
expectedClass- The object class to match with duringTypeSafeMatcher.matches(Object).
-
-
Method Details
-
exactClassOf
- Parameters:
expectedClass- The object class to match with duringTypeSafeMatcher.matches(Object).- Returns:
- a matcher that matches based on the class
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<T>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-