JUnitMethodResult

data class JUnitMethodResult: Any

Represents the result of executing a certain JUnit Test.

Fields

Name Description
val methodName: String

is a String with the name of the test function

val fullMethodName: String

is a String with the full name of the test function (i.e. includes the package name)

val type: JUnitMethodResultType

is the type of the result. Possible values are "Success", "Error" or "Failure"

val failureType: String?

is a a String

val failureErrorLine: String?

is a String

val failureDetail: String?

is a String

Constructors

<init>

constructor(methodName: String, fullMethodName: String, type: JUnitMethodResultType, failureType: String?, failureErrorLine: String?, failureDetail: String?)

Represents the result of executing a certain JUnit Test.

Parameters

Name Description
methodName: String
fullMethodName: String
type: JUnitMethodResultType
failureType: String?
failureErrorLine: String?
failureDetail: String?

Methods

filterStacktrace

fun filterStacktrace(packageName: String)

Parameters

Name Description
packageName: String

ReturnValue

Name Description
Unit

getClassName

fun getClassName(): String

ReturnValue

Name Description
String

toString

fun toString(): String

ReturnValue

Name Description
String

CompanionObject

JUnitMethodResult

data class JUnitMethodResult: Any

Represents the result of executing a certain JUnit Test.

Methods

empty

fun empty(): JUnitMethodResult

ReturnValue

Name Description
JUnitMethodResult