Package com.vaadin.testbench.unit
Class TreeOnFailureExtension
java.lang.Object
com.vaadin.testbench.unit.TreeOnFailureExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterTestExecutionCallback
,org.junit.jupiter.api.extension.Extension
public class TreeOnFailureExtension
extends Object
implements org.junit.jupiter.api.extension.AfterTestExecutionCallback
JUnit5 extension that will collect and output the component tree for the
failing test UI.
This can help with identifying a problem that has happened in the test where a component is missing or has faulty data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterTestExecution
(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
-
Constructor Details
-
TreeOnFailureExtension
public TreeOnFailureExtension()
-
-
Method Details
-
afterTestExecution
public void afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext extensionContext) - Specified by:
afterTestExecution
in interfaceorg.junit.jupiter.api.extension.AfterTestExecutionCallback
-