Package org.djutils.test
Interface UnitTest.Execution
- Enclosing class:
 - UnitTest
 
- Functional Interface:
 - This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
 
Functional interface for calls to Try.execute(...). For this a lambda expression can be used.
 
 
Try.execute(() -> fis.close(), "Could not close the file.");
 Copyright (c) 2013-2025 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
 
 BSD-style license. See DJUTILS License.
 
- Author:
 - Alexander Verbraeck, Peter Knoppers
 
- 
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes some code using the context in which the Execution was created. 
- 
Method Details
- 
execute
Executes some code using the context in which the Execution was created.- Throws:
 Throwable- on any throwable in the try
 
 -