Home
last modified time | relevance | path

Searched refs:stubber (Results 1 – 9 of 9) sorted by relevance

/external/python/pyfakefs/pyfakefs/tests/
Dmox3_stubout_test.py58 self.stubber = mox3_stubout.StubOutForTesting()
64 self.stubber.set(os.path, 'exists', lambda x: True)
67 self.stubber.unset_all()
74 self.stubber.set(datetime, 'date', GroundhogDate)
78 self.stubber.unset_all()
84 self.stubber.set(mox3_stubout_example, 'math', NoPanicMath)
87 self.stubber.unset_all()
91 self.assertRaises(AttributeError, self.stubber.set,
93 self.assertRaises(AttributeError, self.stubber.set,
95 self.assertRaises(AttributeError, self.stubber.set,
[all …]
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DDefaultLenientStubber.java20 return stubber().doThrow(toBeThrown); in doThrow()
25 return stubber().doThrow(toBeThrown); in doThrow()
30 return stubber().doThrow(toBeThrown, nextToBeThrown); in doThrow()
35 return stubber().doAnswer(answer); in doAnswer()
40 return stubber().doNothing(); in doNothing()
45 return stubber().doReturn(toBeReturned); in doReturn()
50 return stubber().doReturn(toBeReturned, nextToBeReturned); in doReturn()
55 return stubber().doCallRealMethod(); in doCallRealMethod()
65 private static Stubber stubber() { in stubber() method in DefaultLenientStubber
66 return MOCKITO_CORE.stubber(Strictness.LENIENT); in stubber()
DStubberImpl.java102 Stubber stubber = doThrow(toBeThrown); in doThrow() local
110 stubber = stubber.doThrow(next); in doThrow()
112 return stubber; in doThrow()
/external/mockito/src/main/java/org/mockito/
DMockito.java2274 return MOCKITO_CORE.stubber().doThrow(toBeThrown); in doThrow()
2297 return MOCKITO_CORE.stubber().doThrow(toBeThrown); in doThrow()
2324 return MOCKITO_CORE.stubber().doThrow(toBeThrown, toBeThrownNext); in doThrow()
2361 return MOCKITO_CORE.stubber().doCallRealMethod(); in doCallRealMethod()
2388 return MOCKITO_CORE.stubber().doAnswer(answer); in doAnswer()
2431 return MOCKITO_CORE.stubber().doNothing(); in doNothing()
2482 return MOCKITO_CORE.stubber().doReturn(toBeReturned); in doReturn()
2537 return MOCKITO_CORE.stubber().doReturn(toBeReturned, toBeReturnedNext); in doReturn()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DForwardingObjectTester.java66 T stubber = doReturn(delegate).when(mock); in testForwardingObject()
67 DELEGATE_METHOD.invoke(stubber); in testForwardingObject()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DForwardingObjectTester.java66 T stubber = doReturn(delegate).when(mock); in testForwardingObject()
67 DELEGATE_METHOD.invoke(stubber); in testForwardingObject()
/external/mockito/src/main/java/org/mockito/internal/
DMockitoCore.java173 public Stubber stubber() { in stubber() method in MockitoCore
174 return stubber(null); in stubber()
177 public Stubber stubber(Strictness strictness) { in stubber() method in MockitoCore
/external/python/cpython2/Misc/
DHISTORY11125 - glmodule.c: check in the changed version after running the stubber
/external/python/cpython3/Misc/
DHISTORY28504 - glmodule.c: check in the changed version after running the stubber