Search in sources :

Example 1 with ReturnDefaultValueAction

use of org.jmock.internal.ReturnDefaultValueAction in project lispflowmapping by opendaylight.

the class BaseExpectations method before.

@Before
public void before() throws Exception {
    context = new Mockery() {

        {
            setImposteriser(ClassImposteriser.INSTANCE);
            // otherwise we get errors on the finalizer thread:
            setThreadingPolicy(synchroniser);
        }
    };
    defaultAction = new ReturnDefaultValueAction(ClassImposteriser.INSTANCE);
}
Also used : ReturnDefaultValueAction(org.jmock.internal.ReturnDefaultValueAction) Mockery(org.jmock.Mockery) Before(org.junit.Before)

Aggregations

Mockery (org.jmock.Mockery)1 ReturnDefaultValueAction (org.jmock.internal.ReturnDefaultValueAction)1 Before (org.junit.Before)1