In package strikt.api

class strikt.api.Assertion

Allows assertion implementations to determine a result.

Methods

abstract fun pass()

Mark this result as passed.

Parameters:
  • No parameters
abstract fun fail(description: String?, cause: Throwable?)

Mark this result as failed.

Parameters:
  • description: String?

    An optional description of the failure.

  • cause: Throwable?