Home
last modified time | relevance | path

Searched refs:ThrowsException (Results 1 – 11 of 11) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/
DThrowsExceptionTest.java18 …new ThrowsException(new IllegalStateException("my dear throwable")).answer(new InvocationBuilder()… in should_raise_wanted_throwable()
28 …new ThrowsException(mock(Exception.class)).answer(new InvocationBuilder().method("canThrowExceptio… in should_throw_mock_exception_without_stacktrace()
45 …new ThrowsException(throwableToRaise).answer(new InvocationBuilder().method("canThrowException").t… in should_fill_in_exception_stacktrace()
50 …rtThat(throwableToRaise.getStackTrace()[0].getClassName()).isEqualTo(ThrowsException.class.getName… in should_fill_in_exception_stacktrace()
58 new ThrowsException(null).validateFor(new InvocationBuilder().toInvocation()); in should_invalidate_null_throwable()
65 …new ThrowsException(new CharacterCodingException()).validateFor(new InvocationBuilder().method("ca… in should_pass_proper_checked_exception()
70 …new ThrowsException(new IOException()).validateFor(new InvocationBuilder().method("canThrowExcepti… in should_fail_invalid_checked_exception()
75 …new ThrowsException(new Error()).validateFor(new InvocationBuilder().method("canThrowException").t… in should_pass_RuntimeExceptions()
76 …new ThrowsException(new RuntimeException()).validateFor(new InvocationBuilder().method("canThrowEx… in should_pass_RuntimeExceptions()
/external/mockito/src/test/java/org/mockito/internal/stubbing/
DInvocationContainerImplStubbingTest.java18 import org.mockito.internal.stubbing.answers.ThrowsException;
50 invocationContainerImpl.addAnswer(new ThrowsException(new Exception())); in should_finish_stubbing_when_wrong_throwable_is_set()
71 invocationContainerImpl.addAnswer(new ThrowsException(new MyException())); in should_get_results_for_methods()
88 invocationContainerImplStubOnly.addAnswer(new ThrowsException(new MyException())); in should_get_results_for_methods_stub_only()
100 invocationContainerImpl.addAnswerForVoidMethod(new ThrowsException(new MyException())); in should_add_throwable_for_void_method()
111 invocationContainerImpl.addAnswerForVoidMethod(new ThrowsException(new Exception())); in should_validate_throwable_for_void_method()
122 invocationContainerImpl.addAnswer(new ThrowsException(null)); in should_validate_throwable()
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DStubberImpl.java16 import org.mockito.internal.stubbing.answers.ThrowsException;
65 answers.add(new ThrowsException(null)); in doThrow()
69 answers.add(new ThrowsException(throwable)); in doThrow()
DBaseStubbing.java9 import org.mockito.internal.stubbing.answers.ThrowsException;
33 return thenAnswer(new ThrowsException(throwable)); in thenThrow()
/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/
DThrowsException.java17 public class ThrowsException implements Answer<Object>, ValidableAnswer, Serializable { class
23 public ThrowsException(Throwable throwable) { in ThrowsException() method in ThrowsException
/external/mockito/src/test/java/org/mockitousage/basicapi/
DMocksSerializationTest.java13 import org.mockito.internal.stubbing.answers.ThrowsException;
41 Bar mock = mock(Bar.class, new ThrowsException(new RuntimeException())); in should_allow_throws_exception_to_be_serializable()
51 when(barMock.doSomething()).thenAnswer(new ThrowsException(new RuntimeException())); in should_allow_method_delegation()
DMocksSerializationForAnnotationTest.java14 import org.mockito.internal.stubbing.answers.ThrowsException;
47 when(barMock.doSomething()).thenAnswer(new ThrowsException(new RuntimeException())); in should_allow_throws_exception_to_be_serializable()
/external/v8/src/compiler/
Dwasm-compiler.h141 bool ThrowsException(Node* node, Node** if_success, Node** if_exception);
Dwasm-compiler.cc346 bool WasmGraphBuilder::ThrowsException(Node* node, Node** if_success, in ThrowsException() function in v8::internal::compiler::WasmGraphBuilder
/external/v8/src/wasm/
Dast-decoder.cc1587 if (!builder_->ThrowsException(node, &if_success, &if_exception)) { in CheckForException()
/external/robolectric/v1/lib/test/
Dmockito-core-1.8.5.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/ ...