assertNotNull
fun <E : KoBaseProvider> E?.assertNotNull(additionalMessage: String? = null, testName: String? = null)
Asserts that the element has not null
value.
Parameters
additionalMessage
An optional message to provide additional context when the assertion fails. This message will be included in the assertion error if the assertion fails.
testName
An optional test name recommended for Kotest
tests. By default, test name is derived from JUnit method name, however for Kotest framework it must be manually specified to be displayed in error messages and enable suppression.