org.spockframework.mock
Class DefaultMockFactory

java.lang.Object
  extended by org.spockframework.mock.DefaultMockFactory
All Implemented Interfaces:
IMockFactory

public class DefaultMockFactory
extends java.lang.Object
implements IMockFactory

Some implementation details of this class are stolen from Spring, EasyMock Class Extensions, and this thread: http://www.nabble.com/Callbacks%2C-classes-and-instances-to4092596.html

Author:
Peter Niederwieser

Field Summary
static DefaultMockFactory INSTANCE
           
static java.lang.String INSTANCE_FIELD
           
 
Constructor Summary
DefaultMockFactory()
           
 
Method Summary
 java.lang.Object create(java.lang.String mockName, java.lang.Class<?> mockType, IInvocationDispatcher dispatcher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE_FIELD

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

INSTANCE

public static final DefaultMockFactory INSTANCE
Constructor Detail

DefaultMockFactory

public DefaultMockFactory()
Method Detail

create

public java.lang.Object create(java.lang.String mockName,
                               java.lang.Class<?> mockType,
                               IInvocationDispatcher dispatcher)
Specified by:
create in interface IMockFactory


Copyright © 2013. All rights reserved