kotlin.test / kotlin.test / Asserter / assertNotNull assertNotNull Common JVM JS Native 1.0 open fun assertNotNull ( message : String ? , actual : Any ? ) : Unit (source) Asserts that the specified value is not null . Parameters message - the message to report if the assertion fails.