Better bullet point.
diff --git a/src/main/java/org/testng/reporters/jq/Main.java b/src/main/java/org/testng/reporters/jq/Main.java
index 2c815fc..d8b80a0 100644
--- a/src/main/java/org/testng/reporters/jq/Main.java
+++ b/src/main/java/org/testng/reporters/jq/Main.java
@@ -18,7 +18,8 @@
public class Main implements IReporter {
private static final String[] RESOURCES = new String[] {
"jquery-1.7.1.min.js", "testng-reports.css", "testng-reports.js",
- "passed.png", "failed.png", "skipped.png", "navigator-bullet.png"
+ "passed.png", "failed.png", "skipped.png", "navigator-bullet.png",
+ "bullet_point.png"
};
private Model m_model;
@@ -73,8 +74,11 @@
throw new RuntimeException("Couldn't find resource head3");
} else {
for (String fileName : RESOURCES) {
- Files.copyFile(getClass().getResourceAsStream("/" + fileName),
- new File(m_outputDirectory, fileName));
+ InputStream is = getClass().getResourceAsStream("/" + fileName);
+ if (is == null) {
+ throw new AssertionError("Couldn't find resource: " + fileName);
+ }
+ Files.copyFile(is, new File(m_outputDirectory, fileName));
}
all = Files.readFile(head3);
Utils.writeFile(m_outputDirectory, "index.html", all + xsb.toXML());
diff --git a/src/main/resources/bullet_point.png b/src/main/resources/bullet_point.png
new file mode 100644
index 0000000..176e6d5
--- /dev/null
+++ b/src/main/resources/bullet_point.png
Binary files differ
diff --git a/src/main/resources/testng-reports.css b/src/main/resources/testng-reports.css
index 1bc7698..8c3dffd 100644
--- a/src/main/resources/testng-reports.css
+++ b/src/main/resources/testng-reports.css
@@ -123,7 +123,7 @@
}
.suite-section-content {
- list-style-image: url(navigator-bullet.png);
+ list-style-image: url(bullet_point.png);
}
.top-banner-root {