Home
last modified time | relevance | path

Searched refs:toBeThrown (Results 1 – 7 of 7) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/verification/
DVerificationOverTimeImplTest.java43 MockitoAssertionError toBeThrown = new MockitoAssertionError("message"); in should_throw_mockito_assertion_error() local
44 exception.expect(is(toBeThrown)); in should_throw_mockito_assertion_error()
46 doThrow(toBeThrown).when(delegate).verify(null); in should_throw_mockito_assertion_error()
52 ArgumentsAreDifferent toBeThrown = new ArgumentsAreDifferent("message", "wanted", "actual"); in should_deal_with_junit_assertion_error() local
53 exception.expect(is(toBeThrown)); in should_deal_with_junit_assertion_error()
56 doThrow(toBeThrown).when(delegate).verify(null); in should_deal_with_junit_assertion_error()
62 RuntimeException toBeThrown = new RuntimeException(); in should_not_wrap_other_exceptions() local
63 exception.expect(is(toBeThrown)); in should_not_wrap_other_exceptions()
65 doThrow(toBeThrown).when(delegate).verify(null); in should_not_wrap_other_exceptions()
/external/mockito/src/main/java/org/mockito/
DBDDMockito.java372 BDDStubber willThrow(Throwable... toBeThrown); in willThrow() argument
378 BDDStubber willThrow(Class<? extends Throwable> toBeThrown); in willThrow() argument
385 …BDDStubber willThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... nextToBe… in willThrow() argument
440 public BDDStubber willThrow(Throwable... toBeThrown) { in willThrow() argument
441 return new BDDStubberImpl(mockitoStubber.doThrow(toBeThrown)); in willThrow()
444 public BDDStubber willThrow(Class<? extends Throwable> toBeThrown) { in willThrow() argument
445 return new BDDStubberImpl(mockitoStubber.doThrow(toBeThrown)); in willThrow()
448 …public BDDStubber willThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... n… in willThrow() argument
449 return new BDDStubberImpl(mockitoStubber.doThrow(toBeThrown, nextToBeThrown)); in willThrow()
461 public static BDDStubber willThrow(Throwable... toBeThrown) { in willThrow() argument
[all …]
DMockito.java2230 public static Stubber doThrow(Throwable... toBeThrown) { in doThrow() argument
2231 return MOCKITO_CORE.stubber().doThrow(toBeThrown); in doThrow()
2253 public static Stubber doThrow(Class<? extends Throwable> toBeThrown) { in doThrow() argument
2254 return MOCKITO_CORE.stubber().doThrow(toBeThrown); in doThrow()
2280 …public static Stubber doThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>...… in doThrow() argument
2281 return MOCKITO_CORE.stubber().doThrow(toBeThrown, toBeThrownNext); in doThrow()
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DStubberImpl.java66 public Stubber doThrow(Throwable... toBeThrown) { in doThrow() argument
67 if (toBeThrown == null) { in doThrow()
71 for (Throwable throwable : toBeThrown) { in doThrow()
78 public Stubber doThrow(Class<? extends Throwable> toBeThrown) { in doThrow() argument
79 if (toBeThrown == null) { in doThrow()
85 e = newInstance(toBeThrown); in doThrow()
94 …public Stubber doThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... nextTo… in doThrow() argument
95 Stubber stubber = doThrow(toBeThrown); in doThrow()
DBaseStubbing.java66 …public OngoingStubbing<T> thenThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwab… in thenThrow() argument
70 OngoingStubbing<T> stubbing = thenThrow(toBeThrown); in thenThrow()
/external/mockito/src/main/java/org/mockito/stubbing/
DStubber.java86 Stubber doThrow(Throwable... toBeThrown); in doThrow() argument
102 Stubber doThrow(Class<? extends Throwable> toBeThrown); in doThrow() argument
121 …Stubber doThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... nextToBeThrow… in doThrow() argument
DOngoingStubbing.java149 …OngoingStubbing<T> thenThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... … in thenThrow() argument