hasValue

fun <T> Assert<Optional<T>>.hasValue(expected: T)(source)

Asserts the optional has the expected value.