- All Implemented Interfaces:
- org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension
@ParametersAreNonnullByDefault
public class SoftAssertsExtension
extends java.lang.Object
implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback
By using this extension selenide will collect all failed asserts
from "should*" and "waitUntil" methods and throw after test finished.
To use extension extend you test class with it:
@ExtendWith({SoftAssertsExtension.class}
Or register extension in test class:
@RegisterExtension static SoftAssertsExtension softAsserts = new SoftAssertsExtension();
- Since:
- 4.12.2