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)
testRunStarted in class org.junit.runner.notification.RunListenerpublic void testStarted(org.junit.runner.Description description)
testStarted in class org.junit.runner.notification.RunListenerpublic 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.