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
FailExceptionLike[ComparisonFailException], Serializable, ComparisonFailure, AssertionError, Error, Throwable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ComparisonFailException
  2. FailExceptionLike
  3. Serializable
  4. ComparisonFailure
  5. AssertionError
  6. Error
  7. Throwable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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( ... ) @native() @IntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. val expected: Any
  10. val expectedString: String
  11. def fillInStackTrace(): Throwable
    Definition Classes
    ComparisonFailException → Throwable
  12. def getActual(): String
    Definition Classes
    ComparisonFailure
  13. def getCause(): Throwable
    Definition Classes
    Throwable
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. def getExpected(): String
    Definition Classes
    ComparisonFailure
  16. def getLocalizedMessage(): String
    Definition Classes
    Throwable
  17. def getMessage(): String
    Definition Classes
    ComparisonFailExceptionComparisonFailure → Throwable
  18. def getStackTrace(): Array[StackTraceElement]
    Definition Classes
    Throwable
  19. final def getSuppressed(): Array[Throwable]
    Definition Classes
    Throwable
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  21. def initCause(arg0: Throwable): Throwable
    Definition Classes
    Throwable
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. val isStackTracesEnabled: Boolean
  24. val location: Location
  25. val message: String
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  29. val obtained: Any
  30. val obtainedString: String
  31. def printStackTrace(arg0: PrintWriter): Unit
    Definition Classes
    Throwable
  32. def printStackTrace(arg0: PrintStream): Unit
    Definition Classes
    Throwable
  33. def printStackTrace(): Unit
    Definition Classes
    Throwable
  34. def setStackTrace(arg0: Array[StackTraceElement]): Unit
    Definition Classes
    Throwable
  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    Throwable → AnyRef → Any
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def withMessage(newMessage: String): ComparisonFailException

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from ComparisonFailure

Inherited from AssertionError

Inherited from Error

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped