@FunctionalInterface public static interface ExceptionMatchers.ThrowingRunnable
Runnable, but permits checked exceptions to be thrown.
Use this to wrap your code for ExceptionMatchers.catching(ThrowingRunnable) so that the exception throwing code is
executed within a try ... catch block and can have assertions written against that result.
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Executes whatever it is that we think might throw an exception.
|
Copyright © 2017 Atlassian. All rights reserved.