OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:thenthrow
(Results
1 - 10
of
10
) 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();
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
CameraUtilsBinderDecoratorTest.java
85
when(mock.doSomethingThrowDeadObjectException()).
thenThrow
(new DeadObjectException());
86
when(mock.doSomethingThrowTransactionTooLargeException()).
thenThrow
(
ImageReaderTest.java
133
when(mReader.acquireNextImage()).
thenThrow
(new IllegalStateException());
149
thenThrow
(new OutOfMemoryError());
170
thenThrow
(new RuntimeException());
/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
...]
/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/littlemock/tests/com/google/testing/littlemock/
LittleMockTest.java
[
all
...]
/external/dexmaker/lib/
mockito-core-1.9.1-SNAPSHOT.jar
/external/robolectric/lib/test/
mockito-core-1.8.5.jar
Completed in 888 milliseconds