-
- All Implemented Interfaces:
-
java.io.Serializable,org.gradle.internal.serialize.PlaceholderExceptionSupport
public final class KotlinTestFailure extends PlaceholderExceptionClass to be shown in the default Gradle tests console reporter.
Example console output:
sample.SampleTests.testMe FAILED AssertionError at mpplib2/src/commonTest/kotlin/sample/SampleTests.kt:9Inherits PlaceholderException in order to override a displayed exception-class name, e.g. kotlin.AssertionError instead of KotlinTestFailure
-
-
Constructor Summary
Constructors Constructor Description KotlinTestFailure(String className, String message, String stackTraceString, List<StackTraceElement> stackTrace, String expected, String actual)
-
Method Summary
Modifier and Type Method Description final StringgetExpected()final StringgetActual()Array<StackTraceElement>getStackTrace()UnitprintStackTrace(PrintWriter s)ThrowablefillInStackTrace()StringtoString()-
Methods inherited from class org.gradle.internal.serialize.PlaceholderException
getExceptionClassName, getMessage -
Methods inherited from class kotlin.Throwable
addSuppressed, getCause, getLocalizedMessage, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getExpected
final String getExpected()
-
getStackTrace
Array<StackTraceElement> getStackTrace()
-
printStackTrace
Unit printStackTrace(PrintWriter s)
-
fillInStackTrace
Throwable fillInStackTrace()
-
-
-
-