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 Exception
testRunStarted
in class org.junit.runner.notification.RunListener
Exception
public void testStarted(org.junit.runner.Description description) throws Exception
testStarted
in class org.junit.runner.notification.RunListener
Exception
Copyright © 2019. All rights reserved.