Return-Path: X-Original-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 748ECD5C2 for ; Tue, 7 Aug 2012 18:40:05 +0000 (UTC) Received: (qmail 9811 invoked by uid 500); 7 Aug 2012 18:39:59 -0000 Delivered-To: apmail-incubator-cloudstack-commits-archive@incubator.apache.org Received: (qmail 9730 invoked by uid 500); 7 Aug 2012 18:39:59 -0000 Mailing-List: contact cloudstack-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-commits@incubator.apache.org Received: (qmail 9440 invoked by uid 99); 7 Aug 2012 18:39:59 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2012 18:39:59 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id EDA141C473; Tue, 7 Aug 2012 18:39:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: alena1108@apache.org To: cloudstack-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [23/61] [abbrv] [partial] Removing tools/mockito directory, per discussion on dev list Message-Id: <20120807183958.EDA141C473@tyr.zones.apache.org> Date: Tue, 7 Aug 2012 18:39:58 +0000 (UTC) http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/64def0ef/tools/mockito/javadoc/org/mockito/class-use/ReturnValues.html ---------------------------------------------------------------------- diff --git a/tools/mockito/javadoc/org/mockito/class-use/ReturnValues.html b/tools/mockito/javadoc/org/mockito/class-use/ReturnValues.html deleted file mode 100644 index 2350a41..0000000 --- a/tools/mockito/javadoc/org/mockito/class-use/ReturnValues.html +++ /dev/null @@ -1,312 +0,0 @@ - - - - - - -Uses of Interface org.mockito.ReturnValues (Mockito API) - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Interface
org.mockito.ReturnValues

-
- - - - - - - - - - - - - - - - - - - - - -
-Packages that use ReturnValues
org.mockitoMockito is a mock library for java - see Mockito class for for usage. 
org.mockito.configurationMockito configuration utilities 
org.mockito.internal.configurationMockito configuration 
org.mockito.internal.stubbing.answersAnswers for stubbed calls 
-  -

- - - - - -
-Uses of ReturnValues in org.mockito
-  -

- - - - - - - - - -
Methods in org.mockito with parameters of type ReturnValues
-static - - - - -
-<T> T
-
Mockito.mock(java.lang.Class<T> classToMock, - ReturnValues returnValues) - -
-          Deprecated. Please use mock(Foo.class, defaultAnswer); -

- See Mockito.mock(Class, Answer) -

- Why it is deprecated? ReturnValues is being replaced by Answer - for better consistency & interoperability of the framework. - Answer interface has been in Mockito for a while and it has the same responsibility as ReturnValues. - There's no point in mainting exactly the same interfaces. -

- Creates mock with a specified strategy for its return values. - It's quite advanced feature and typically you don't need it to write decent tests. - However it can be helpful when working with legacy systems. -

- Obviously return values are used only when you don't stub the method call. - -

-   Foo mock = mock(Foo.class, Mockito.RETURNS_SMART_NULLS);
-   Foo mockTwo = mock(Foo.class, new YourOwnReturnValues()); 
- 
- -

See examples in javadoc for Mockito class

-  -

- - - - - -
-Uses of ReturnValues in org.mockito.configuration
-  -

- - - - - - - - - - - - - -
Methods in org.mockito.configuration that return ReturnValues
- ReturnValuesIMockitoConfiguration.getReturnValues() - -
-          Deprecated. Please use IMockitoConfiguration.getDefaultAnswer() -

- Steps: -

- 1. Leave the implementation of getReturnValues() method empty - it's not going to be used anyway. -

- 2. Implement getDefaultAnswer() instead. -

- In rare cases your code might not compile with recent deprecation & changes. - Very sorry for inconvenience but it had to be done in order to keep framework consistent. -

- See javadoc ReturnValues for info why this method was deprecated -

- Allows configuring the default return values of unstubbed invocations -

- See javadoc for IMockitoConfiguration

- ReturnValuesDefaultMockitoConfiguration.getReturnValues() - -
-          Deprecated. 
-  -

- - - - - -
-Uses of ReturnValues in org.mockito.internal.configuration
-  -

- - - - - - - - - -
Methods in org.mockito.internal.configuration that return ReturnValues
- ReturnValuesGlobalConfiguration.getReturnValues() - -
-           
-  -

- - - - - -
-Uses of ReturnValues in org.mockito.internal.stubbing.answers
-  -

