-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.failure.FailureLoggingProvider,com.kaspersky.kaspresso.interceptors.behavior.BehaviorInterceptor,com.kaspersky.kaspresso.interceptors.behavior.DataBehaviorInterceptor
public final class FailureLoggingDataBehaviorInterceptor implements DataBehaviorInterceptor, FailureLoggingProvider
The implementation of DataBehaviorInterceptor and FailureLoggingProvider interfaces. Provides failure logging functionality for DataInteraction.check calls.
By default, this interceptor is not used in Kaspresso. If you desire to change result log (especially in case of an error) we recommend to use FailureLoggingProvider directly
-
-
Constructor Summary
Constructors Constructor Description FailureLoggingDataBehaviorInterceptor(UiTestLogger logger)
-
Method Summary
Modifier and Type Method Description <T extends Any> Tintercept(DataInteraction interaction, Function0<T> action)Wraps the given action invocation with the failure logging. -
Methods inherited from class com.kaspersky.kaspresso.interceptors.behavior.BehaviorInterceptor
equals, hashCode, toString -
Methods inherited from class com.kaspersky.kaspresso.interceptors.behavior.impl.failure.FailureLoggingDataBehaviorInterceptor
logDescriptionAndThrow, logStackTrace, withLoggingOnFailure -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FailureLoggingDataBehaviorInterceptor
FailureLoggingDataBehaviorInterceptor(UiTestLogger logger)
-
-
-
-