se.mockachino
Class MockSettings

java.lang.Object
  extended by se.mockachino.MockSettings

public class MockSettings
extends java.lang.Object


Constructor Summary
MockSettings()
           
 
Method Summary
 MockSettings add(java.lang.Class<?>... interfaces)
          Lets the mock implement additional interfaces.
 MockSettings fallback(CallHandler fallback)
          Sets the fallback handler.
 java.util.Set<java.lang.Class<?>> getExtraInterfaces()
           
 CallHandler getFallback()
           
 java.lang.String getName()
           
 boolean isQuick()
           
 MockSettings name(java.lang.String name)
          Sets the name of the mock
 MockSettings notQuick()
          Sets the mock to not be quick.
 MockSettings quick()
          Sets the mock to be quick.
 MockSettings spyOn(java.lang.Object impl)
          Sets the fallback handler to be a spy of impl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockSettings

public MockSettings()
Method Detail

spyOn

public MockSettings spyOn(java.lang.Object impl)
Sets the fallback handler to be a spy of impl

Parameters:
impl -
Returns:
the same mocksettings object

fallback

public MockSettings fallback(CallHandler fallback)
Sets the fallback handler.

Parameters:
fallback -
Returns:
the same mocksettings object

name

public MockSettings name(java.lang.String name)
Sets the name of the mock

Parameters:
name -
Returns:
the same mocksettings object

quick

public MockSettings quick()
Sets the mock to be quick.

A quick mock simply does not record the stacktrace of calls made.

Returns:
the same mocksettings object

notQuick

public MockSettings notQuick()
Sets the mock to not be quick.

A quick mock simply does not record the stacktrace of calls made.

Returns:
the same mocksettings object

add

public MockSettings add(java.lang.Class<?>... interfaces)
Lets the mock implement additional interfaces.

Returns:
the same mocksettings object

getFallback

public CallHandler getFallback()

isQuick

public boolean isQuick()

getName

public java.lang.String getName()

getExtraInterfaces

public java.util.Set<java.lang.Class<?>> getExtraInterfaces()