Klasse ClosureMediator
java.lang.Object
ch.nolix.core.testing.standardtest.ClosureMediator
A
ClosureMediator is not mutable.- Version:
- 2016-10-01
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidGenerates an error if the closure of the currentClosureMediatorthrows an exception.static ClosureMediatorforClosure(Runnable closure) Generates an error if the closure of the currentClosureMediatordoes not throw an exception.
-
Methodendetails
-
forClosure
- Parameter:
closure-- Gibt zurück:
- a new
ClosureMediatorfor the given closure. - Löst aus:
ArgumentIsNullException- if the given closure is null.
-
throwsException
Generates an error if the closure of the currentClosureMediatordoes not throw an exception.- Gibt zurück:
- a new
ExtendedThrownExceptionMediator.
-
doesNotThrowException
public void doesNotThrowException()Generates an error if the closure of the currentClosureMediatorthrows an exception.
-