org.spockframework.mock
Class MockController

java.lang.Object
  extended by org.spockframework.mock.MockController
All Implemented Interfaces:
IInvocationDispatcher

public class MockController
extends java.lang.Object
implements IInvocationDispatcher

Author:
Peter Niederwieser

Field Summary
static java.lang.String ADD_BARRIER
           
static java.lang.String ADD_INTERACTION
           
static java.lang.String ENTER_SCOPE
           
static java.lang.String LEAVE_SCOPE
           
 
Constructor Summary
MockController(IMockFactory factory)
           
 
Method Summary
 void addBarrier()
           
 void addInteraction(IMockInteraction interaction)
           
 java.lang.Object create(java.lang.String mockName, java.lang.Class<?> mockType)
           
 java.lang.Object dispatch(IMockInvocation invocation)
           
 void enterScope()
           
 void leaveScope()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD_INTERACTION

public static final java.lang.String ADD_INTERACTION
See Also:
Constant Field Values

ADD_BARRIER

public static final java.lang.String ADD_BARRIER
See Also:
Constant Field Values

ENTER_SCOPE

public static final java.lang.String ENTER_SCOPE
See Also:
Constant Field Values

LEAVE_SCOPE

public static final java.lang.String LEAVE_SCOPE
See Also:
Constant Field Values
Constructor Detail

MockController

public MockController(IMockFactory factory)
Method Detail

dispatch

public java.lang.Object dispatch(IMockInvocation invocation)
Specified by:
dispatch in interface IInvocationDispatcher

addInteraction

public void addInteraction(IMockInteraction interaction)

addBarrier

public void addBarrier()

enterScope

public void enterScope()

leaveScope

public void leaveScope()

create

public java.lang.Object create(java.lang.String mockName,
                               java.lang.Class<?> mockType)


Copyright © 2013. All rights reserved