public abstract class AbstractConstructorExpectationSetup<T> extends Object implements ConstructorExpectationSetup<T>
| Modifier and Type | Field and Description |
|---|---|
protected org.powermock.tests.utils.ArrayMerger |
arrayMerger |
protected Class<T> |
mockType |
| Constructor and Description |
|---|
AbstractConstructorExpectationSetup(Class<T> mockType) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<LocalizedMatcherAdapter> |
getMatcherAdapters(List<org.mockito.internal.matchers.LocalizedMatcher> matchers) |
org.mockito.stubbing.OngoingStubbing<T> |
withAnyArguments() |
org.mockito.stubbing.OngoingStubbing<T> |
withArguments(Object firstArgument,
Object... additionalArguments) |
org.mockito.stubbing.OngoingStubbing<T> |
withNoArguments() |
WithExpectedArguments<T> |
withParameterTypes(Class<?> parameterType,
Class<?>... additionalParameterTypes) |
protected abstract List<LocalizedMatcherAdapter> getMatcherAdapters(List<org.mockito.internal.matchers.LocalizedMatcher> matchers)
public org.mockito.stubbing.OngoingStubbing<T> withArguments(Object firstArgument, Object... additionalArguments) throws Exception
withArguments in interface WithExpectedArguments<T>Exceptionpublic org.mockito.stubbing.OngoingStubbing<T> withAnyArguments() throws Exception
withAnyArguments in interface WithAnyArguments<T>Exceptionpublic org.mockito.stubbing.OngoingStubbing<T> withNoArguments() throws Exception
withNoArguments in interface WithoutExpectedArguments<T>Exceptionpublic WithExpectedArguments<T> withParameterTypes(Class<?> parameterType, Class<?>... additionalParameterTypes)
withParameterTypes in interface WithExpectedParameterTypes<T>Copyright © 2007–2016. All rights reserved.