org.unitils.easymock.annotation
Annotation Type RegularMock


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface RegularMock

Annotation indicating that a regular EasyMock mock object should be created and set in the annotated field.

Author:
Filip Neven, Tim Ducheyne

Optional Element Summary
 Calls calls
          Determines what to do when unexpected method calls occur.
 InvocationOrder invocationOrder
          Determines whether the order of method calls on the mock object should be checked.
 

invocationOrder

public abstract InvocationOrder invocationOrder
Determines whether the order of method calls on the mock object should be checked.

Returns:
the invocation order setting.
Default:
org.unitils.easymock.util.InvocationOrder.DEFAULT

calls

public abstract Calls calls
Determines what to do when unexpected method calls occur.

Returns:
the calls setting.
Default:
org.unitils.easymock.util.Calls.DEFAULT


Copyright © 2011. All Rights Reserved.