public final class MockitoUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <S,T extends S> |
argThat(org.hamcrest.Matcher<S> matcher)
Creates a Mockito argument similar to
Matchers.argThat(org.hamcrest.Matcher) but
works with Hamcrest 1.3 |
static <S,T extends S> |
captorFor(Class<S> clazz)
Creates a Mockito argument captor that can capture parameterized classes.
|
public static <S,T extends S> T argThat(org.hamcrest.Matcher<S> matcher)
Matchers.argThat(org.hamcrest.Matcher) but
works with Hamcrest 1.3T - matcher - public static <S,T extends S> org.mockito.ArgumentCaptor<T> captorFor(Class<S> clazz)
S - T - clazz - Copyright © 2013 Nitor Creations. All Rights Reserved.