Searched refs:ThrowsException (Results 1 – 10 of 10) sorted by relevance
24 …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()
16 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()
9 import org.mockito.internal.stubbing.answers.ThrowsException;75 answers.add(new ThrowsException(null)); in doThrow()79 answers.add(new ThrowsException(throwable)); in doThrow()
13 import org.mockito.internal.stubbing.answers.ThrowsException;38 return thenAnswer(new ThrowsException(throwable)); in thenThrow()
20 public class ThrowsException implements Answer<Object>, ValidableAnswer, Serializable { class31 public ThrowsException(Throwable throwable) { in ThrowsException() method in ThrowsException
14 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()
14 import org.mockito.internal.stubbing.answers.ThrowsException;46 when(barMock.doSomething()).thenAnswer(new ThrowsException(new RuntimeException())); in should_allow_throws_exception_to_be_serializable()
174 bool ThrowsException(Node* node, Node** if_success, Node** if_exception);
163 bool WasmGraphBuilder::ThrowsException(Node* node, Node** if_success, in ThrowsException() function in v8::internal::compiler::WasmGraphBuilder
559 if (!builder_->ThrowsException(node, &if_success, &if_exception)) { in CheckForException()