public class InstallUncaughtExceptionHandlerListener
extends org.junit.runner.notification.RunListener
RunListener used to install an aggressive default Thread.UncaughtExceptionHandler similar to the one found on Android. No exceptions
should escape from OkHttp that might cause apps to be killed or tests to fail on Android.| Constructor and Description |
|---|
InstallUncaughtExceptionHandlerListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
testRunFinished(org.junit.runner.Result result) |
void |
testRunStarted(org.junit.runner.Description description) |
void |
testStarted(org.junit.runner.Description description) |
public InstallUncaughtExceptionHandlerListener()
public void testRunStarted(org.junit.runner.Description description)
throws java.lang.Exception
testRunStarted in class org.junit.runner.notification.RunListenerjava.lang.Exceptionpublic void testStarted(org.junit.runner.Description description)
throws java.lang.Exception
testStarted in class org.junit.runner.notification.RunListenerjava.lang.Exceptionpublic void testRunFinished(org.junit.runner.Result result)
throws java.lang.Exception
testRunFinished in class org.junit.runner.notification.RunListenerjava.lang.ExceptionCopyright © 2018. All Rights Reserved.