• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2007 Mockito contributors
3  * This program is made available under the terms of the MIT License.
4  */
5 package org.mockito.configuration;
6 
7 import org.mockito.internal.configuration.InjectingAnnotationEngine;
8 import org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues;
9 import org.mockito.stubbing.Answer;
10 
11 /**
12  * DefaultConfiguration of Mockito framework
13  * <p>
14  * Currently it doesn't have many configuration options but it will probably change if future.
15  * <p>
16  * See javadocs for {@link IMockitoConfiguration} on info how to configure Mockito
17  */
18 public class DefaultMockitoConfiguration implements IMockitoConfiguration {
19 
getDefaultAnswer()20     public Answer<Object> getDefaultAnswer() {
21         return new ReturnsEmptyValues();
22     }
23 
24     /* (non-Javadoc)
25      * @see org.mockito.IMockitoConfiguration#getAnnotationEngine()
26      */
getAnnotationEngine()27     public AnnotationEngine getAnnotationEngine() {
28         return new InjectingAnnotationEngine();
29     }
30 
31     /* (non-Javadoc)
32      * @see org.mockito.configuration.IMockitoConfiguration#cleansStackTrace()
33      */
cleansStackTrace()34     public boolean cleansStackTrace() {
35         return true;
36     }
37 
38     /* (non-Javadoc)
39      * @see org.mockito.configuration.IMockitoConfiguration#enableClassCache()
40      */
enableClassCache()41     public boolean enableClassCache() {
42         return true;
43     }
44 
45 
46 }
47