Class MultipleAssertionsError

  • All Implemented Interfaces:
    java.io.Serializable

    public class MultipleAssertionsError
    extends java.lang.AssertionError
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<? extends java.lang.AssertionError> errors  
      private static long serialVersionUID  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.String createMessage​(java.util.List<? extends java.lang.AssertionError> errors)  
      private static java.lang.String formatDescription​(Description description)  
      java.util.List<? extends java.lang.AssertionError> getErrors()
      Returns the causal AssertionErrors in the order that they were thrown.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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
    • Field Detail

      • errors

        private final java.util.List<? extends java.lang.AssertionError> errors
    • Constructor Detail

      • MultipleAssertionsError

        public MultipleAssertionsError​(java.util.List<? extends java.lang.AssertionError> errors)
      • MultipleAssertionsError

        public MultipleAssertionsError​(Description description,
                                       java.util.List<? extends java.lang.AssertionError> errors)
    • Method Detail

      • getErrors

        public java.util.List<? extends java.lang.AssertionError> getErrors()
        Returns the causal AssertionErrors in the order that they were thrown.
        Returns:
        the list of errors
      • formatDescription

        private static java.lang.String formatDescription​(Description description)
      • createMessage

        private static java.lang.String createMessage​(java.util.List<? extends java.lang.AssertionError> errors)