Class

munit

ComparisonFailException

Related Doc: package munit

Permalink

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)

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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def addSuppressed(arg0: Throwable): Unit

    Permalink
    Definition Classes
    Throwable
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. val expected: Any

    Permalink

    the expected value from this comparison.

  10. val expectedString: String

    Permalink

    the pretty-printed representation of the obtained value.

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

  11. def fillInStackTrace(): Throwable

    Permalink
    Definition Classes
    ComparisonFailException → Throwable
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def getActual(): String

    Permalink
    Definition Classes
    ComparisonFailure
  14. def getCause(): Throwable

    Permalink
    Definition Classes
    Throwable
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getExpected(): String

    Permalink
    Definition Classes
    ComparisonFailure
  17. def getLocalizedMessage(): String

    Permalink
    Definition Classes
    Throwable
  18. def getMessage(): String

    Permalink
    Definition Classes
    ComparisonFailException → ComparisonFailure → Throwable
  19. def getStackTrace(): Array[StackTraceElement]

    Permalink
    Definition Classes
    Throwable
  20. final def getSuppressed(): Array[Throwable]

    Permalink
    Definition Classes
    Throwable
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. def initCause(arg0: Throwable): Throwable

    Permalink
    Definition Classes
    Throwable
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. val isStackTracesEnabled: Boolean

    Permalink
  25. val location: Location

    Permalink

    the source location where this exception was thrown.

    the source location where this exception was thrown.

    Definition Classes
    ComparisonFailExceptionFailExceptionLike
  26. val message: String

    Permalink

    the exception message.

  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. val obtained: Any

    Permalink

    the obtained value from this comparison.

  31. val obtainedString: String

    Permalink

    the pretty-printed representation of the obtained value.

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

  32. def printStackTrace(arg0: PrintWriter): Unit

    Permalink
    Definition Classes
    Throwable
  33. def printStackTrace(arg0: PrintStream): Unit

    Permalink
    Definition Classes
    Throwable
  34. def printStackTrace(): Unit

    Permalink
    Definition Classes
    Throwable
  35. def setStackTrace(arg0: Array[StackTraceElement]): Unit

    Permalink
    Definition Classes
    Throwable
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

    Permalink
    Definition Classes
    Throwable → AnyRef → Any
  38. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def withMessage(newMessage: String): ComparisonFailException

    Permalink

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