Skip to content
Snippets Groups Projects
Commit 06c503cb authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

[Misc] Fix the test for Java 11

parent 3643ed51
No related branches found
No related tags found
No related merge requests found
...@@ -186,7 +186,7 @@ void templateWithoutScriptRight() throws Exception ...@@ -186,7 +186,7 @@ void templateWithoutScriptRight() throws Exception
@Test @Test
void templateCheatingProtection() throws Exception void templateCheatingProtection() throws Exception
{ {
when(this.environmentMock.getResource("/templates/../secure[]")).thenReturn(new URL("file://secure[]")); when(this.environmentMock.getResource("/templates/../secure[]")).thenReturn(new URL("file://secure%5B%5D"));
when(this.environmentMock.getResourceAsStream("/templates/../template[]")) when(this.environmentMock.getResourceAsStream("/templates/../template[]"))
.thenReturn(new ByteArrayInputStream("source".getBytes("UTF8"))); .thenReturn(new ByteArrayInputStream("source".getBytes("UTF8")));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment