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: @Rule public SoftAsserts softAsserts = new SoftAsserts();
2. Configure selenide to assert softly: Configuration.assertionMode = SOFT;
  • 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 interface org.junit.rules.TestRule
      Overrides:
      apply in class org.junit.rules.ExternalResource
    • before

      protected void before()
      Overrides:
      before in class org.junit.rules.ExternalResource
    • after

      protected void after()
      Overrides:
      after in class org.junit.rules.ExternalResource