public final class UiInterceptors
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UiInterceptors.UiInterceptor<T> |
Constructor and Description |
---|
UiInterceptors() |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Should be called in test tearDown to ensure that all registered interceptors were actually used.
|
static void |
register(UiInterceptors.UiInterceptor<?> interceptor)
Register interceptor to intercept next shown UI component
|
static boolean |
tryIntercept(java.lang.Object uiComponent)
Called from UI component
|
public static boolean tryIntercept(java.lang.Object uiComponent)
uiComponent
- UI component which is about to be displayedpublic static void register(UiInterceptors.UiInterceptor<?> interceptor)
interceptor
- interceptor to registerpublic static void clear()