strikt-core / strikt.assertions / isPresent

isPresent

fun <T> Builder<Optional<T>>.isPresent(): Builder<T>

Asserts that an Optional contains a value (is not empty) and returns an assertion builder whose subject is the value.