Skip to content

Commit ba17cec

Browse files
author
Johannes Spaeth
committed
Adding tests
1 parent 23f985a commit ba17cec

File tree

4 files changed

+3
-0
lines changed

4 files changed

+3
-0
lines changed

src/test/java/de/codeshield/log4jshell/Log4JDetectorTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ public class Log4JDetectorTests
1414
@Test
1515
public void checkVulnerables() throws IOException, URISyntaxException {
1616
assertTrue(checkResourceFile("/en16931-xml-validator-2.0.0-b2-jar-with-dependencies.jar"));
17+
assertTrue(checkResourceFile("/log4j-core-2.12.1.jar"));
18+
assertTrue(checkResourceFile("/log4j-core-2.14.1.jar"));
1719
}
1820

1921
@Test
2022
public void checkSecure() throws IOException, URISyntaxException {
2123
assertFalse(checkResourceFile("/spring-boot-2.5.7.jar") );
24+
assertFalse(checkResourceFile("/log4j-core-2.15.0.jar"));
2225
}
2326

2427
private boolean checkResourceFile(String url) throws IOException, URISyntaxException {
1.6 MB
Binary file not shown.
1.66 MB
Binary file not shown.
1.71 MB
Binary file not shown.

0 commit comments

Comments
 (0)