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.java39 MockitoAssertionError toBeThrown = new MockitoAssertionError("message"); in should_throw_mockito_assertion_error() local
40 exception.expect(is(toBeThrown)); in should_throw_mockito_assertion_error()
42 doThrow(toBeThrown).when(delegate).verify(null); in should_throw_mockito_assertion_error()
48 ArgumentsAreDifferent toBeThrown = new ArgumentsAreDifferent("message", "wanted", "actual"); in should_deal_with_junit_assertion_error() local
49 exception.expect(is(toBeThrown)); in should_deal_with_junit_assertion_error()
52 doThrow(toBeThrown).when(delegate).verify(null); in should_deal_with_junit_assertion_error()
58 RuntimeException toBeThrown = new RuntimeException(); in should_not_wrap_other_exceptions() local
59 exception.expect(is(toBeThrown)); in should_not_wrap_other_exceptions()
61 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.java2073 public static Stubber doThrow(Throwable... toBeThrown) { in doThrow() argument
2074 return MOCKITO_CORE.stubber().doThrow(toBeThrown); in doThrow()
2095 public static Stubber doThrow(Class<? extends Throwable> toBeThrown) { in doThrow() argument
2096 return MOCKITO_CORE.stubber().doThrow(toBeThrown); in doThrow()
2121 …public static Stubber doThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>...… in doThrow() argument
2122 return MOCKITO_CORE.stubber().doThrow(toBeThrown, toBeThrownNext); in doThrow()
/external/mockito/src/main/java/org/mockito/internal/stubbing/
DStubberImpl.java63 public Stubber doThrow(Throwable... toBeThrown) { in doThrow() argument
64 if(toBeThrown == null) { in doThrow()
68 for (Throwable throwable : toBeThrown) { in doThrow()
75 public Stubber doThrow(Class<? extends Throwable> toBeThrown) { in doThrow() argument
76 return doThrowClasses(toBeThrown); in doThrow()
80 …public Stubber doThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... nextTo… in doThrow() argument
81 return doThrowClasses(toBeThrown).doThrowClasses(nextToBeThrown); in doThrow()
84 private StubberImpl doThrowClasses(Class<? extends Throwable>... toBeThrown) { in doThrowClasses() argument
85 for (Class<? extends Throwable> throwable: toBeThrown) { in doThrowClasses()
DBaseStubbing.java56 …public OngoingStubbing<T> thenThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwab… in thenThrow() argument
60 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