org.skife.intercept.mock
Class Mocker

java.lang.Object
  |
  +--org.skife.intercept.mock.Mocker

public class Mocker
extends java.lang.Object


Constructor Summary
Mocker(java.lang.Class iface)
           
Mocker(java.lang.Class[] ifaces)
           
Mocker(java.lang.Object base)
           
 
Method Summary
 void expect(java.lang.String name)
           
 void expect(java.lang.String name, ConstraintMatcher matcher)
           
 void expectAndReturn(java.lang.String name, ConstraintMatcher matcher, boolean ret)
           
 void expectAndReturn(java.lang.String name, ConstraintMatcher matcher, int ret)
           
 void expectAndReturn(java.lang.String name, ConstraintMatcher matcher, java.lang.Object ret)
           
 void expectAndReturn(java.lang.String name, java.lang.Object ret)
           
 java.lang.Object getProxy()
           
 void verify()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mocker

public Mocker(java.lang.Object base)

Mocker

public Mocker(java.lang.Class iface)

Mocker

public Mocker(java.lang.Class[] ifaces)
Method Detail

expect

public void expect(java.lang.String name,
                   ConstraintMatcher matcher)

expect

public void expect(java.lang.String name)

expectAndReturn

public void expectAndReturn(java.lang.String name,
                            java.lang.Object ret)

expectAndReturn

public void expectAndReturn(java.lang.String name,
                            ConstraintMatcher matcher,
                            java.lang.Object ret)

expectAndReturn

public void expectAndReturn(java.lang.String name,
                            ConstraintMatcher matcher,
                            int ret)

expectAndReturn

public void expectAndReturn(java.lang.String name,
                            ConstraintMatcher matcher,
                            boolean ret)

getProxy

public java.lang.Object getProxy()

verify

public void verify()