interface ICreator<TExpected : Throwable>
Represents the final step of a sophisticated a Throwable was thrown assertion builder which creates the IAssertionGroup as such.
TExpected
- The type of the Throwable which is expected to be thrown.
abstract fun executeActAndCreateAssertion(throwableThrownBuilder: ThrowableThrownBuilder, description: ITranslatable, expectedType: KClass<TExpected>, assertionCreator: IAssertionPlant<TExpected>.() -> Unit): Unit
Executes the act lambda of the given throwableThrownBuilder, catches any thrown Throwable, creates based on it a corresponding IAssertion representing the sophisticated assertion and also checks whether it holds or not. |
class ThrowableThrownAssertionCreator<TExpected : Throwable> : ICreator<TExpected>
Represents a creator of a sophisticated a Throwable (of type TExpected) was thrown assertion. |