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

org.mockito.configuration.DefaultMockitoConfiguration Maven / Gradle / Ivy

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

import org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues;
import org.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 { @Override public Answer getDefaultAnswer() { return new ReturnsEmptyValues(); } /* (non-Javadoc) * @see org.mockito.configuration.IMockitoConfiguration#cleansStackTrace() */ @Override public boolean cleansStackTrace() { return true; } /* (non-Javadoc) * @see org.mockito.configuration.IMockitoConfiguration#enableClassCache() */ @Override public boolean enableClassCache() { return true; } }