corda / net.corda.testing.core / SerializationEnvironmentRule

SerializationEnvironmentRule

class SerializationEnvironmentRule

A test serialization rule implementation for use in tests

Parameters

inheritable - whether new threads inherit the environment, use sparingly.

Constructors

<init>

SerializationEnvironmentRule(inheritable: Boolean = false)

A test serialization rule implementation for use in tests

Properties

checkpointContext

val checkpointContext: SerializationContext

serializationFactory

val serializationFactory: SerializationFactory

Functions

apply

fun apply(base: <ERROR CLASS>, description: <ERROR CLASS>): <ERROR CLASS>

Companion Object Functions

run

fun <T> run(taskLabel: String, task: (SerializationEnvironment) -> T): T

Do not call, instead use SerializationEnvironmentRule as a org.junit.Rule.

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.