bug6135: re-throw exception after makojg screenshot

This commit is contained in:
Axel Uhl
2025-07-04 22:01:25 +02:00
parent 4692d6e980
commit a61298289d
@@ -28,8 +28,9 @@ public class ScreenShotRule implements TestExecutionExceptionHandler {
static final String SCREENSHOT_FILE_EXTENSION = ".png"; //$NON-NLS-1$
@Override
public void handleTestExecutionException(ExtensionContext context, Throwable cause) {
public void handleTestExecutionException(ExtensionContext context, Throwable cause) throws Throwable {
captureScreenshots(context);
throw cause;
}
/**
@@ -83,4 +84,4 @@ public class ScreenShotRule implements TestExecutionExceptionHandler {
private InputStream getScreenshotNotSupportedImage() {
return AbstractSeleniumTest.class.getResourceAsStream(NOT_SUPPORTED_IMAGE);
}
}
}