/external/mockito/src/org/mockito/stubbing/ |
Stubber.java | 10 * Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
14 * doThrow(new RuntimeException()).when(mockedList).clear();
23 * doThrow(new RuntimeException("one")).
24 * doThrow(new RuntimeException("two"))
30 * {@link Mockito#doThrow(Throwable)}
45 * Allows to choose a method when stubbing in doThrow()|doAnswer()|doNothing()|doReturn() style
49 * doThrow(new RuntimeException())
58 * {@link Mockito#doThrow(Throwable)}
75 * Use it for stubbing consecutive calls in {@link Mockito#doThrow(Throwable)} style:
77 * doThrow(new RuntimeException("one")). [all...] |
/dalvik/tests/088-monitor-verification/src/ |
Main.java | 76 void nestedMayThrow(boolean doThrow) { 81 if (doThrow) {
|
/external/mockito/src/org/mockito/internal/stubbing/ |
StubberImpl.java | 42 public Stubber doThrow(Throwable toBeThrown) {
47 public Stubber doThrow(Class<? extends Throwable> toBeThrown) {
|
/external/mockito/src/org/mockito/ |
BDDMockito.java | 205 * See original {@link Stubber#doThrow(Throwable)}
211 * See original {@link Stubber#doThrow(Class)}
269 return new BDDStubberImpl(mockitoStubber.doThrow(toBeThrown));
276 return new BDDStubberImpl(mockitoStubber.doThrow(toBeThrown));
288 * see original {@link Mockito#doThrow(Throwable)}
292 return new BDDStubberImpl(Mockito.doThrow(toBeThrown));
296 * see original {@link Mockito#doThrow(Throwable)}
300 return new BDDStubberImpl(Mockito.doThrow(toBeThrown));
|
Mockito.java | 42 * <a href="#12">12. <code>doReturn()</code>|<code>doThrow()</code>|<code>doAnswer()</code>|<code>doNothing()</code>|<code>doCallRealMethod()</code> family of methods</a><br/>
239 * doThrow(new RuntimeException()).when(mockedList).clear();
245 * Read more about doThrow|doAnswer family of methods in paragraph 12.
248 * Currently <code>stubVoid()</code> is deprecated in favor of {@link Mockito#doThrow(Throwable)}.
441 * <h3 id="12">12. <a class="meaningful_link" href="#do_family_methods_stubs"><code>doReturn()</code>|<code>doThrow()</code>|
447 * {@link Mockito#doThrow(Throwable)} replaces the {@link Mockito#stubVoid(Object)} method for stubbing voids.
450 * Use <code>doThrow()</code> when you want to stub a void method with an exception:
452 * doThrow(new RuntimeException()).when(mockedList).clear();
459 * You can use <code>doThrow()</code>, <code>doAnswer()</code>, <code>doNothing()</code>, <code>doReturn()</code>
473 * {@link Mockito#doThrow(Throwable)} [all...] |
/external/guava/guava-tests/test/com/google/common/testing/ |
NullPointerTesterTest.java | 347 public static void doThrow(Object arg) { 355 public void oneNullableArgThrows(@Nullable String s) { doThrow(s); } 360 checkNotNull(s); doThrow(i); 364 checkNotNull(s); doThrow(i); 370 doThrow(s); 374 doThrow(i); 379 doThrow(s); 393 doThrow(s); // Fail: throwing non-NPE exception for null s 415 doThrow(s); // Fail: throwing non-NPE exception for null s 432 doThrow(i); // Fail: throwing non-NPE exception for null [all...] |
/external/v8/test/mjsunit/compiler/ |
inline-throw.js | 31 function doThrow() { 36 if (x == 42) throw doThrow();
|
/external/neven/ |
FaceDetector_jni.cpp | 88 static void doThrow(JNIEnv* env, const char* exc, const char* msg = NULL) 149 doThrow(_env, "java/lang/OutOfMemoryError", NULL); 168 doThrow(_env, "java/lang/OutOfMemoryError", NULL);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
ConnectivityServiceTest.java | 29 import static org.mockito.Mockito.doThrow; 126 doThrow(new IllegalArgumentException("Not supported in test environment"))
|
/external/littlemock/tests/com/google/testing/littlemock/ |
LittleMockTest.java | 38 import static com.google.testing.littlemock.LittleMock.doThrow; 491 doThrow(new RuntimeException()).when(mFoo).aDouble(); 499 doThrow(new RuntimeException()).when(mFoo).aDouble(); 504 doThrow(new RuntimeException()).when(mFoo).aDouble(); [all...] |
/frameworks/base/core/jni/ |
AndroidRuntime.cpp | 183 static void doThrow(JNIEnv* env, const char* exc, const char* msg = NULL) [all...] |
/external/littlemock/src/com/google/testing/littlemock/ |
LittleMock.java | 61 * doThrow(new IOException("oh noes")).when(mockFoo).doSomething(); 139 public static <T extends Throwable> Behaviour doThrow(final T exception) { [all...] |
/external/dexmaker/lib/ |
mockito-core-1.9.1-SNAPSHOT.jar | |
/external/robolectric/lib/test/ |
mockito-core-1.8.5.jar | |