OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:mockito
(Results
1 - 25
of
656
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/mockito/src/main/java/org/mockito/
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
7
*
Mockito
is a mock library for java - see {@link org.
mockito
.
Mockito
} class for usage.
9
* @see org.
mockito
.
Mockito
11
package org.
mockito
;
ArgumentMatcher.java
2
* Copyright (c) 2016
Mockito
contributors
5
package org.
mockito
;
9
* This API was changed in
Mockito
2.1.0 in an effort to decouple
Mockito
from Hamcrest
21
* {@link
Mockito
#notNull()}. Some times it is better to have a simple test that works than
25
*
Mockito
naturally uses equals() for argument matching.
33
* and passing the implementation to the {@link
Mockito
#argThat} method.
35
* Note that {@link
Mockito
#argThat} demonstrates <b>NullPointerException</b> auto-unboxing caveat.
38
* {@link org.
mockito
.hamcrest.MockitoHamcrest#argThat(org.hamcrest.Matcher)}
40
* Note that {@link org.
mockito
.hamcrest.MockitoHamcrest#argThat(org.hamcrest.Matcher)} demonstrates <b>NullPointerException</b> a (…)
[
all
...]
Captor.java
2
* Copyright (c) 2007
Mockito
contributors
5
package org.
mockito
;
10
* Allows shorthand {@link org.
mockito
.ArgumentCaptor} creation on fields.
CheckReturnValue.java
2
* Copyright (c) 2017
Mockito
contributors
5
package org.
mockito
;
14
* This annotation is not supposed to be used by
Mockito
end-users. Instead, we
16
* These tools can check whether the return value of our
Mockito
methods are actually
17
* used. As such,
Mockito
State Validation can be performed at compile-time rather than run-time.
Incubating.java
2
* Copyright (c) 2007
Mockito
contributors
6
package org.
mockito
;
InjectMocks.java
2
* Copyright (c) 2007
Mockito
contributors
5
package org.
mockito
;
11
import org.
mockito
.junit.MockitoJUnitRunner;
24
*
Mockito
will try to inject mocks only either by constructor injection,
26
* If any of the following strategy fail, then
Mockito
<strong>won't report failure</strong>;
31
* with the constructor, then <strong>
Mockito
won't try the other strategies</strong>.
Mockito
has decided to no
41
* annotated fields with the matching properties, otherwise
Mockito
might get confused and injection won't happen.</p>
49
* annotated fields with the matching fields, otherwise
Mockito
might get confused and injection won't happen.</p>
85
* <u>
Mockito
cannot instantiate inner classes, local classes, abstract classes and of course interfaces.</u
[
all
...]
Matchers.java
2
* Copyright (c) 2007
Mockito
contributors
5
package org.
mockito
;
MockitoDebugger.java
2
* Copyright (c) 2007
Mockito
contributors
5
package org.
mockito
;
9
* An instance of {@code MockingDetails} can be retrieved via {@link
Mockito
#mockingDetails(Object)}.
16
* An instance of {@code MockingDetails} can be retrieved via {@link
Mockito
#mockingDetails(Object)}.
NotExtensible.java
2
* Copyright (c) 2017
Mockito
contributors
5
package org.
mockito
;
13
* Helps framework integrators and our users understand how to use
Mockito
API safely,
15
* Some types that are a part of
Mockito
public API are not intended to be extended.
16
* It's because
Mockito
team needs to be able to add new methods to some types without breaking compatibility contract.
19
* Public types are all types that are *not* under "org.
mockito
.internal.*" package.
23
* Many public types from
Mockito
API are not intended for extension, even though they do not have this annotation applied.
Spy.java
2
* Copyright (c) 2007
Mockito
contributors
5
package org.
mockito
;
12
import org.
mockito
.junit.MockitoJUnitRunner;
24
* //Instance for spying is created by
mockito
via reflection (only default constructors supported):
37
* Foo spyOnFoo =
Mockito
.spy(new Foo("argument"));
38
* Bar spyOnBar =
Mockito
.spy(new Bar());
43
* Alternatively, if you don't provide the instance
Mockito
will try to find zero argument constructor (even private)
45
* <u>But
Mockito
cannot instantiate inner classes, local classes, abstract classes and interfaces.</u></strong>
47
* For example this class can be instantiated by
Mockito
:
56
* <li>Sometimes it's impossible or impractical to use {@link
Mockito
#when(Object)} for stubbing spies
[
all
...]
/external/mockito/src/main/java/org/mockito/configuration/
AnnotationEngine.java
2
* Copyright (c) 2007
Mockito
contributors
5
package org.
mockito
.configuration;
7
import org.
mockito
.MockitoAnnotations;
15
* {@link org.
mockito
.configuration.IMockitoConfiguration}, however this mechanism is being superseded by the new
16
* {@link org.
mockito
.plugins plugin} system.
19
* Note that if it exists on the classpath both a class <code>org.
mockito
.configuration.MockitoConfiguration</code>
20
* and a file <code>
mockito
-extensions/org.
mockito
.plugins.AnnotationEngine</code> then the implementation of
21
* <code>org.
mockito
.configuration.MockitoConfiguration</code> will be chosen instead of the one in the file.
23
* @deprecated Please use {@link org.
mockito
.plugins.AnnotationEngine} instead
[
all
...]
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
7
*
Mockito
configuration utilities.
9
package org.
mockito
.configuration;
/external/mockito/src/main/java/org/mockito/exceptions/base/
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
9
package org.
mockito
.exceptions.base;
/external/mockito/src/main/java/org/mockito/exceptions/misusing/
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
7
* Exceptions thrown when
Mockito
is misused.
9
package org.
mockito
.exceptions.misusing;
/external/mockito/src/main/java/org/mockito/exceptions/
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
7
*
Mockito
exceptions utilities
9
package org.
mockito
.exceptions;
/external/mockito/src/main/java/org/mockito/exceptions/stacktrace/
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
9
package org.
mockito
.exceptions.stacktrace;
/external/mockito/src/main/java/org/mockito/exceptions/verification/
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
9
package org.
mockito
.exceptions.verification;
/external/mockito/src/main/java/org/mockito/hamcrest/
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
7
*
Mockito
Hamcrest matcher integration.
9
package org.
mockito
.hamcrest;
/external/mockito/src/main/java/org/mockito/internal/
InternalMockHandler.java
2
* Copyright (c) 2007
Mockito
contributors
5
package org.
mockito
.internal;
7
import org.
mockito
.invocation.MockHandler;
12
* This class was changed in
Mockito
in order to tidy up
Mockito
API
13
* and make it easier for other frameworks to integrate with
Mockito
.
14
* Since this class is internal, e.g. it resides in "org.
mockito
.internal" package,
15
*
Mockito
team can change it without the need for major version release of
Mockito
.
17
* This interface was deprecated in
Mockito
2.10.0 and will be deleted in Mockito 3.0
[
all
...]
/external/mockito/src/main/java/org/mockito/internal/configuration/
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
7
*
Mockito
configuration.
9
package org.
mockito
.internal.configuration;
/external/mockito/src/main/java/org/mockito/internal/creation/
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
9
package org.
mockito
.internal.creation;
/external/mockito/src/main/java/org/mockito/internal/debugging/
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
9
package org.
mockito
.internal.debugging;
/external/mockito/src/main/java/org/mockito/internal/invocation/
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
9
package org.
mockito
.internal.invocation;
/external/mockito/src/main/java/org/mockito/internal/junit/
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
9
package org.
mockito
.internal.junit;
/external/mockito/src/main/java/org/mockito/internal/matchers/
package-info.java
2
* Copyright (c) 2007
Mockito
contributors
9
package org.
mockito
.internal.matchers;
Completed in 1165 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>