Klasse ClosureMediator
java.lang.Object
ch.nolix.core.testing.standardtest.ClosureMediator
A
ClosureMediator is not mutable.- Version:
- 2016-10-01
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungClosureMediator(Runnable closure) Creates a newClosureMediatorfor the given closure. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidGenerates an error if the closure of the currentClosureMediatorthrows an exception.Generates an error if the closure of the currentClosureMediatordoes not throw an exception.
-
Konstruktordetails
-
ClosureMediator
Creates a newClosureMediatorfor the given closure.- Parameter:
closure-- Löst aus:
ArgumentIsNullException- if the given closure is null.
-
-
Methodendetails
-
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.
-