Package 

Class LoggingFailureHandler

  • All Implemented Interfaces:
    androidx.test.espresso.FailureHandler , com.kaspersky.kaspresso.failure.FailureLoggingProvider

    
    public final class LoggingFailureHandler
     implements FailureHandler, FailureLoggingProvider
                        

    The implementation of the FailureHandler interface that logs rich description of failure.

    • Method Summary

      Modifier and Type Method Description
      Unit handle(Throwable error, Matcher<View> viewMatcher) Calls logDescriptionAndThrow on each failure.
      • Methods inherited from class androidx.test.espresso.FailureHandler

        equals, hashCode, toString
      • Methods inherited from class com.kaspersky.kaspresso.failure.LoggingFailureHandler

        logDescriptionAndThrow, logStackTrace, withLoggingOnFailure
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoggingFailureHandler

        LoggingFailureHandler(UiTestLogger logger)
    • Method Detail