shouldNotThrow |
Verifies that a block of code will not throw a Throwable of type T or subtypes fun <T : Throwable> shouldNotThrow(block: () -> Any?): Unit |
shouldNotThrowAny |
Verifies that a block of code does NOT throw any Throwable fun <T> shouldNotThrowAny(block: () -> T): T |
shouldNotThrowAnyUnit |
Verifies that a block of code does NOT throw any Throwable fun shouldNotThrowAnyUnit(block: () -> Unit): Unit |
shouldNotThrowExactly |
Verifies that a block of code doesn't throw a Throwable of type T, not including subclasses of T fun <T : Throwable> shouldNotThrowExactly(block: () -> Any?): Unit |
shouldNotThrowExactlyUnit |
Verifies that a block of code doesn't throw a Throwable of type T, not including subclasses of T fun <T : Throwable> shouldNotThrowExactlyUnit(block: () -> Unit): Unit |
shouldNotThrowMessage |
Verifies that a block of code does not throws any Throwable with given message. fun <T> shouldNotThrowMessage(message: String, block: () -> T): Unit |
shouldNotThrowUnit |
Verifies that a block of code doesn't throw a Throwable of type T or subtypes fun <T : Throwable> shouldNotThrowUnit(block: () -> Unit): Unit |
shouldThrow |
Verifies if a block of code will throw a Throwable of type T or subtypes fun <T : Throwable> shouldThrow(block: () -> Any?): T |
shouldThrowAny |
Verifies that a block of code throws any Throwable fun shouldThrowAny(block: () -> Any?): Throwable |
shouldThrowAnyUnit |
Verifies that a block of code throws any Throwable fun shouldThrowAnyUnit(block: () -> Unit): Throwable |
shouldThrowExactly |
Verifies that a block of code throws a Throwable of type T, not including subclasses of T fun <T : Throwable> shouldThrowExactly(block: () -> Any?): T |
shouldThrowExactlyUnit |
Verifies that a block of code throws a Throwable of type T, not including subclasses of T fun <T : Throwable> shouldThrowExactlyUnit(block: () -> Unit): T |
shouldThrowMessage |
Verifies that a block of code throws any Throwable with given message. fun <T> shouldThrowMessage(message: String, block: () -> T): Unit |
shouldThrowUnit |
Verifies if a block of code throws a Throwable of type T or subtypes fun <T : Throwable> shouldThrowUnit(block: () -> Unit): T |