groovy.mock
Class GroovyMock

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by 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) groovy.mock.interceptor.MockFor

public class GroovyMock
extends GroovyObjectSupport
implements com.mockobjects.Verifiable

Author:
Joe Walnes, Chris Stevenson

Nested Class Summary
(package private) static interface GroovyMock.I
          Deprecated.  
 
Field Summary
private  com.mockobjects.dynamic.CallFactory callFactory
          Deprecated.  
private  com.mockobjects.dynamic.CallBag calls
          Deprecated.  
private  GroovyObject instance
          Deprecated.  
private  com.mockobjects.dynamic.Mock mock
          Deprecated.  
 
Constructor Summary
GroovyMock()
          Deprecated.  
 
Method Summary
private  java.lang.Object callMethod(java.lang.String name, java.lang.Object args)
          Deprecated.  
private  com.mockobjects.dynamic.ConstraintMatcher createMatcher(java.lang.Object args)
          Deprecated.  
private  void expectMethod(java.lang.String name, java.lang.Object args)
          Deprecated.  
 GroovyObject getInstance()
          Deprecated.  
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
          Deprecated. Invokes the given method.
static GroovyMock newInstance()
          Deprecated.  
 void verify()
          Deprecated.  
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, getProperty, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

calls

private com.mockobjects.dynamic.CallBag calls
Deprecated. 

callFactory

private com.mockobjects.dynamic.CallFactory callFactory
Deprecated. 

mock

private com.mockobjects.dynamic.Mock mock
Deprecated. 

instance

private GroovyObject instance
Deprecated. 
Constructor Detail

GroovyMock

public GroovyMock()
Deprecated. 
Method Detail

invokeMethod

public java.lang.Object invokeMethod(java.lang.String name,
                                     java.lang.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 call
args - 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. 

expectMethod

private void expectMethod(java.lang.String name,
                          java.lang.Object args)
Deprecated. 

createMatcher

private com.mockobjects.dynamic.ConstraintMatcher createMatcher(java.lang.Object args)
Deprecated. 

callMethod

private java.lang.Object callMethod(java.lang.String name,
                                    java.lang.Object args)
Deprecated. 

verify

public void verify()
Deprecated. 
Specified by:
verify in interface com.mockobjects.Verifiable


Copyright © ${year} The Codehaus. All Rights Reserved.