public class DefaultValueReturningMockBehavior extends Object implements ValidatableMockBehavior
| Constructor and Description |
|---|
DefaultValueReturningMockBehavior() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertCanExecute(ProxyInvocation proxyInvocation)
Checks whether the mock behavior can be executed for the given invocation.
|
Object |
execute(ProxyInvocation proxyInvocation)
Executes the mock behavior.
|
protected Number |
resolveNumber(Class<?> numberType)
Checking for the default java implementations of Number, this avoids class cast exceptions when using them
|
public void assertCanExecute(ProxyInvocation proxyInvocation) throws UnitilsException
assertCanExecute in interface ValidatableMockBehaviorproxyInvocation - The proxy method invocation, not nullUnitilsExceptionpublic Object execute(ProxyInvocation proxyInvocation)
execute in interface MockBehaviorproxyInvocation - The proxy method invocation, not nullCopyright © 2016. All Rights Reserved.