Class SoftAssert

  • All Implemented Interfaces:
    IAssertLifecycle

    public class SoftAssert
    extends Assertion
    When an assertion fails, don't throw an exception but record the failure. Calling assertAll() will cause an exception to be thrown if at least one assertion failed.
    • Field Detail

      • m_errors

        private final java.util.Map<java.lang.AssertionError,​IAssert<?>> m_errors
      • DEFAULT_SOFT_ASSERT_MESSAGE

        private static final java.lang.String DEFAULT_SOFT_ASSERT_MESSAGE
        See Also:
        Constant Field Values
    • Constructor Detail

      • SoftAssert

        public SoftAssert()
    • Method Detail

      • assertAll

        public void assertAll()
      • assertAll

        public void assertAll​(java.lang.String message)