/external/mockito/src/test/java/org/mockito/internal/verification/ |
D | VerificationOverTimeImplTest.java | 43 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/ |
D | BDDMockito.java | 372 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 …]
|
D | Mockito.java | 2273 public static Stubber doThrow(Throwable... toBeThrown) { in doThrow() argument 2274 return MOCKITO_CORE.stubber().doThrow(toBeThrown); in doThrow() 2296 public static Stubber doThrow(Class<? extends Throwable> toBeThrown) { in doThrow() argument 2297 return MOCKITO_CORE.stubber().doThrow(toBeThrown); in doThrow() 2323 …public static Stubber doThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>...… in doThrow() argument 2324 return MOCKITO_CORE.stubber().doThrow(toBeThrown, toBeThrownNext); in doThrow()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/ |
D | StubberImpl.java | 73 public Stubber doThrow(Throwable... toBeThrown) { in doThrow() argument 74 if (toBeThrown == null) { in doThrow() 78 for (Throwable throwable : toBeThrown) { in doThrow() 85 public Stubber doThrow(Class<? extends Throwable> toBeThrown) { in doThrow() argument 86 if (toBeThrown == null) { in doThrow() 92 e = newInstance(toBeThrown); in doThrow() 101 …public Stubber doThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... nextTo… in doThrow() argument 102 Stubber stubber = doThrow(toBeThrown); in doThrow()
|
D | DefaultLenientStubber.java | 19 public Stubber doThrow(Throwable... toBeThrown) { in doThrow() argument 20 return stubber().doThrow(toBeThrown); in doThrow() 24 public Stubber doThrow(Class<? extends Throwable> toBeThrown) { in doThrow() argument 25 return stubber().doThrow(toBeThrown); in doThrow() 29 …public Stubber doThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... nextTo… in doThrow() argument 30 return stubber().doThrow(toBeThrown, nextToBeThrown); in doThrow()
|
D | BaseStubbing.java | 67 …public OngoingStubbing<T> thenThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwab… in thenThrow() argument 71 OngoingStubbing<T> stubbing = thenThrow(toBeThrown); in thenThrow()
|
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/extended/ |
D | StaticCapableStubber.java | 156 public StaticCapableStubber doThrow(Throwable... toBeThrown) { in doThrow() argument 157 instanceStubber = instanceStubber.doThrow(toBeThrown); in doThrow() 162 public StaticCapableStubber doThrow(Class<? extends Throwable> toBeThrown) { in doThrow() argument 163 instanceStubber = instanceStubber.doThrow(toBeThrown); in doThrow() 169 public final StaticCapableStubber doThrow(Class<? extends Throwable> toBeThrown, in doThrow() argument 171 instanceStubber = instanceStubber.doThrow(toBeThrown, nextToBeThrown); in doThrow()
|
D | ExtendedMockito.java | 122 public static StaticCapableStubber doThrow(Class<? extends Throwable> toBeThrown) { in doThrow() argument 123 return new StaticCapableStubber(Mockito.doThrow(toBeThrown)); in doThrow() 132 public static StaticCapableStubber doThrow(Class<? extends Throwable> toBeThrown, in doThrow() argument 134 return new StaticCapableStubber(Mockito.doThrow(toBeThrown, toBeThrownNext)); in doThrow() 142 public static StaticCapableStubber doThrow(Throwable... toBeThrown) { in doThrow() argument 143 return new StaticCapableStubber(Mockito.doThrow(toBeThrown)); in doThrow()
|
/external/mockito/src/main/java/org/mockito/stubbing/ |
D | BaseStubber.java | 31 Stubber doThrow(Throwable... toBeThrown); in doThrow() argument 47 Stubber doThrow(Class<? extends Throwable> toBeThrown); in doThrow() argument 66 …Stubber doThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... nextToBeThrow… in doThrow() argument
|
D | OngoingStubbing.java | 149 …OngoingStubbing<T> thenThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... … in thenThrow() argument
|