OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:mockingProgress
(Results
1 - 3
of
3
) sorted by null
/external/mockito/src/test/java/org/mockito/internal/progress/
MockingProgressImplTest.java
19
private
MockingProgress
mockingProgress
;
23
mockingProgress
= new MockingProgressImpl();
28
assertNull(
mockingProgress
.pullVerificationMode());
32
mockingProgress
.verificationStarted(mode);
34
assertSame(mode,
mockingProgress
.pullVerificationMode());
36
assertNull(
mockingProgress
.pullVerificationMode());
41
mockingProgress
.verificationStarted(VerificationModeFactory.atLeastOnce());
43
mockingProgress
.verificationStarted(VerificationModeFactory.atLeastOnce());
51
mockingProgress
.addListener(null)
[
all
...]
/external/mockito/src/main/java/org/mockito/internal/progress/
ThreadSafeMockingProgress.java
8
* Provides access to the {@link
MockingProgress
} of a corresponding {@link Thread}. Every {@link Thread} in Mockito has it s own {@link
MockingProgress
} to avoid data races while stubbing.
12
private static final ThreadLocal<
MockingProgress
> MOCKING_PROGRESS_PROVIDER = new ThreadLocal<
MockingProgress
>() {
14
protected
MockingProgress
initialValue() {
23
* Returns the {@link
MockingProgress
} for the current Thread.
25
* <b>IMPORTANT</b>: Never assign and access the returned {@link
MockingProgress
} to an instance or static field. Thread safety can not be guaranteed in this case, cause the Thread that wrote the field might not be the same that read it. In other words multiple threads will access the same {@link
MockingProgress
}.
29
public final static
MockingProgress
mockingProgress
() {
[
all
...]
/external/mockito/src/main/java/org/mockito/internal/
MockitoCore.java
14
import org.mockito.internal.progress.
MockingProgress
;
48
import static org.mockito.internal.progress.ThreadSafeMockingProgress.
mockingProgress
;
70
mockingProgress
().mockingStarted(mock, creationSettings);
75
MockingProgress
mockingProgress
=
mockingProgress
();
76
mockingProgress
.stubbingStarted();
78
OngoingStubbing<T> stubbing = (OngoingStubbing<T>)
mockingProgress
.pullOngoingStubbing();
80
mockingProgress
.reset();
101
MockingProgress
mockingProgress = mockingProgress()
[
all
...]
Completed in 743 milliseconds