ValueWrapper

actual typealias ValueWrapper = org.opentest4j.ValueWrapper
expect class ValueWrapper
actual class ValueWrapper

Serializable representation of a value that was used in an assertion.

This class only stores the value if it implements java.io.Serializable (on js this is always the case).

In any case, it stores its runtime type, identity hash code}, and string representation} determined via toString(). If the invocation of toString() throws an Exception, the string representation will take the form of "<Exception in toString(): " + e + ">", where "e" is the caught exception.

The toString method returns the string representation of the value along with its type and identity hash code.

Serializable representation of a value that was used in an assertion.

This class only stores the value if it implements Serializable. In any case, it stores its type, , and determined via String.valueOf. If the invocation of String.valueOf(Object) throws an Exception, the string representation will take the form of "<Exception in toString(): " + e + ">", where "e" is the caught exception.

The toString method returns the string representation of the value along with its type and identity hash code.

Author

Marc Philipp

Sam Brannen

Since

1.0

Author

Marc Philipp

Sam Brannen

Since

1.0

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns the original value supplied to .create.

Link copied to clipboard

Returns the original value supplied to toValueWrapper.

Link copied to clipboard

Returns the value's identity hash code.

Link copied to clipboard

Returns the value's identity hash code.

Link copied to clipboard
Link copied to clipboard

Returns the value's string representation.

Link copied to clipboard
val value: Any?

Returns the value supplied to .create if the value implements Serializable; otherwise, null.

Link copied to clipboard
expect val ValueWrapper.value: Any?
actual val ValueWrapper.value: Any?

Returns the value supplied to toValueWrapper if the value java.io.Serializable (always true on js and native); otherwise, null.

Link copied to clipboard
val valueType: KClass<*>?

Returns the value's runtime type or null if the value is null.

Link copied to clipboard
expect val ValueWrapper.valueType: KClass<*>?
actual val ValueWrapper.valueType: KClass<*>?

Returns the value's runtime type or null if the value is null.

Functions

Link copied to clipboard
open override fun toString(): String

Returns the value's string representation along with its type and identity hash code.