- - - - - - - - -
Constructors in org.mockito.internal.stubbing.answers with parameters of type ReturnValues
AnswerReturnValuesAdapter(ReturnValues returnValues) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/64def0ef/tools/mockito/javadoc/org/mockito/class-use/Spy.html ---------------------------------------------------------------------- diff --git a/tools/mockito/javadoc/org/mockito/class-use/Spy.html b/tools/mockito/javadoc/org/mockito/class-use/Spy.html deleted file mode 100644 index d395eb8..0000000 --- a/tools/mockito/javadoc/org/mockito/class-use/Spy.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class org.mockito.Spy (Mockito API) - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
org.mockito.Spy

-
-No usage of org.mockito.Spy -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/64def0ef/tools/mockito/javadoc/org/mockito/configuration/AnnotationEngine.html ---------------------------------------------------------------------- diff --git a/tools/mockito/javadoc/org/mockito/configuration/AnnotationEngine.html b/tools/mockito/javadoc/org/mockito/configuration/AnnotationEngine.html deleted file mode 100644 index 427e977..0000000 --- a/tools/mockito/javadoc/org/mockito/configuration/AnnotationEngine.html +++ /dev/null @@ -1,248 +0,0 @@ - - - - - - -AnnotationEngine (Mockito API) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -org.mockito.configuration -
-Interface AnnotationEngine

-
-
All Known Implementing Classes:
DefaultAnnotationEngine, InjectingAnnotationEngine, SpyAnnotationEngine
-
-
-
-
public interface AnnotationEngine
- - -

-Configures mock creation logic behind @Mock, @Captor and @Spy annotations -

- If you are interested then see implementations or source code of MockitoAnnotations.initMocks(Object) -

- -

-


- -

- - - - - - - - - - - - - - - - -
-Method Summary
- java.lang.ObjectcreateMockFor(java.lang.annotation.Annotation annotation, - java.lang.reflect.Field field) - -
-          Deprecated. Please use AnnotationProcessor 'execute' method instead that is more robust -

- Creates mock, ArgumentCaptor or wraps field instance in spy object. - Only if of correct annotation type.

- voidprocess(java.lang.Class<?> context, - java.lang.Object testClass) - -
-          Allows extending the interface to perform action on specific fields on the test class
-  -

- - - - - - - - -
-Method Detail
- -

-createMockFor

-
-@Deprecated
-java.lang.Object createMockFor(java.lang.annotation.Annotation annotation,
-                                          java.lang.reflect.Field field)
-
-
Deprecated. Please use AnnotationProcessor 'execute' method instead that is more robust -

- Creates mock, ArgumentCaptor or wraps field instance in spy object. - Only if of correct annotation type. -

-

-
Parameters:
annotation -
field -
-
-
-
- -

-process

-
-void process(java.lang.Class<?> context,
-             java.lang.Object testClass)
-
-
Allows extending the interface to perform action on specific fields on the test class -

- See the implementation of this method to figure out what is it for -

-

-
Parameters:
context -
testClass -
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/64def0ef/tools/mockito/javadoc/org/mockito/configuration/DefaultMockitoConfiguration.html ---------------------------------------------------------------------- diff --git a/tools/mockito/javadoc/org/mockito/configuration/DefaultMockitoConfiguration.html b/tools/mockito/javadoc/org/mockito/configuration/DefaultMockitoConfiguration.html deleted file mode 100644 index cf0be14..0000000 --- a/tools/mockito/javadoc/org/mockito/configuration/DefaultMockitoConfiguration.html +++ /dev/null @@ -1,352 +0,0 @@ - - - - - - -DefaultMockitoConfiguration (Mockito API) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -org.mockito.configuration -
-Class DefaultMockitoConfiguration

-
-java.lang.Object
-  extended by org.mockito.configuration.DefaultMockitoConfiguration
-
-
-
All Implemented Interfaces:
IMockitoConfiguration
-
-
-
-
public class DefaultMockitoConfiguration
extends java.lang.Object
implements IMockitoConfiguration
- - -

-DefaultConfiguration of Mockito framework -

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

- See javadocs for IMockitoConfiguration on info how to configure Mockito -

- -

-


- -

