apidocs / com.srv4pos.server.api.infrastructure / DiagnosticsUtil / assertExceptionThrown

assertExceptionThrown

static fun assertExceptionThrown(message: String!, exceptionType: Class<out Throwable!>!, method: Runnable!): Unit

Assert that expected exception has been thrown.

Parameters

message - String!: message if the exception has been not occurred

exceptionType - Class<out Throwable!>!: exception to be thrown

method - Runnable!: invoked method

Exceptions

Exception -