AtomicAssertion

interface AtomicAssertion

An assertion of a single condition on a subject.

Methods

fail

abstract fun fail(actual: Any?, description: String?, cause: Throwable?)

Mark this result as failed due to a comparison between two values.

Parameters

Name Description
actual: Any?

an actual value, that is the value that differed from the expected value.

description: String?

A description of the failure. May contain a String.format style placeholder for the actual value.

cause: Throwable?

ReturnValue

Name Description
Unit