Home
last modified time | relevance | path

Searched refs:SampleException (Results 1 – 5 of 5) sorted by relevance

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DSimpleTimeLimiterTest.java56 public String call() throws InterruptedException, SampleException {
58 throw new SampleException();
133 } catch (SampleException expected) { in testNewProxy_badMethodWithEnoughTime()
175 assertThat(expected.getCause()).isInstanceOf(SampleException.class); in testCallWithTimeout_badCallableWithEnoughTime()
201 assertThat(expected.getCause()).isInstanceOf(SampleException.class); in testCallUninterruptiblyWithTimeout_badCallableWithEnoughTime()
258 void sleepThenThrowException() throws SampleException; in sleepThenThrowException()
262 private static class SampleException extends Exception {} class in SimpleTimeLimiterTest
287 public void sleepThenThrowException() throws SampleException { in sleepThenThrowException()
292 throw new SampleException(); in sleepThenThrowException()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DSimpleTimeLimiterTest.java56 public String call() throws InterruptedException, SampleException {
58 throw new SampleException();
133 } catch (SampleException expected) { in testNewProxy_badMethodWithEnoughTime()
175 assertThat(expected.getCause()).isInstanceOf(SampleException.class); in testCallWithTimeout_badCallableWithEnoughTime()
201 assertThat(expected.getCause()).isInstanceOf(SampleException.class); in testCallUninterruptiblyWithTimeout_badCallableWithEnoughTime()
258 void sleepThenThrowException() throws SampleException; in sleepThenThrowException()
262 private static class SampleException extends Exception {} class in SimpleTimeLimiterTest
287 public void sleepThenThrowException() throws SampleException { in sleepThenThrowException()
292 throw new SampleException(); in sleepThenThrowException()
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestwith.py13 class SampleException(Exception): pass class
25 with self.assertRaises(SampleException):
28 raise SampleException()
Dtestasync.py432 class SampleException(Exception): class
435 vals = [1, SampleException("foo")]
439 with self.assertRaises(SampleException) as e:
/external/python/mock/mock/tests/
Dtestwith.py17 class SampleException(Exception): pass class
29 with self.assertRaises(SampleException):
32 raise SampleException()