Home
last modified time | relevance | path

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

/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/
DThrowsExceptionTest.java24 …new ThrowsException(new IllegalStateException("my dear throwable")).answer(createMethodInvocation(… in should_raise_wanted_throwable()
34 new ThrowsException(mock(Exception.class)).answer(createMethodInvocation()); in should_throw_mock_exception_without_stacktrace()
51 new ThrowsException(throwableToRaise).answer(createMethodInvocation()); in should_fill_in_exception_stacktrace()
56 …rtThat(throwableToRaise.getStackTrace()[0].getClassName()).isEqualTo(ThrowsException.class.getName… in should_fill_in_exception_stacktrace()
65 new ThrowsException(null).validateFor(invocation); in should_invalidate_null_throwable()
74 new ThrowsException(null).answer(invocation); in should_throw_illegal_state_exception_if_null_answer()
82 new ThrowsException(new CharacterCodingException()).validateFor(createMethodInvocation()); in should_pass_proper_checked_exception()
87 new ThrowsException(new IOException()).validateFor(createMethodInvocation()); in should_fail_invalid_checked_exception()
92 new ThrowsException(new Error()).validateFor(createMethodInvocation()); in should_pass_RuntimeExceptions()
93 new ThrowsException(new RuntimeException()).validateFor(createMethodInvocation()); in should_pass_RuntimeExceptions()
/external/mockito/src/test/java/org/mockito/internal/stubbing/
DInvocationContainerImplStubbingTest.java16 import org.mockito.internal.stubbing.answers.ThrowsException;
49 invocationContainerImpl.addAnswer(new ThrowsException(new Exception()), null); in should_finish_stubbing_when_wrong_throwable_is_set()
70 invocationContainerImpl.addAnswer(new ThrowsException(new MyException()), null); in should_get_results_for_methods()
87 invocationContainerImplStubOnly.addAnswer(new ThrowsException(new MyException()), null); in should_get_results_for_methods_stub_only()
100 invocationContainerImpl.addAnswer(new ThrowsException(null), null); in should_validate_throwable()
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DStubberImpl.java9 import org.mockito.internal.stubbing.answers.ThrowsException;
75 answers.add(new ThrowsException(null)); in doThrow()
79 answers.add(new ThrowsException(throwable)); in doThrow()
DBaseStubbing.java13 import org.mockito.internal.stubbing.answers.ThrowsException;
38 return thenAnswer(new ThrowsException(throwable)); in thenThrow()
/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/
DThrowsException.java20 public class ThrowsException implements Answer<Object>, ValidableAnswer, Serializable { class
31 public ThrowsException(Throwable throwable) { in ThrowsException() method in ThrowsException
/external/mockito/src/test/java/org/mockitousage/basicapi/
DMocksSerializationTest.java14 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;
46 when(barMock.doSomething()).thenAnswer(new ThrowsException(new RuntimeException())); in should_allow_throws_exception_to_be_serializable()
/external/v8/src/compiler/
Dwasm-compiler.h174 bool ThrowsException(Node* node, Node** if_success, Node** if_exception);
Dwasm-compiler.cc163 bool WasmGraphBuilder::ThrowsException(Node* node, Node** if_success, in ThrowsException() function in v8::internal::compiler::WasmGraphBuilder
/external/v8/src/wasm/
Dfunction-body-decoder.cc559 if (!builder_->ThrowsException(node, &if_success, &if_exception)) { in CheckForException()