Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2008,  Unitils.org
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.unitils.easymock.annotation;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
Annotation indicating that a lenient mock object (see org.unitils.easymock.util.LenientMocksControl should be created and set intp the annotated field.

Author(s):
Filip Neven
Tim Ducheyne
public @interface Mock {


    
Determines whether the order of method calls on the mock object should be checked.

Returns:
the invocation order setting.
Determines what to do when unexpected method calls occur.

Returns:
the calls setting.
    Calls calls() default .;


    
Determines whether the order of collection elements should be checked.

Returns:
the order setting.
    Order order() default .;


    
Determines whether the actual value of a date argument should be checked.

Returns:
the dates setting.
    Dates dates() default .;


    
Determines whether default values of arguments should be checked.

Returns:
the default arguments setting.
    Defaults defaults() default .;
New to GrepCode? Check out our FAQ X