@@ -23,43 +23,37 @@ private void testFileExists(Path filePath) {
2323 @ Test
2424 public void writeReporterAssetsTo () throws RuntimeException {
2525
26- try {
27- Path targetPath = Paths .get (TEST_FOLDER );
28-
29- // Act
30- CoverageHTMLReporter .writeReportAssetsTo (targetPath );
31-
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" )));
36-
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" )));
50-
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 ( Exception e ) {
60- e .printStackTrace ();
61- throw e ;
62- }
26+ Path targetPath = Paths .get (TEST_FOLDER );
27+
28+ // Act
29+ CoverageHTMLReporter .writeReportAssetsTo (targetPath );
30+
31+ testFileExists (targetPath .resolve (Paths .get ("colorbox" , "border.png" )));
32+ testFileExists (targetPath .resolve (Paths .get ("colorbox" , "controls.png" )));
33+ testFileExists (targetPath .resolve (Paths .get ("colorbox" , "loading.gif" )));
34+ testFileExists (targetPath .resolve (Paths .get ("colorbox" , "loading_background.png" )));
35+
36+ testFileExists (targetPath .resolve (Paths .get ("images" , "ui-bg_flat_0_aaaaaa_40x100.png" )));
37+ testFileExists (targetPath .resolve (Paths .get ("images" , "ui-bg_flat_75_ffffff_40x100.png" )));
38+ testFileExists (targetPath .resolve (Paths .get ("images" , "ui-bg_glass_55_fbf9ee_1x400.png" )));
39+ testFileExists (targetPath .resolve (Paths .get ("images" , "ui-bg_glass_65_ffffff_1x400.png" )));
40+ testFileExists (targetPath .resolve (Paths .get ("images" , "ui-bg_glass_75_dadada_1x400.png" )));
41+ testFileExists (targetPath .resolve (Paths .get ("images" , "ui-bg_glass_75_e6e6e6_1x400.png" )));
42+ testFileExists (targetPath .resolve (Paths .get ("images" , "ui-bg_glass_95_fef1ec_1x400.png" )));
43+ testFileExists (targetPath .resolve (Paths .get ("images" , "ui-bg_highlight-soft_75_cccccc_1x100.png" )));
44+ testFileExists (targetPath .resolve (Paths .get ("images" , "ui-icons_2e83ff_256x240.png" )));
45+ testFileExists (targetPath .resolve (Paths .get ("images" , "ui-icons_222222_256x240.png" )));
46+ testFileExists (targetPath .resolve (Paths .get ("images" , "ui-icons_454545_256x240.png" )));
47+ testFileExists (targetPath .resolve (Paths .get ("images" , "ui-icons_888888_256x240.png" )));
48+ testFileExists (targetPath .resolve (Paths .get ("images" , "ui-icons_cd0a0a_256x240.png" )));
49+
50+ testFileExists (targetPath .resolve (Paths .get ("application.css" )));
51+ testFileExists (targetPath .resolve (Paths .get ("application.js" )));
52+ testFileExists (targetPath .resolve (Paths .get ("favicon_green.png" )));
53+ testFileExists (targetPath .resolve (Paths .get ("favicon_red.png" )));
54+ testFileExists (targetPath .resolve (Paths .get ("favicon_yellow.png" )));
55+ testFileExists (targetPath .resolve (Paths .get ("loading.gif" )));
56+ testFileExists (targetPath .resolve (Paths .get ("magnify.png" )));
6357
6458 }
6559
0 commit comments