org.unitils.easymock.annotation
Annotation Type Mock


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

Annotation indicating that a lenient mock object (see LenientMocksControl should be created and set intp the annotated field.

Author:
Filip Neven, Tim Ducheyne

Optional Element Summary
 Calls calls
          Determines what to do when unexpected method calls occur.
 Dates dates
          Determines whether the actual value of a date argument should be checked.
 Defaults defaults
          Determines whether default values of arguments should be checked.
 InvocationOrder invocationOrder
          Determines whether the order of method calls on the mock object should be checked.
 Order order
          Determines whether the order of collection elements 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

order

public abstract Order order
Determines whether the order of collection elements should be checked.

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

dates

public abstract Dates dates
Determines whether the actual value of a date argument should be checked.

Returns:
the dates setting.
Default:
org.unitils.easymock.util.Dates.DEFAULT

defaults

public abstract Defaults defaults
Determines whether default values of arguments should be checked.

Returns:
the default arguments setting.
Default:
org.unitils.easymock.util.Defaults.DEFAULT


Copyright © 2011. All Rights Reserved.