Package com.codeborne.selenide.junit
Class SoftAsserts
java.lang.Object
org.junit.rules.ExternalResource
com.codeborne.selenide.junit.SoftAsserts
- All Implemented Interfaces:
org.junit.rules.TestRule
@ParametersAreNonnullByDefault
public class SoftAsserts
extends org.junit.rules.ExternalResource
Rule for assert selenide verification softly.
Using: 1. Add rule for test class:
2. Configure selenide to assert softly:
Using: 1. Add rule for test class:
@Rule public SoftAsserts softAsserts = new SoftAsserts();
2. Configure selenide to assert softly:
Configuration.assertionMode = SOFT;
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SoftAsserts
public SoftAsserts() -
SoftAsserts
public SoftAsserts(boolean fullStacktraces)
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
apply
in interfaceorg.junit.rules.TestRule
- Overrides:
apply
in classorg.junit.rules.ExternalResource
-
before
protected void before()- Overrides:
before
in classorg.junit.rules.ExternalResource
-
after
protected void after()- Overrides:
after
in classorg.junit.rules.ExternalResource
-