TestNGAsserter

Implements kotlin.test assertions by delegating them to org.testng.Assert class.

Since Kotlin

1.0

Functions

Link copied to clipboard
open override fun assertEquals(message: String?, expected: Any?, actual: Any?)

Asserts that the specified values are equal.

Since Kotlin 1.0
Link copied to clipboard
open override fun assertNotEquals(message: String?, illegal: Any?, actual: Any?)

Asserts that the specified values are not equal.

Since Kotlin 1.0
Link copied to clipboard
open override fun assertNotNull(message: String?, actual: Any?)

Asserts that the specified value is not null.

Since Kotlin 1.0
Link copied to clipboard
open override fun assertNotSame(message: String?, illegal: Any?, actual: Any?)

Asserts that the specified values are not the same instance.

Since Kotlin 1.0
Link copied to clipboard
open override fun assertNull(message: String?, actual: Any?)

Asserts that the specified value is null.

Since Kotlin 1.0
Link copied to clipboard
open override fun assertSame(message: String?, expected: Any?, actual: Any?)

Asserts that the specified values are the same instance.

Since Kotlin 1.0
Link copied to clipboard
open fun assertTrue(lazyMessage: () -> String?, actual: Boolean)
open fun assertTrue(message: String?, actual: Boolean)

Asserts that the specified value is true.

Since Kotlin 1.0
Link copied to clipboard
open override fun fail(message: String?): Nothing

Fails the current test with the specified message.

Since Kotlin 1.0