OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:thenthrow
(Results
1 - 20
of
20
) sorted by null
/external/mockito/src/org/mockito/internal/stubbing/
BaseStubbing.java
30
private OngoingStubbing<T>
thenThrow
(Throwable throwable) {
34
public OngoingStubbing<T>
thenThrow
(Throwable... throwables) {
36
thenThrow
((Throwable) null);
41
stubbing =
thenThrow
(t);
43
stubbing = stubbing.
thenThrow
(t);
49
private OngoingStubbing<T>
thenThrow
(Class<? extends Throwable> throwableClass) {
53
public OngoingStubbing<T>
thenThrow
(Class<? extends Throwable>... throwableClasses) {
55
thenThrow
((Throwable) null);
60
stubbing =
thenThrow
(t);
62
stubbing = stubbing.
thenThrow
(t);
[
all
...]
/external/mockito/src/org/mockito/stubbing/
OngoingStubbing.java
20
* when(mock.someMethod("some arg")).
thenThrow
(new RuntimeException());
25
* .
thenThrow
(new RuntimeException())
30
* when(mock.otherMethod()).
thenThrow
(exc1, exc2);
71
* when(mock.someMethod()).
thenThrow
(new RuntimeException());
88
OngoingStubbing<T>
thenThrow
(Throwable... throwables);
93
* when(mock.someMethod()).
thenThrow
(RuntimeException.class);
114
OngoingStubbing<T>
thenThrow
(Class<? extends Throwable>... throwableClasses);
192
* Car boringStubbedCar = when(mock(Car.class).shiftGear()).
thenThrow
(EngineNotStarted.class).getMock();
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
SetDevicePolicyTaskTest.java
82
.
thenThrow
(new IllegalArgumentException());
104
.
thenThrow
(new IllegalStateException());
/external/mockito/src/org/mockito/
BDDMockito.java
91
* See original {@link OngoingStubbing#
thenThrow
(Throwable...)}
97
* See original {@link OngoingStubbing#
thenThrow
(Class[])}
155
return new BDDOngoingStubbingImpl<T>(mockitoOngoingStubbing.
thenThrow
(throwables));
161
return new BDDOngoingStubbingImpl<T>(mockitoOngoingStubbing.
thenThrow
(throwableClasses));
Mockito.java
102
* when(mockedList.get(1)).
thenThrow
(new RuntimeException());
393
* .
thenThrow
(new RuntimeException())
422
* <code>
thenThrow
()</code> only. Those two should be <b>just enough</b> to test/test-drive
[
all
...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
ImageReaderTest.java
133
when(mReader.acquireNextImage()).
thenThrow
(new IllegalStateException());
149
thenThrow
(new OutOfMemoryError());
170
thenThrow
(new RuntimeException());
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/common/
MdmPackageInfoTest.java
81
.
thenThrow
(new NameNotFoundException());
UtilsTest.java
128
.
thenThrow
(new NameNotFoundException());
199
.
thenThrow
(new OperationCanceledException());
/frameworks/volley/src/test/java/com/android/volley/toolbox/
AndroidAuthenticatorTest.java
56
when(mFuture.getResult()).
thenThrow
(new AuthenticatorException("sadness!"));
/packages/services/Telephony/tests/src/com/android/phone/common/mail/
MailTransportTest.java
163
.
thenThrow
(new UnknownHostException("host resolution failed"));
207
.
thenThrow
(new IOException("unable to create socket"));
/frameworks/volley/src/test/java/com/android/volley/
RequestQueueIntegrationTest.java
197
when(mMockNetwork.performRequest(request)).
thenThrow
(new VolleyError());
/packages/providers/CallLogProvider/tests/src/com/android/calllogbackup/
CallLogBackupAgentTest.java
78
when(mDataInput.readInt()).
thenThrow
(new EOFException());
/external/mockito/src/org/mockito/exceptions/
Reporter.java
68
" when(mock.isOk()).
thenThrow
(exception);",
84
" when(mock.isOk()).thenReturn(true).thenReturn(false).
thenThrow
(exception);",
85
" when(mock.isOk()).thenReturn(true, false).
thenThrow
(exception);",
[
all
...]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
MoreExecutorsTest.java
527
when(service.awaitTermination(2, TimeUnit.SECONDS)).
thenThrow
(new InterruptedException());
671
.
thenThrow
(new InterruptedException());
/external/littlemock/tests/com/google/testing/littlemock/
LittleMockTest.java
[
all
...]
/external/dexmaker/lib/
mockito-core-1.9.1-SNAPSHOT.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-all/1.9.5/
mockito-all-1.9.5.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/1.9.5/
mockito-core-1.9.5.jar
/external/robolectric/v1/lib/test/
mockito-core-1.8.5.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.2.5/
mockito-core-2.2.5.jar
Completed in 5734 milliseconds