mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 04:35:32 +00:00
bug6135: re-throw exception after makojg screenshot
This commit is contained in:
+3
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user