Class 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 Summary

      Constructors 
      Constructor Description
      SoftAsserts()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void after()  
      org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base, org.junit.runner.Description description)  
      protected void before()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SoftAsserts

        public SoftAsserts()
    • Method Detail

      • 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