Searched refs:doThrow (Results 1 - 12 of 12) sorted by relevance

/external/chromium_org/v8/test/mjsunit/compiler/
H A Dinline-throw.js31 function doThrow() { function
36 if (x == 42) throw doThrow();
/external/mockito/src/org/mockito/stubbing/
H A DStubber.java10 * 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(ne
86 Stubber doThrow(Throwable toBeThrown); method in interface:Stubber
100 Stubber doThrow(Class<? extends Throwable> toBeThrown); method in interface:Stubber
[all...]
/external/v8/test/mjsunit/compiler/
H A Dinline-throw.js31 function doThrow() { function
36 if (x == 42) throw doThrow();
/external/mockito/src/org/mockito/internal/stubbing/
H A DStubberImpl.java42 public Stubber doThrow(Throwable toBeThrown) { method in class:StubberImpl
47 public Stubber doThrow(Class<? extends Throwable> toBeThrown) { method in class:StubberImpl
/external/mockito/src/org/mockito/
H A DBDDMockito.java205 * 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));
H A DMockito.java42 * <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(Throwabl
1648 public static Stubber doThrow(Throwable toBeThrown) { method in class:Mockito
1669 public static Stubber doThrow(Class<? extends Throwable> toBeThrown) { method in class:Mockito
[all...]
/external/guava/guava-tests/test/com/google/common/testing/
H A DNullPointerTesterTest.java347 public static void doThrow(Object arg) { method in class:NullPointerTesterTest.PassObject
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(
[all...]
/external/neven/
H A DFaceDetector_jni.cpp88 static void doThrow(JNIEnv* env, const char* exc, const char* msg = NULL) function
149 doThrow(_env, "java/lang/OutOfMemoryError", NULL);
168 doThrow(_env, "java/lang/OutOfMemoryError", NULL);
/external/littlemock/tests/com/google/testing/littlemock/
H A DLittleMockTest.java38 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();
1275 doThrow(new RuntimeException()).when(mFoo);
1291 doThrow(new RuntimeException()).when(mFoo);
1614 // TODO(hugohudson): 6. Again we can chain things like doNothing() then doThrow() I suppose.
1615 // doNothing().doThrow(new RuntimeException()).when(mock).someVoidMethod();
/external/littlemock/src/com/google/testing/littlemock/
H A DLittleMock.java61 * doThrow(new IOException("oh noes")).when(mockFoo).doSomething();
139 public static <T extends Throwable> Behaviour doThrow(final T exception) { method in class:LittleMock
/external/dexmaker/lib/
H A Dmockito-core-1.9.1-SNAPSHOT.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/mockito/asm/ org/mockito/asm/signature/ ...
/external/robolectric/lib/test/
H A Dmockito-core-1.8.5.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/mockito/asm/ org/mockito/asm/signature/ ...

Completed in 417 milliseconds