OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:thenThrow
(Results
1 - 17
of
17
) sorted by null
/external/mockito/src/main/java/org/mockito/internal/stubbing/
BaseStubbing.java
32
private OngoingStubbing<T>
thenThrow
(Throwable throwable) {
36
public OngoingStubbing<T>
thenThrow
(Throwable... throwables) {
38
return
thenThrow
((Throwable) null);
43
stubbing =
thenThrow
(t);
45
stubbing = stubbing.
thenThrow
(t);
51
public OngoingStubbing<T>
thenThrow
(Class<? extends Throwable> throwableType) {
56
public OngoingStubbing<T>
thenThrow
(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... nextToBeThrown) {
58
thenThrow
((Throwable) null);
60
OngoingStubbing<T> stubbing =
thenThrow
(toBeThrown);
62
stubbing = stubbing.
thenThrow
(t)
[
all
...]
/external/mockito/src/main/java/org/mockito/stubbing/
OngoingStubbing.java
19
* when(mock.someMethod("some arg")).
thenThrow
(new RuntimeException());
24
* .
thenThrow
(new RuntimeException())
29
* when(mock.otherMethod()).
thenThrow
(exc1, exc2);
72
* when(mock.someMethod()).
thenThrow
(new RuntimeException());
89
OngoingStubbing<T>
thenThrow
(Throwable... throwables);
94
* when(mock.someMethod()).
thenThrow
(RuntimeException.class);
107
* use {@link OngoingStubbing#
thenThrow
(Throwable...)} instead.
114
OngoingStubbing<T>
thenThrow
(Class<? extends Throwable> throwableType);
119
* when(mock.someMethod()).
thenThrow
(RuntimeException.class);
136
* this API is safe to use. If you don't want to see this warning it is possible to chain {@link #
thenThrow
(Class)
[
all
...]
/external/mockito/src/test/java/org/mockitousage/matchers/
VerificationAndStubbingUsingMatchersTest.java
34
when(three.simpleMethod(startsWith("test"))).
thenThrow
(new RuntimeException());
/external/mockito/src/test/java/org/mockitousage/stubbing/
BasicStubbingTest.java
63
when(mock.simpleMethod("one")).
thenThrow
(new RuntimeException());
StubbingConsecutiveAnswersTest.java
59
.
thenThrow
(new NullPointerException(), new RuntimeException())
61
.
thenThrow
(new IllegalArgumentException());
83
when(mock.simpleMethod()).
thenThrow
(new RuntimeException())
84
.
thenThrow
(new IllegalArgumentException())
85
.
thenThrow
(new NullPointerException());
110
when(mock.simpleMethod()).
thenThrow
(new RuntimeException(),
138
when(mock.simpleMethod()).
thenThrow
(IllegalArgumentException.class);
155
when(mock.simpleMethod()).
thenThrow
(RuntimeException.class,
183
.
thenThrow
(new IllegalArgumentException())
185
.
thenThrow
(new NullPointerException()
[
all
...]
StubbingWithThrowablesTest.java
40
when(mock.add("throw")).
thenThrow
(expected);
77
when(mock.get(1)).
thenThrow
(new ExceptionOne());
80
when(mock.get(1)).
thenThrow
(new ExceptionTwo());
91
when(reader.read()).
thenThrow
(ioException);
105
when(mock.add("quake")).
thenThrow
(error);
117
when(mock.add(null)).
thenThrow
((Exception) null);
123
when(mock.add(null)).
thenThrow
(NaughtyException.class);
137
when(mock.add("monkey island")).
thenThrow
(new Exception());
142
when(mock.add("monkey island")).
thenThrow
((Throwable) null);
147
when(mock.add("monkey island")).
thenThrow
((Throwable[]) null)
[
all
...]
/external/mockito/src/test/java/org/mockitousage/basicapi/
ResetTest.java
75
when(mock.simpleMethod("one")).
thenThrow
(new RuntimeException());
/external/mockito/src/test/java/org/mockitousage/annotation/
MockInjectionUsingConstructorTest.java
60
when(calculator.countArticles("new")).
thenThrow
(new IllegalArgumentException());
/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());
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.2.5/
mockito-core-2.2.5.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.7.1/
mockito-core-2.7.1.jar
/prebuilts/tools/common/m2/repository/org/mockito/mockito-core/2.7.6/
mockito-core-2.7.6.jar
/prebuilts/misc/common/robolectric/lib/
mockito-core-1.10.19.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.10.19/
mockito-core-1.10.19.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
Completed in 284 milliseconds