OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:doThrow
(Results
1 - 11
of
11
) sorted by null
/external/chromium_org/v8/test/mjsunit/compiler/
inline-throw.js
31
function
doThrow
() {
36
if (x == 42) throw
doThrow
();
/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
...]
/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/
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/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);
/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
...]
/frameworks/base/core/jni/
AndroidRuntime.cpp
196
static void
doThrow
(JNIEnv* env, const char* exc, const char* msg = NULL)
[
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/lib/test/
mockito-core-1.8.5.jar
Completed in 847 milliseconds