Skip to content

Commit

Permalink
Add tests for spring boot with classloader-leak-preventor
Browse files Browse the repository at this point in the history
  • Loading branch information
ArloL committed Aug 28, 2017
1 parent 278bdb1 commit 96ba544
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/java/de/evosec/leaktest/WebAppTestTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,22 @@ public void testSpringBoot() throws Exception {
new WebAppTest().warPath(warPath).run();
}

@Test
public void testSpringBootClassLoaderLeakPreventor3_2_4_0()
throws Exception {
Path warPath = getClassPathResource(
"spring-boot-classloader-leak-preventor3-2.4.0.war");
new WebAppTest().warPath(warPath).run();
}

@Test
public void testSpringBootClassLoaderLeakPreventor_2_4_0()
throws Exception {
Path warPath = getClassPathResource(
"spring-boot-classloader-leak-preventor-2.4.0.war");
new WebAppTest().warPath(warPath).run();
}

public Path getClassPathResource(String path) throws Exception {
return Paths.get(getClassPathUrl(path).toURI());
}
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 96ba544

Please sign in to comment.