interface AtomicAssertion: Assertion, Any

An assertion of a single condition on a subject.

Methods

pass

abstract fun pass(actual: Any?, description: String?)

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

Parameters

Name Description
actual: Any?

an actual value, that is the value that matched the expected value.

description: String?

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

ReturnValue

Name Description
Unit

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