- - - - - - - - - - - -
-Constructor Summary
DefaultMockitoConfiguration() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- booleancleansStackTrace() - -
-          This should be turned on unless you're a Mockito developer and you wish - to have verbose (read: messy) stack traces that only few understand (eg: - Mockito developers)
- AnnotationEnginegetAnnotationEngine() - -
-          Configures annotations for mocks
- Answer<java.lang.Object>getDefaultAnswer() - -
-          Allows configuring the default answers of unstubbed invocations
- ReturnValuesgetReturnValues() - -
-          Deprecated. 
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-DefaultMockitoConfiguration

-
-public DefaultMockitoConfiguration()
-
-
- - - - - - - - -
-Method Detail
- -

-getReturnValues

-
-@Deprecated
-public ReturnValues getReturnValues()
-
-
Deprecated.  -

-

-
Specified by:
getReturnValues in interface IMockitoConfiguration
-
-
-
-
-
-
- -

-getDefaultAnswer

-
-public Answer<java.lang.Object> getDefaultAnswer()
-
-
Description copied from interface: IMockitoConfiguration
-
Allows configuring the default answers of unstubbed invocations -

- See javadoc for IMockitoConfiguration -

-

-
Specified by:
getDefaultAnswer in interface IMockitoConfiguration
-
-
-
-
-
-
- -

-getAnnotationEngine

-
-public AnnotationEngine getAnnotationEngine()
-
-
Description copied from interface: IMockitoConfiguration
-
Configures annotations for mocks -

- See javadoc for IMockitoConfiguration -

-

-
Specified by:
getAnnotationEngine in interface IMockitoConfiguration
-
-
-
-
-
-
- -

-cleansStackTrace

-
-public boolean cleansStackTrace()
-
-
Description copied from interface: IMockitoConfiguration
-
This should be turned on unless you're a Mockito developer and you wish - to have verbose (read: messy) stack traces that only few understand (eg: - Mockito developers) -

- See javadoc for IMockitoConfiguration -

-

-
Specified by:
cleansStackTrace in interface IMockitoConfiguration
-
-
- -
Returns:
if Mockito should clean stack traces
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/64def0ef/tools/mockito/javadoc/org/mockito/configuration/IMockitoConfiguration.html ---------------------------------------------------------------------- diff --git a/tools/mockito/javadoc/org/mockito/configuration/IMockitoConfiguration.html b/tools/mockito/javadoc/org/mockito/configuration/IMockitoConfiguration.html deleted file mode 100644 index f814263..0000000 --- a/tools/mockito/javadoc/org/mockito/configuration/IMockitoConfiguration.html +++ /dev/null @@ -1,332 +0,0 @@ - - - - - - -IMockitoConfiguration (Mockito API) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -org.mockito.configuration -
-Interface IMockitoConfiguration

-
-
All Known Implementing Classes:
DefaultMockitoConfiguration, GlobalConfiguration
-
-
-
-
public interface IMockitoConfiguration
- - -

-Use it to configure Mockito. For now there are not many configuration options but it may change in future. -

- In most cases you don't really need to configure Mockito. For example in case of working with legacy code, - when you might want to have different 'mocking style' this interface might be helpful. - A reason of configuring Mockito might be if you disagree with the ReturnsEmptyValues unstubbed mocks return. -

- To configure Mockito create exactly org.mockito.configuration.MockitoConfiguration class that implements this interface. -

- Configuring Mockito is completely optional - nothing happens if there isn't any org.mockito.configuration.MockitoConfiguration on the classpath. -

- org.mockito.configuration.MockitoConfiguration must implement IMockitoConfiguration or extend DefaultMockitoConfiguration -

- Mockito will store single instance of org.mockito.configuration.MockitoConfiguration per thread (using ThreadLocal). - For sanity of your tests, don't make the implementation stateful. -

- If you have comments on Mockito configuration feature don't hesitate to write to mockito@googlegroups.com -

- -

-


- -

- - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- booleancleansStackTrace() - -
-          This should be turned on unless you're a Mockito developer and you wish - to have verbose (read: messy) stack traces that only few understand (eg: - Mockito developers)
- AnnotationEnginegetAnnotationEngine() - -
-          Configures annotations for mocks
- Answer<java.lang.Object>getDefaultAnswer() - -
-          Allows configuring the default answers of unstubbed invocations
- ReturnValuesgetReturnValues() - -
-          Deprecated. Please use getDefaultAnswer() -

- Steps: -

- 1. Leave the implementation of getReturnValues() method empty - it's not going to be used anyway. -

- 2. Implement getDefaultAnswer() instead. -

