Skip to content

Commit c52e259

Browse files
committed
Semms it has something to do with order of resource-phase
Tried to rearrange the order
1 parent a328ad9 commit c52e259

File tree

3 files changed

+43
-37
lines changed

3 files changed

+43
-37
lines changed

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,18 @@
128128
</execution>
129129
</executions>
130130
</plugin>
131+
<plugin>
132+
<artifactId>maven-resources-plugin</artifactId>
133+
<version>2.6</version>
134+
<executions>
135+
<execution>
136+
<phase>process-resources</phase>
137+
<goals>
138+
<goal>resources</goal>
139+
</goals>
140+
</execution>
141+
</executions>
142+
</plugin>
131143
<plugin>
132144
<groupId>org.apache.maven.plugins</groupId>
133145
<artifactId>maven-surefire-plugin</artifactId>

src/main/resources/placeholder

Whitespace-only changes.

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

Lines changed: 31 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)