c

munit

ComparisonFailException

class ComparisonFailException extends ComparisonFailure with FailExceptionLike[ComparisonFailException]

The base exception for all comparison failures.

This class exists so that it can extend org.junit.ComparisonFailure, which is recognised by IntelliJ so that users can optionally compare the obtained/expected values in a GUI diff explorer.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ComparisonFailException
  2. FailExceptionLike
  3. ComparisonFailure
  4. AssertionError
  5. Error
  6. Throwable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ComparisonFailException(message: String, obtained: Any, expected: Any, location: Location, isStackTracesEnabled: Boolean)
  2. new ComparisonFailException(message: String, obtained: Any, obtainedString: String, expected: Any, expectedString: String, location: Location, isStackTracesEnabled: Boolean)

    message

    the exception message.

    obtained

    the obtained value from this comparison.

    obtainedString

    the pretty-printed representation of the obtained value. This string is displayed in the IntelliJ diff viewer.

    expected

    the expected value from this comparison.

    expectedString

    the pretty-printed representation of the obtained value. This string is displayed in the IntelliJ diff viewer.

    location

    the source location where this exception was thrown.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def addSuppressed(arg0: Throwable): Unit
    Definition Classes
    Throwable
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. val expected: Any
  10. val expectedString: String
  11. def fillInStackTrace(): Throwable
    Definition Classes
    ComparisonFailException → Throwable
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. def getActual(): String
    Definition Classes
    ComparisonFailure
  14. def getCause(): Throwable
    Definition Classes
    Throwable
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def getExpected(): String
    Definition Classes
    ComparisonFailure
  17. def getLocalizedMessage(): String
    Definition Classes
    Throwable
  18. def getMessage(): String
    Definition Classes
    ComparisonFailException → ComparisonFailure → Throwable
  19. def getStackTrace(): Array[StackTraceElement]
    Definition Classes
    Throwable
  20. final def getSuppressed(): Array[Throwable]
    Definition Classes
    Throwable
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def initCause(arg0: Throwable): Throwable
    Definition Classes
    Throwable
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. val isStackTracesEnabled: Boolean
  25. val location: Location
  26. val message: String
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. val obtained: Any
  31. val obtainedString: String
  32. def printStackTrace(arg0: PrintWriter): Unit
    Definition Classes
    Throwable
  33. def printStackTrace(arg0: PrintStream): Unit
    Definition Classes
    Throwable
  34. def printStackTrace(): Unit
    Definition Classes
    Throwable
  35. def setStackTrace(arg0: Array[StackTraceElement]): Unit
    Definition Classes
    Throwable
  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    Throwable → AnyRef → Any
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  41. def withMessage(newMessage: String): ComparisonFailException

Inherited from ComparisonFailure

Inherited from AssertionError

Inherited from Error

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped