Home
last modified time | relevance | path

Searched refs:mockitoSession (Results 1 – 13 of 13) sorted by relevance

/external/dexmaker/dexmaker-mockito-inline-extended-tests/src/main/java/com/android/dx/mockito/inline/extended/tests/
DMockStatic.java25 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mockitoSession;
96 MockitoSession session = mockitoSession().spyStatic(Settings.Global.class).startMocking(); in spyStatic()
122 MockitoSession session = mockitoSession().spyStatic(NoDefaultConstructorClass.class) in spyStaticOnObjectWithNoDefaultConstructor()
140 MockitoSession session = mockitoSession().mockStatic(Settings.Global.class).startMocking(); in mockStatic()
160 MockitoSession session = mockitoSession().mockStatic(SubClass.class).startMocking(); in mockOverriddenStaticMethod()
191 MockitoSession session = mockitoSession().mockStatic(SuperClass.class).startMocking(); in mockSuperMethod()
227 MockitoSession session = mockitoSession().mockStatic(SuperClass.class).startMocking(); in resetMock()
243 MockitoSession session = mockitoSession().spyStatic(SuperClass.class).startMocking(); in resetSpy()
262 MockitoSession session = mockitoSession().mockStatic(SuperClass.class).startMocking(); in staticMockingIsSeparateFromNonStaticMocking()
292 MockitoSession session = mockitoSession().mockStatic(SuperClass.class) in mockWithTwoClasses()
[all …]
DVerifyStatic.java29 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mockitoSession;
44 MockitoSession session = mockitoSession().mockStatic(EchoClass.class).startMocking(); in verifyMockedStringMethod()
60 MockitoSession session = mockitoSession().mockStatic(ConsumeClass.class).startMocking(); in verifyMockedVoidMethod()
75 MockitoSession session = mockitoSession().mockStatic(EchoClass.class) in verifyWithTwoMocks()
96 MockitoSession session = mockitoSession().spyStatic(EchoClass.class).startMocking(); in verifySpiedStringMethod()
112 MockitoSession session = mockitoSession().mockStatic(EchoClass.class).mockStatic in verifyInOrder()
144 MockitoSession session = mockitoSession().mockStatic(EchoClass.class).startMocking(); in verifyBadOrder()
159 MockitoSession session = mockitoSession().mockStatic(EchoClass.class).startMocking(); in verifyBadMatcher()
180 MockitoSession session = mockitoSession().mockStatic(EchoClass.class).startMocking(); in zeroInvocationsThrowsIfThereWasAnInvocation()
192 MockitoSession session = mockitoSession().spyStatic(EchoClass.class).startMocking(); in verifyWithIgnoreStubs()
DStaticMockitoSession.java29 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mockitoSession;
38 MockitoSession session = mockitoSession().spyStatic(Settings.Global.class).startMocking(); in strictUnnecessaryStubbing()
55 MockitoSession session = mockitoSession().strictness(Strictness.LENIENT) in lenientUnnecessaryStubbing()
DStress.java24 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mockitoSession;
47 MockitoSession session = mockitoSession().mockStatic(SuperClass.class).startMocking(); in stressFinalStaticMethod()
69 MockitoSession session = mockitoSession().mockStatic(SuperClass.class).startMocking(); in stressStaticMethod()
DMockInstanceUsingExtendedMockito.java28 import static com.android.dx.mockito.inline.extended.ExtendedMockito.mockitoSession;
59 StaticMockitoSession session = mockitoSession().initMocks(this).startMocking(); in useMockitoSession()
/external/mockito/src/test/java/org/mockitousage/session/
DMockitoSessionTest.java105 MockitoSession mockito = Mockito.mockitoSession().startMocking();
120 … MockitoSession mockito = Mockito.mockitoSession().strictness(Strictness.LENIENT).startMocking();
134 MockitoSession mockito = Mockito.mockitoSession().initMocks(this).startMocking();
148 MockitoSession mockito = Mockito.mockitoSession().initMocks(this).startMocking();
163 MockitoSession mockito = Mockito.mockitoSession().initMocks(this).startMocking();
180 MockitoSession mockito = Mockito.mockitoSession().initMocks(this).startMocking();
194 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
213 MockitoSession mockito = Mockito.mockitoSession().initMocks(this).startMocking();
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStrictStubbingEndToEndTest.java83 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
97 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
111 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
151 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
DStrictStubbingTest.java27 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/extended/
DExtendedMockito.java330 public static StaticMockitoSessionBuilder mockitoSession() { in mockitoSession() method in ExtendedMockito
331 return new StaticMockitoSessionBuilder(Mockito.mockitoSession()); in mockitoSession()
/external/mockito/src/main/java/org/mockito/internal/junit/
DJUnitRule.java37 session = Mockito.mockitoSession() in apply()
/external/mockito/src/test/java/org/mockitousage/strictness/
DStrictnessPerMockTest.java41 …mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STUBS).startMockin… in before()
DStrictnessPerStubbingTest.java38 …mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STUBS).startMockin… in before()
/external/mockito/src/main/java/org/mockito/
DMockito.java3003 public static MockitoSessionBuilder mockitoSession() { in mockitoSession() method in Mockito