Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

FailureHandler

public interface FailureHandler

androidx.test.espresso.FailureHandler
Known Indirect Subclasses


Handles failures that happen during test execution.

Summary

Public methods

abstract void handle(Throwable error, Matcher<View> viewMatcher)

Handle the given error in a manner that makes sense to the environment in which the test is executed (e.g.

Public methods

handle

void handle (Throwable error, 
                Matcher<View> viewMatcher)

Handle the given error in a manner that makes sense to the environment in which the test is executed (e.g. take a screenshot, output extra debug info, etc). Upon handling, most handlers will choose to propagate the error.

Parameters
error Throwable

viewMatcher Matcher