Class MultipleFailuresError

  • All Implemented Interfaces:
    java.io.Serializable

    public class MultipleFailuresError
    extends java.lang.AssertionError
    MultipleFailuresError is an AssertionError which aggregates multiple AssertionErrors thrown in a given context (i.e., typically within the invocation of a single test).
    Since:
    1.0
    Author:
    Johannes Link, Sam Brannen, Marc Philipp
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MultipleFailuresError​(java.lang.String heading, java.util.List<? extends java.lang.Throwable> failures)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Throwable> getFailures()  
      java.lang.String getMessage()  
      boolean hasFailures()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

      • MultipleFailuresError

        public MultipleFailuresError​(java.lang.String heading,
                                     java.util.List<? extends java.lang.Throwable> failures)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • getFailures

        public java.util.List<java.lang.Throwable> getFailures()
      • hasFailures

        public boolean hasFailures()