Skip to content

Commit 935e0f1

Browse files
author
Denys Zaiats
committed
[master] - fix for the improving of the screenshots
1 parent ada3b18 commit 935e0f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/net/itarray/automotion/internal/DrawableScreenshot.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import java.io.File;
1111
import java.io.IOException;
1212

13-
import static net.itarray.automotion.validation.Constants.*;
13+
import static net.itarray.automotion.validation.Constants.TARGET_AUTOMOTION_IMG;
1414

1515
public class DrawableScreenshot {
1616

@@ -67,7 +67,7 @@ public void drawHorizontalLine(Scalar y) {
6767
public void saveDrawing() {
6868
try {
6969
ImageIO.write(drawings, "png", drawingsOutput);
70-
} catch (IOException e) { }
70+
} catch (IOException | NullPointerException e) {}
7171

7272
drawings.getGraphics().dispose();
7373
}

src/main/java/net/itarray/automotion/internal/HtmlReportBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private Html buildHtml() throws IOException, ParseException {
214214
}};
215215

216216
new Div(this,
217-
new ClassAttribute("col-xs-12 col-md-8"),
217+
new ClassAttribute("col-xs-12 col-md-12"),
218218
new Style("margin-top: 5px"),
219219
new Id("bar")) {{
220220
}};

0 commit comments

Comments
 (0)