- In rare cases your code might not compile with recent deprecation & changes. - Very sorry for inconvenience but it had to be done in order to keep framework consistent. -

- See javadoc ReturnValues for info why this method was deprecated -

- Allows configuring the default return values of unstubbed invocations -

- See javadoc for IMockitoConfiguration

-  -

- - - - - - - - -
-Method Detail
- -

-getReturnValues

-
-@Deprecated
-ReturnValues getReturnValues()
-
-
Deprecated. Please use getDefaultAnswer() -

- Steps: -

- 1. Leave the implementation of getReturnValues() method empty - it's not going to be used anyway. -

- 2. Implement getDefaultAnswer() instead. -

- In rare cases your code might not compile with recent deprecation & changes. - Very sorry for inconvenience but it had to be done in order to keep framework consistent. -

- See javadoc ReturnValues for info why this method was deprecated -

- Allows configuring the default return values of unstubbed invocations -

- See javadoc for IMockitoConfiguration -

-

-
-
-
-
- -

-getDefaultAnswer

-
-Answer<java.lang.Object> getDefaultAnswer()
-
-
Allows configuring the default answers of unstubbed invocations -

- See javadoc for IMockitoConfiguration -

-

-
-
-
-
- -

-getAnnotationEngine

-
-AnnotationEngine getAnnotationEngine()
-
-
Configures annotations for mocks -

- See javadoc for IMockitoConfiguration -

-

-
-
-
-
- -

-cleansStackTrace

-
-boolean cleansStackTrace()
-
-
This should be turned on unless you're a Mockito developer and you wish - to have verbose (read: messy) stack traces that only few understand (eg: - Mockito developers) -

- See javadoc for IMockitoConfiguration -

-

- -
Returns:
if Mockito should clean stack traces
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/64def0ef/tools/mockito/javadoc/org/mockito/configuration/class-use/AnnotationEngine.html ---------------------------------------------------------------------- diff --git a/tools/mockito/javadoc/org/mockito/configuration/class-use/AnnotationEngine.html b/tools/mockito/javadoc/org/mockito/configuration/class-use/AnnotationEngine.html deleted file mode 100644 index 8d2c054..0000000 --- a/tools/mockito/javadoc/org/mockito/configuration/class-use/AnnotationEngine.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - - -Uses of Interface org.mockito.configuration.AnnotationEngine (Mockito API) - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Interface
org.mockito.configuration.AnnotationEngine

-
- - - - - - - - - - - - - -
-Packages that use AnnotationEngine
org.mockito.configurationMockito configuration utilities 
org.mockito.internal.configurationMockito configuration 
-  -

- - - - - -
-Uses of AnnotationEngine in org.mockito.configuration
-  -

- - - - - - - - - - - - - -
Methods in org.mockito.configuration that return AnnotationEngine
- AnnotationEngineIMockitoConfiguration.getAnnotationEngine() - -
-          Configures annotations for mocks
- AnnotationEngineDefaultMockitoConfiguration.getAnnotationEngine() - -
-           
-  -

- - - - - -
-Uses of AnnotationEngine in org.mockito.internal.configuration
-  -

- - - - - - - - - - - - - - - - - -
Classes in org.mockito.internal.configuration that implement AnnotationEngine
- classDefaultAnnotationEngine - -
-          Initializes fields annotated with @Mock or @Captor.
- classInjectingAnnotationEngine - -
-          See MockitoAnnotations
- classSpyAnnotationEngine - -
-           
-  -

- - - - - - - - - -
Methods in org.mockito.internal.configuration that return AnnotationEngine
- AnnotationEngineGlobalConfiguration.getAnnotationEngine() - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/64def0ef/tools/mockito/javadoc/org/mockito/configuration/class-use/DefaultMockitoConfiguration.html ---------------------------------------------------------------------- diff --git a/tools/mockito/javadoc/org/mockito/configuration/class-use/DefaultMockitoConfiguration.html b/tools/mockito/javadoc/org/mockito/configuration/class-use/DefaultMockitoConfiguration.html deleted file mode 100644 index 3e6d381..0000000 --- a/tools/mockito/javadoc/org/mockito/configuration/class-use/DefaultMockitoConfiguration.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -Uses of Class org.mockito.configuration.DefaultMockitoConfiguration (Mockito API) - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
org.mockito.configuration.DefaultMockitoConfiguration

-
-No usage of org.mockito.configuration.DefaultMockitoConfiguration -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - -