public class MockInterceptor extends AbstractInterceptor
| コンストラクタと説明 |
|---|
MockInterceptor() |
MockInterceptor(Object value) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Object[] |
getArgs(String methodName) |
Object |
invoke(MethodInvocation invocation) |
boolean |
isInvoked(String methodName) |
void |
setReturnValue(Object returnValue) |
void |
setReturnValue(String methodName,
Object returnValue) |
void |
setThrowable(String methodName,
Throwable throwable) |
void |
setThrowable(Throwable throwable) |
createProxy, getComponentDef, getTargetClasspublic MockInterceptor()
public MockInterceptor(Object value)
value - public void setReturnValue(Object returnValue)
returnValue - public void setReturnValue(String methodName, Object returnValue)
methodName - returnValue - public void setThrowable(Throwable throwable)
throwable - public void setThrowable(String methodName, Throwable throwable)
methodName - throwable - public boolean isInvoked(String methodName)
methodName - public Object invoke(MethodInvocation invocation) throws Throwable
Throwableorg.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation)Copyright © 2015 The DBFlute Project. All rights reserved.