Home
last modified time | relevance | path

Searched refs:mockito (Results 1 – 25 of 1275) sorted by relevance

12345678910>>...51

/external/mockito/src/main/java/org/mockito/internal/
DMockitoCore.java5 package org.mockito.internal;
7 import org.mockito.InOrder;
8 import org.mockito.MockSettings;
9 import org.mockito.MockingDetails;
10 import org.mockito.exceptions.misusing.NotAMockException;
11 import org.mockito.internal.creation.MockSettingsImpl;
12 import org.mockito.internal.invocation.finder.VerifiableInvocationsFinder;
13 import org.mockito.internal.listeners.VerificationStartedNotifier;
14 import org.mockito.internal.progress.MockingProgress;
15 import org.mockito.internal.stubbing.DefaultLenientStubber;
[all …]
DInOrderImpl.java6 package org.mockito.internal;
8 import org.mockito.InOrder;
9 import org.mockito.exceptions.base.MockitoException;
10 import org.mockito.internal.verification.InOrderContextImpl;
11 import org.mockito.internal.verification.InOrderWrapper;
12 import org.mockito.internal.verification.VerificationModeFactory;
13 import org.mockito.internal.verification.api.InOrderContext;
14 import org.mockito.internal.verification.api.VerificationInOrderMode;
15 import org.mockito.invocation.Invocation;
16 import org.mockito.verification.VerificationMode;
[all …]
/external/mockito/src/main/java/org/mockito/
DMockito.java5 package org.mockito;
7 import org.mockito.exceptions.misusing.PotentialStubbingProblem;
8 import org.mockito.exceptions.misusing.UnnecessaryStubbingException;
9 import org.mockito.internal.InternalMockHandler;
10 import org.mockito.internal.MockitoCore;
11 import org.mockito.internal.creation.MockSettingsImpl;
12 import org.mockito.internal.debugging.MockitoDebuggerImpl;
13 import org.mockito.internal.framework.DefaultMockitoFramework;
14 import org.mockito.internal.session.DefaultMockitoSessionBuilder;
15 import org.mockito.internal.verification.VerificationModeFactory;
[all …]
DMockitoSession.java5 package org.mockito;
7 import org.mockito.exceptions.misusing.PotentialStubbingProblem;
8 import org.mockito.exceptions.misusing.UnfinishedMockingSessionException;
9 import org.mockito.exceptions.misusing.UnnecessaryStubbingException;
10 import org.mockito.junit.MockitoJUnitRunner;
11 import org.mockito.junit.MockitoRule;
12 import org.mockito.listeners.MockitoListener;
13 import org.mockito.quality.MockitoHint;
14 import org.mockito.quality.Strictness;
15 import org.mockito.session.MockitoSessionBuilder;
DAdditionalAnswers.java5 package org.mockito;
9 import org.mockito.internal.stubbing.answers.AnswersWithDelay;
10 import org.mockito.internal.stubbing.answers.ReturnsArgumentAt;
11 import org.mockito.internal.stubbing.answers.ReturnsElementsOf;
12 import org.mockito.internal.stubbing.defaultanswers.ForwardsInvocations;
13 import org.mockito.stubbing.Answer;
14 import org.mockito.stubbing.Answer1;
15 import org.mockito.stubbing.Answer2;
16 import org.mockito.stubbing.Answer3;
17 import org.mockito.stubbing.Answer4;
[all …]
DMockSettings.java5 package org.mockito;
7 import org.mockito.exceptions.misusing.PotentialStubbingProblem;
8 import org.mockito.exceptions.misusing.UnnecessaryStubbingException;
9 import org.mockito.invocation.InvocationFactory;
10 import org.mockito.invocation.MockHandler;
11 import org.mockito.listeners.InvocationListener;
12 import org.mockito.listeners.VerificationStartedListener;
13 import org.mockito.mock.MockCreationSettings;
14 import org.mockito.mock.SerializableMode;
15 import org.mockito.quality.Strictness;
[all …]
/external/mockito/src/test/java/org/mockitousage/session/
DMockitoSessionTest.java11 import org.mockito.Mock;
12 import org.mockito.Mockito;
13 import org.mockito.MockitoSession;
14 import org.mockito.exceptions.misusing.UnfinishedStubbingException;
15 import org.mockito.quality.Strictness;
24 import static org.mockito.Mockito.mockingDetails;
25 import static org.mockito.Mockito.verify;
26 import static org.mockito.Mockito.when;
105 MockitoSession mockito = Mockito.mockitoSession().startMocking(); field in MockitoSessionTest.SessionWithoutAnyConfiguration
108 mockito.finishMocking(); in after()
[all …]
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWarningsTest.java9 import org.mockito.Mock;
10 import org.mockito.MockitoSession;
11 import org.mockito.StateMaster;
12 import org.mockito.exceptions.base.MockitoException;
13 import org.mockito.internal.framework.DefaultMockitoSession;
14 import org.mockito.internal.util.SimpleMockitoLogger;
15 import org.mockito.quality.Strictness;
20 import static org.mockito.BDDMockito.given;
21 import static org.mockito.Mockito.verify;
31 …MockitoSession mockito = new DefaultMockitoSession(singletonList((Object) this), TEST_NAME, Strict… field in StubbingWarningsTest
[all …]
DStrictStubbingTest.java9 import org.mockito.Mock;
10 import org.mockito.Mockito;
11 import org.mockito.MockitoSession;
12 import org.mockito.exceptions.misusing.PotentialStubbingProblem;
13 import org.mockito.exceptions.misusing.UnnecessaryStubbingException;
14 import org.mockito.exceptions.verification.NoInteractionsWanted;
15 import org.mockito.quality.Strictness;
18 import static org.mockito.BDDMockito.given;
19 import static org.mockito.Mockito.verify;
20 import static org.mockito.Mockito.verifyNoMoreInteractions;
[all …]
DStubbingWithAdditionalAnswersTest.java9 import static org.mockito.AdditionalAnswers.answer;
10 import static org.mockito.AdditionalAnswers.answerVoid;
11 import static org.mockito.AdditionalAnswers.returnsArgAt;
12 import static org.mockito.AdditionalAnswers.returnsFirstArg;
13 import static org.mockito.AdditionalAnswers.returnsLastArg;
14 import static org.mockito.AdditionalAnswers.returnsSecondArg;
15 import static org.mockito.AdditionalAnswers.answersWithDelay;
16 import static org.mockito.BDDMockito.any;
17 import static org.mockito.BDDMockito.anyInt;
18 import static org.mockito.BDDMockito.anyString;
[all …]
/external/mockito/src/test/java/org/mockito/internal/handler/
DMockHandlerImplTest.java6 package org.mockito.internal.handler;
9 import org.mockito.exceptions.base.MockitoException;
10 import org.mockito.exceptions.misusing.InvalidUseOfMatchersException;
11 import org.mockito.exceptions.misusing.WrongTypeOfReturnValue;
12 import org.mockito.internal.creation.MockSettingsImpl;
13 import org.mockito.internal.invocation.InvocationBuilder;
14 import org.mockito.internal.invocation.InvocationMatcher;
15 import org.mockito.internal.invocation.MatchersBinder;
16 import org.mockito.internal.progress.ArgumentMatcherStorage;
17 import org.mockito.internal.stubbing.InvocationContainerImpl;
[all …]
DInvocationNotifierHandlerTest.java5 package org.mockito.internal.handler;
10 import org.mockito.Mock;
11 import org.mockito.Spy;
12 import org.mockito.exceptions.base.MockitoException;
13 import org.mockito.internal.creation.MockSettingsImpl;
14 import org.mockito.invocation.Invocation;
15 import org.mockito.junit.MockitoJUnitRunner;
16 import org.mockito.listeners.InvocationListener;
17 import org.mockito.listeners.MethodInvocationReport;
18 import org.mockito.mock.MockCreationSettings;
[all …]
/external/dexmaker/dexmaker-mockito-inline-extended/
DCMakeLists.txt4 ../dexmaker-mockito-inline/external/slicer/bytecode_encoder.cc
5 ../dexmaker-mockito-inline/external/slicer/code_ir.cc
6 ../dexmaker-mockito-inline/external/slicer/common.cc
7 ../dexmaker-mockito-inline/external/slicer/control_flow_graph.cc
8 ../dexmaker-mockito-inline/external/slicer/debuginfo_encoder.cc
9 ../dexmaker-mockito-inline/external/slicer/dex_bytecode.cc
10 ../dexmaker-mockito-inline/external/slicer/dex_format.cc
11 ../dexmaker-mockito-inline/external/slicer/dex_ir_builder.cc
12 ../dexmaker-mockito-inline/external/slicer/dex_ir.cc
13 ../dexmaker-mockito-inline/external/slicer/dex_utf8.cc
[all …]
/external/dexmaker/dexmaker-mockito-inline-tests/
DCMakeLists.txt4 ../dexmaker-mockito-inline/external/slicer/bytecode_encoder.cc
5 ../dexmaker-mockito-inline/external/slicer/code_ir.cc
6 ../dexmaker-mockito-inline/external/slicer/common.cc
7 ../dexmaker-mockito-inline/external/slicer/control_flow_graph.cc
8 ../dexmaker-mockito-inline/external/slicer/debuginfo_encoder.cc
9 ../dexmaker-mockito-inline/external/slicer/dex_bytecode.cc
10 ../dexmaker-mockito-inline/external/slicer/dex_format.cc
11 ../dexmaker-mockito-inline/external/slicer/dex_ir_builder.cc
12 ../dexmaker-mockito-inline/external/slicer/dex_ir.cc
13 ../dexmaker-mockito-inline/external/slicer/dex_utf8.cc
[all …]
/external/mockito/src/main/java/org/mockito/internal/handler/
DMockHandlerImpl.java5 package org.mockito.internal.handler;
7 import org.mockito.internal.creation.settings.CreationSettings;
8 import org.mockito.internal.invocation.InvocationMatcher;
9 import org.mockito.internal.invocation.MatchersBinder;
10 import org.mockito.internal.stubbing.InvocationContainerImpl;
11 import org.mockito.internal.stubbing.OngoingStubbingImpl;
12 import org.mockito.internal.stubbing.StubbedInvocationMatcher;
13 import org.mockito.internal.stubbing.answers.DefaultAnswerValidator;
14 import org.mockito.internal.verification.MockAwareVerificationMode;
15 import org.mockito.internal.verification.VerificationDataImpl;
[all …]
/external/dexmaker/
DAndroid.bp69 srcs: ["dexmaker-mockito/src/main/java/**/*.java"],
70 java_resource_dirs: ["dexmaker-mockito/src/main/resources"],
73 "mockito-api",
81 srcs: ["dexmaker-mockito-inline-dispatcher/src/main/java/**/*.java"],
129 srcs: ["dexmaker-mockito-inline/src/main/jni/**/*.cc"],
138 srcs: ["dexmaker-mockito-inline-extended/src/main/jni/**/*.cc"],
147 srcs: ["dexmaker-mockito-inline-tests/src/main/jni/**/*.cc"],
154 srcs: ["dexmaker-mockito-inline/src/main/java/**/*.java"],
155 java_resource_dirs: ["dexmaker-mockito-inline/src/main/resources"],
158 "mockito-api",
[all …]
/external/mockito/src/test/java/org/concurrentmockito/
DThreadsRunAllTestsHalfManualTest.java11 import org.mockito.MockitoTest;
12 import org.mockito.exceptions.base.MockitoAssertionErrorTest;
13 import org.mockito.exceptions.base.MockitoExceptionTest;
14 import org.mockito.internal.AllInvocationsFinderTest;
15 import org.mockito.internal.InvalidStateDetectionTest;
16 import org.mockito.internal.creation.bytebuddy.TypeCachingMockBytecodeGeneratorTest;
17 import org.mockito.internal.exceptions.ReporterTest;
18 import org.mockito.internal.handler.MockHandlerImplTest;
19 import org.mockito.internal.invocation.InvocationMatcherTest;
20 import org.mockito.internal.invocation.InvocationsFinderTest;
[all …]
/external/mockito/src/test/java/org/mockitousage/strictness/
DStrictnessPerMockTest.java13 import org.mockito.Mock;
14 import org.mockito.Mockito;
15 import org.mockito.MockitoSession;
16 import org.mockito.exceptions.misusing.PotentialStubbingProblem;
17 import org.mockito.exceptions.misusing.UnnecessaryStubbingException;
18 import org.mockito.exceptions.verification.NoInteractionsWanted;
19 import org.mockito.quality.Strictness;
26 import static org.mockito.BDDMockito.given;
27 import static org.mockito.Mockito.mock;
28 import static org.mockito.Mockito.mockingDetails;
[all …]
/external/mockito/src/main/java/org/mockito/internal/verification/checkers/
DNumberOfInvocationsChecker.java6 package org.mockito.internal.verification.checkers;
10 import org.mockito.internal.reporting.Discrepancy;
11 import org.mockito.internal.verification.api.InOrderContext;
12 import org.mockito.invocation.Invocation;
13 import org.mockito.invocation.Location;
14 import org.mockito.invocation.MatchableInvocation;
16 import static org.mockito.internal.exceptions.Reporter.neverWantedButInvoked;
17 import static org.mockito.internal.exceptions.Reporter.tooLittleActualInvocations;
18 import static org.mockito.internal.exceptions.Reporter.tooLittleActualInvocationsInOrder;
19 import static org.mockito.internal.exceptions.Reporter.tooManyActualInvocations;
[all …]
DMissingInvocationChecker.java6 package org.mockito.internal.verification.checkers;
8 import static org.mockito.internal.exceptions.Reporter.argumentsAreDifferent;
9 import static org.mockito.internal.exceptions.Reporter.wantedButNotInvoked;
10 import static org.mockito.internal.exceptions.Reporter.wantedButNotInvokedInOrder;
11 import static org.mockito.internal.invocation.InvocationsFinder.findAllMatchingUnverifiedChunks;
12 import static org.mockito.internal.invocation.InvocationsFinder.findInvocations;
13 import static org.mockito.internal.invocation.InvocationsFinder.findPreviousVerifiedInOrder;
14 import static org.mockito.internal.invocation.InvocationsFinder.findSimilarInvocation;
15 import static org.mockito.internal.verification.argumentmatching.ArgumentMatchingTool.getSuspicious…
19 import org.mockito.internal.reporting.SmartPrinter;
[all …]
DAtLeastXNumberOfInvocationsChecker.java6 package org.mockito.internal.verification.checkers;
9 import org.mockito.internal.verification.api.InOrderContext;
10 import org.mockito.invocation.Invocation;
11 import org.mockito.invocation.Location;
12 import org.mockito.invocation.MatchableInvocation;
14 import static org.mockito.internal.exceptions.Reporter.tooLittleActualInvocations;
15 import static org.mockito.internal.exceptions.Reporter.tooLittleActualInvocationsInOrder;
16 import static org.mockito.internal.invocation.InvocationMarker.markVerified;
17 import static org.mockito.internal.invocation.InvocationMarker.markVerifiedInOrder;
18 import static org.mockito.internal.invocation.InvocationsFinder.findAllMatchingUnverifiedChunks;
[all …]
/external/mockito/
Dbuild.gradle19 exclude 'org/mockito/internal/creation/cglib/**',
20 'org/mockito/internal/creation/jmock/**',
21 'org/mockito/internal/creation/AbstractMockitoMethodProxy.java',
22 'org/mockito/internal/creation/AcrossJVMSerializationFeature.java',
23 'org/mockito/internal/creation/CglibMockMaker.java',
24 'org/mockito/internal/creation/DelegatingMockitoMethodProxy.java',
25 'org/mockito/internal/creation/MethodInterceptorFilter.java',
26 'org/mockito/internal/creation/MockitoMethodProxy.java',
27 'org/mockito/internal/creation/SerializableMockitoMethodProxy.java',
28 'org/mockito/internal/invocation/realmethod/FilteredCGLIBProxyRealMethod.java',
[all …]
/external/mockito/src/test/java/org/mockito/internal/framework/
DDefaultMockitoFrameworkTest.java5 package org.mockito.internal.framework;
9 import org.mockito.ArgumentMatchers;
10 import org.mockito.MockSettings;
11 import org.mockito.StateMaster;
12 import org.mockito.exceptions.misusing.RedundantListenerException;
13 import org.mockito.internal.configuration.plugins.Plugins;
14 import org.mockito.listeners.MockCreationListener;
15 import org.mockito.listeners.MockitoListener;
16 import org.mockito.mock.MockCreationSettings;
17 import org.mockito.plugins.InlineMockMaker;
[all …]
/external/mockito/src/main/java/org/mockito/quality/
DStrictness.java5 package org.mockito.quality;
7 import org.mockito.Incubating;
8 import org.mockito.MockitoSession;
9 import org.mockito.exceptions.misusing.PotentialStubbingProblem;
10 import org.mockito.exceptions.misusing.UnnecessaryStubbingException;
11 import org.mockito.internal.junit.JUnitRule;
12 import org.mockito.junit.MockitoJUnit;
13 import org.mockito.junit.MockitoJUnitRunner;
14 import org.mockito.junit.MockitoRule;
/external/mockito/src/main/java/org/mockito/junit/
DMockitoRule.java5 package org.mockito.junit;
8 import org.mockito.Incubating;
9 import org.mockito.MockSettings;
10 import org.mockito.Mockito;
11 import org.mockito.MockitoAnnotations;
12 import org.mockito.MockitoSession;
13 import org.mockito.quality.MockitoHint;
14 import org.mockito.quality.Strictness;
15 import org.mockito.exceptions.misusing.PotentialStubbingProblem;

12345678910>>...51