jDummySourceForge.net Logo

net.sf.jdummy
Class Mockery

java.lang.Object
  extended by net.sf.jdummy.Mockery
Direct Known Subclasses:
DummyValueFactory.CompatibleMockery

public class Mockery
extends java.lang.Object

Factory for all Mock objects. This class will be replaced when jMock-2 is released.

Author:
Constructor Summary
Mockery()
           
 
Method Summary
 DynamicMock asDynamicMock(java.lang.Object o)
           
 Mock asMock(java.lang.Object o)
           
 java.lang.Object mock(java.lang.Class type)
           
 java.lang.Object mock(java.lang.Class type, java.lang.String roleName)
           
protected  java.lang.Object registerProxy(DynamicMock dynamicMock)
           
 void verify()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mockery

public Mockery()
Method Detail

mock

public java.lang.Object mock(java.lang.Class type)

mock

public java.lang.Object mock(java.lang.Class type,
                             java.lang.String roleName)

asMock

public Mock asMock(java.lang.Object o)

asDynamicMock

public DynamicMock asDynamicMock(java.lang.Object o)

registerProxy

protected java.lang.Object registerProxy(DynamicMock dynamicMock)

verify

public void verify()

jDummySourceForge.net Logo

Copyright 2005-2005-2006 Mark G. Mendel. All Rights Reserved.