public class ExactClassMatcher<T>
extends org.hamcrest.TypeSafeMatcher<T>
Constructor and Description |
---|
ExactClassMatcher(Class<T> expectedClass)
|
Modifier and Type | Method and Description |
---|---|
void |
describeTo(org.hamcrest.Description description) |
static <T> org.hamcrest.Matcher<T> |
exactClassOf(Class<T> expectedClass)
|
protected boolean |
matchesSafely(T item) |
describeMismatch, describeMismatchSafely, matches
public static <T> org.hamcrest.Matcher<T> exactClassOf(Class<T> expectedClass)
expectedClass
- The object class to match with during TypeSafeMatcher.matches(Object)
.protected boolean matchesSafely(T item)
matchesSafely
in class org.hamcrest.TypeSafeMatcher<T>
public void describeTo(org.hamcrest.Description description)
Copyright © 2010–2023. All rights reserved.