org.picocontainer.tck
Class MockFactory

java.lang.Object
  extended by org.picocontainer.tck.MockFactory

public class MockFactory
extends Object


Constructor Summary
MockFactory()
           
 
Method Summary
static org.jmock.Mockery mockeryWithCountingNamingScheme()
          Returns a Mockery instance with a counting naming scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockFactory

public MockFactory()
Method Detail

mockeryWithCountingNamingScheme

public static org.jmock.Mockery mockeryWithCountingNamingScheme()
Returns a Mockery instance with a counting naming scheme. From jMock 2.4, default behaviour does not allow more than one mock with same name. This can be over-restrictive. A workaround is to append a counting integer.

Returns:
A Mockery instance


Copyright © 2003-2010 Codehaus. All Rights Reserved.