Searched refs:ThrowsException (Results 1 – 11 of 11) sorted by relevance
18 …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()
18 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()
16 import org.mockito.internal.stubbing.answers.ThrowsException;65 answers.add(new ThrowsException(null)); in doThrow()69 answers.add(new ThrowsException(throwable)); in doThrow()
9 import org.mockito.internal.stubbing.answers.ThrowsException;33 return thenAnswer(new ThrowsException(throwable)); in thenThrow()
17 public class ThrowsException implements Answer<Object>, ValidableAnswer, Serializable { class23 public ThrowsException(Throwable throwable) { in ThrowsException() method in ThrowsException
13 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;47 when(barMock.doSomething()).thenAnswer(new ThrowsException(new RuntimeException())); in should_allow_throws_exception_to_be_serializable()
141 bool ThrowsException(Node* node, Node** if_success, Node** if_exception);
346 bool WasmGraphBuilder::ThrowsException(Node* node, Node** if_success, in ThrowsException() function in v8::internal::compiler::WasmGraphBuilder
1587 if (!builder_->ThrowsException(node, &if_success, &if_exception)) { in CheckForException()
META-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/ ...