All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fitbur.mockito.configuration.DefaultMockitoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
/*
 * Copyright (c) 2007 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */
package com.fitbur.mockito.configuration;

import com.fitbur.mockito.internal.configuration.InjectingAnnotationEngine;
import com.fitbur.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues;
import com.fitbur.mockito.stubbing.Answer;

/**
 * DefaultConfiguration of Mockito framework
 * 

* Currently it doesn't have many configuration options but it will probably change if future. *

* See javadocs for {@link IMockitoConfiguration} on info how to configure Mockito */ public class DefaultMockitoConfiguration implements IMockitoConfiguration { public Answer getDefaultAnswer() { return new ReturnsEmptyValues(); } /* (non-Javadoc) * @see com.fitbur.mockito.IMockitoConfiguration#getAnnotationEngine() */ public AnnotationEngine getAnnotationEngine() { return new InjectingAnnotationEngine(); } /* (non-Javadoc) * @see com.fitbur.mockito.configuration.IMockitoConfiguration#cleansStackTrace() */ public boolean cleansStackTrace() { return true; } /* (non-Javadoc) * @see com.fitbur.mockito.configuration.IMockitoConfiguration#enableClassCache() */ public boolean enableClassCache() { return true; } }