/*
* Copyright (c) 2006-2011 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package mockit;
import java.lang.annotation.*;
/**
* Indicates one or more {@linkplain #value() classes} to be mocked or stubbed out.
* <p/>
* <a href="http://jmockit.googlecode.com/svn/trunk/www/tutorial/UsingMocksAndStubs.html">Tutorial</a>
*
* @see MockClass
* @see Mockit#setUpMocks
* @see Mockit#stubOut
*/
@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface UsingMocksAndStubs
{
/**
* A mix of mock and real classes from which the set of methods and constructors to be mocked or
* stubbed out is obtained.
* <p/>
* A mock class is one {@linkplain MockClass annotated as such}.
* It can define mocks and/or stubs for individual methods/constructors in a real class.
* <p/>
* A "real class" is any class not annotated with {@link MockClass} which will have all of its
* methods and constructors, as well static initializers, stubbed out.
*/
Class<?>[] value();
}