org.spockframework.mock
Class MockInvocation

java.lang.Object
  extended by org.spockframework.mock.MockInvocation
All Implemented Interfaces:
IMockInvocation

public class MockInvocation
extends java.lang.Object
implements IMockInvocation

Author:
Peter Niederwieser

Constructor Summary
MockInvocation(IMockObject mockObject, java.lang.reflect.Method method, java.util.List<java.lang.Object> arguments)
           
 
Method Summary
 java.util.List<java.lang.Object> getArguments()
          The arguments for the invocation.
 java.lang.reflect.Method getMethod()
          The invoked method.
 IMockObject getMockObject()
          The mock object that received the invocation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockInvocation

public MockInvocation(IMockObject mockObject,
                      java.lang.reflect.Method method,
                      java.util.List<java.lang.Object> arguments)
Method Detail

getMockObject

public IMockObject getMockObject()
Description copied from interface: IMockInvocation
The mock object that received the invocation.

Specified by:
getMockObject in interface IMockInvocation

getMethod

public java.lang.reflect.Method getMethod()
Description copied from interface: IMockInvocation
The invoked method.

Specified by:
getMethod in interface IMockInvocation

getArguments

public java.util.List<java.lang.Object> getArguments()
Description copied from interface: IMockInvocation
The arguments for the invocation.

Specified by:
getArguments in interface IMockInvocation

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013. All rights reserved