Home
last modified time | relevance | path

Searched refs:ThrowingRunnable (Results 1 – 10 of 10) sorted by relevance

/external/connectedappssdk/sdk/src/main/java/com/google/android/enterprise/connectedapps/internal/
DBackgroundExceptionThrower.java26 private static class ThrowingRunnable implements Runnable { class in BackgroundExceptionThrower
29 ThrowingRunnable(RuntimeException throwable) { in ThrowingRunnable() method in BackgroundExceptionThrower.ThrowingRunnable
42 new Handler(Looper.getMainLooper()).postDelayed(new ThrowingRunnable(throwable), 1000); in throwInBackground()
/external/testng/src/test/java/test/asserttests/
DAssertTest.java4 import org.testng.Assert.ThrowingRunnable;
137 private static ThrowingRunnable nonThrowingRunnable() { in nonThrowingRunnable()
138 return new ThrowingRunnable() { in nonThrowingRunnable()
144 private static ThrowingRunnable throwingRunnable(final Throwable t) { in throwingRunnable()
145 return new ThrowingRunnable() { in throwingRunnable()
/external/junit/src/main/java/org/junit/rules/
DErrorCollector.java10 import org.junit.function.ThrowingRunnable;
118 … public void checkThrows(Class<? extends Throwable> expectedThrowable, ThrowingRunnable runnable) { in checkThrows()
/external/junit/src/main/java/org/junit/function/
DThrowingRunnable.java12 public interface ThrowingRunnable { interface
/external/junit/src/main/java/org/junit/
DTest.java3 import org.junit.function.ThrowingRunnable;
DAssert.java5 import org.junit.function.ThrowingRunnable;
980 ThrowingRunnable runnable) { in assertThrows()
999 ThrowingRunnable runnable) { in assertThrows()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DMoreExecutorsTest.java385 service.schedule(new ThrowingRunnable(0, ex), 1, TimeUnit.MILLISECONDS); in testListeningDecorator_scheduleFailure()
397 ThrowingRunnable runnable = new ThrowingRunnable(5, ex); in testListeningDecorator_schedulePeriodic()
403 runnable = new ThrowingRunnable(5, ex); in testListeningDecorator_schedulePeriodic()
446 private static final class ThrowingRunnable implements Runnable { class in MoreExecutorsTest
451 ThrowingRunnable(int throwAfterCount, RuntimeException thrown) { in ThrowingRunnable() method in MoreExecutorsTest.ThrowingRunnable
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DMoreExecutorsTest.java385 service.schedule(new ThrowingRunnable(0, ex), 1, TimeUnit.MILLISECONDS); in testListeningDecorator_scheduleFailure()
397 ThrowingRunnable runnable = new ThrowingRunnable(5, ex); in testListeningDecorator_schedulePeriodic()
403 runnable = new ThrowingRunnable(5, ex); in testListeningDecorator_schedulePeriodic()
446 private static final class ThrowingRunnable implements Runnable { class in MoreExecutorsTest
451 ThrowingRunnable(int throwAfterCount, RuntimeException thrown) { in ThrowingRunnable() method in MoreExecutorsTest.ThrowingRunnable
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
DPerfStatsCollector.java67 public <E extends Exception> void measure(String eventName, ThrowingRunnable<E> runnable) in measure()
85 public interface ThrowingRunnable<F extends Exception> { interface in PerfStatsCollector
/external/testng/src/main/java/org/testng/
DAssert.java938 public interface ThrowingRunnable { interface in Assert
949 public static void assertThrows(ThrowingRunnable runnable) { in assertThrows()
965 …public static <T extends Throwable> void assertThrows(Class<T> throwableClass, ThrowingRunnable ru… in assertThrows()
981 …public static <T extends Throwable> T expectThrows(Class<T> throwableClass, ThrowingRunnable runna… in expectThrows()