Skip to content

Commit 09701b8

Browse files
committed
Trying to get more info about the NPE
1 parent 14689ae commit 09701b8

File tree

1 file changed

+31
-38
lines changed

1 file changed

+31
-38
lines changed

src/test/java/org/utplsql/api/reporter/CoverageHTMLReporterAssetTest.java

Lines changed: 31 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import org.junit.jupiter.api.AfterAll;
44
import org.junit.jupiter.api.Test;
5+
56
import static org.junit.jupiter.api.Assertions.*;
67

78
import java.io.File;
@@ -13,53 +14,45 @@ public class CoverageHTMLReporterAssetTest {
1314

1415
private static final String TEST_FOLDER = "__testAssets";
1516

16-
private void testFileExists( Path filePath )
17-
{
18-
File f = new File( filePath.toUri() );
17+
private void testFileExists(Path filePath) {
18+
File f = new File(filePath.toUri());
1919

2020
assertTrue(f.exists(), () -> "File " + f.toString() + " does not exist");
2121
}
2222

2323
@Test
24-
public void writeReporterAssetsTo()
25-
{
26-
try {
27-
Path targetPath = Paths.get(TEST_FOLDER);
24+
public void writeReporterAssetsTo() throws RuntimeException {
25+
Path targetPath = Paths.get(TEST_FOLDER);
2826

29-
// Act
30-
CoverageHTMLReporter.writeReportAssetsTo(targetPath);
27+
// Act
28+
CoverageHTMLReporter.writeReportAssetsTo(targetPath);
3129

32-
testFileExists(targetPath.resolve(Paths.get("colorbox", "border.png")));
33-
testFileExists(targetPath.resolve(Paths.get("colorbox", "controls.png")));
34-
testFileExists(targetPath.resolve(Paths.get("colorbox", "loading.gif")));
35-
testFileExists(targetPath.resolve(Paths.get("colorbox", "loading_background.png")));
30+
testFileExists(targetPath.resolve(Paths.get("colorbox", "border.png")));
31+
testFileExists(targetPath.resolve(Paths.get("colorbox", "controls.png")));
32+
testFileExists(targetPath.resolve(Paths.get("colorbox", "loading.gif")));
33+
testFileExists(targetPath.resolve(Paths.get("colorbox", "loading_background.png")));
3634

37-
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_flat_0_aaaaaa_40x100.png")));
38-
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_flat_75_ffffff_40x100.png")));
39-
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_glass_55_fbf9ee_1x400.png")));
40-
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_glass_65_ffffff_1x400.png")));
41-
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_glass_75_dadada_1x400.png")));
42-
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_glass_75_e6e6e6_1x400.png")));
43-
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_glass_95_fef1ec_1x400.png")));
44-
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_highlight-soft_75_cccccc_1x100.png")));
45-
testFileExists(targetPath.resolve(Paths.get("images", "ui-icons_2e83ff_256x240.png")));
46-
testFileExists(targetPath.resolve(Paths.get("images", "ui-icons_222222_256x240.png")));
47-
testFileExists(targetPath.resolve(Paths.get("images", "ui-icons_454545_256x240.png")));
48-
testFileExists(targetPath.resolve(Paths.get("images", "ui-icons_888888_256x240.png")));
49-
testFileExists(targetPath.resolve(Paths.get("images", "ui-icons_cd0a0a_256x240.png")));
35+
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_flat_0_aaaaaa_40x100.png")));
36+
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_flat_75_ffffff_40x100.png")));
37+
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_glass_55_fbf9ee_1x400.png")));
38+
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_glass_65_ffffff_1x400.png")));
39+
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_glass_75_dadada_1x400.png")));
40+
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_glass_75_e6e6e6_1x400.png")));
41+
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_glass_95_fef1ec_1x400.png")));
42+
testFileExists(targetPath.resolve(Paths.get("images", "ui-bg_highlight-soft_75_cccccc_1x100.png")));
43+
testFileExists(targetPath.resolve(Paths.get("images", "ui-icons_2e83ff_256x240.png")));
44+
testFileExists(targetPath.resolve(Paths.get("images", "ui-icons_222222_256x240.png")));
45+
testFileExists(targetPath.resolve(Paths.get("images", "ui-icons_454545_256x240.png")));
46+
testFileExists(targetPath.resolve(Paths.get("images", "ui-icons_888888_256x240.png")));
47+
testFileExists(targetPath.resolve(Paths.get("images", "ui-icons_cd0a0a_256x240.png")));
5048

51-
testFileExists(targetPath.resolve(Paths.get("application.css")));
52-
testFileExists(targetPath.resolve(Paths.get("application.js")));
53-
testFileExists(targetPath.resolve(Paths.get("favicon_green.png")));
54-
testFileExists(targetPath.resolve(Paths.get("favicon_red.png")));
55-
testFileExists(targetPath.resolve(Paths.get("favicon_yellow.png")));
56-
testFileExists(targetPath.resolve(Paths.get("loading.gif")));
57-
testFileExists(targetPath.resolve(Paths.get("magnify.png")));
58-
}
59-
catch ( RuntimeException e )
60-
{
61-
fail(e);
62-
}
49+
testFileExists(targetPath.resolve(Paths.get("application.css")));
50+
testFileExists(targetPath.resolve(Paths.get("application.js")));
51+
testFileExists(targetPath.resolve(Paths.get("favicon_green.png")));
52+
testFileExists(targetPath.resolve(Paths.get("favicon_red.png")));
53+
testFileExists(targetPath.resolve(Paths.get("favicon_yellow.png")));
54+
testFileExists(targetPath.resolve(Paths.get("loading.gif")));
55+
testFileExists(targetPath.resolve(Paths.get("magnify.png")));
6356

6457
}
6558

0 commit comments

Comments
 (0)