ComparisonFailException
munit.ComparisonFailException
class ComparisonFailException(val message: String, val obtained: Any, val obtainedString: String, val expected: Any, val expectedString: String, val location: Location, val isStackTracesEnabled: Boolean) extends ComparisonFailure, 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.
Value parameters
- 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.
- 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.
Attributes
- Graph
-
- Supertypes
-
class ComparisonFailureclass AssertionErrorclass Errorclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
Members list
In this article