groovy.mock
Class GroovyMock
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.mock.GroovyMock
- All Implemented Interfaces:
- com.mockobjects.Verifiable, GroovyObject
Deprecated. As of Groovy 1.5 replaced by MockFor (or use an external mocking package)
MockFor
public class GroovyMock
- extends GroovyObjectSupport
- implements com.mockobjects.Verifiable
- Author:
- Joe Walnes, Chris Stevenson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroovyMock
public GroovyMock()
- Deprecated.
invokeMethod
public Object invokeMethod(String name,
Object args)
- Deprecated.
- Description copied from interface:
GroovyObject
- Invokes the given method.
- Specified by:
invokeMethod
in interface GroovyObject
- Overrides:
invokeMethod
in class GroovyObjectSupport
- Parameters:
name
- the name of the method to callargs
- the arguments to use for the method call
- Returns:
- the result of invoking the method
getInstance
public GroovyObject getInstance()
- Deprecated.
newInstance
public static GroovyMock newInstance()
- Deprecated.
verify
public void verify()
- Deprecated.
- Specified by:
verify
in interface com.mockobjects.Verifiable