44da6f
From a7d58ff8edefb992d4989a4e2d8f4eec104e4e93 Mon Sep 17 00:00:00 2001
44da6f
From: Marian Koncek <mkoncek@redhat.com>
44da6f
Date: Thu, 31 Oct 2019 15:38:55 +0100
44da6f
Subject: [PATCH] Port to OpenJDK 11
44da6f
44da6f
---
44da6f
 .../org/apache/velocity/test/BuiltInEventHandlerTestCase.java | 4 ++--
44da6f
 1 file changed, 2 insertions(+), 2 deletions(-)
44da6f
44da6f
diff --git a/src/test/org/apache/velocity/test/BuiltInEventHandlerTestCase.java b/src/test/org/apache/velocity/test/BuiltInEventHandlerTestCase.java
44da6f
index 2005b0b..fb29ce3 100644
44da6f
--- a/src/test/org/apache/velocity/test/BuiltInEventHandlerTestCase.java
44da6f
+++ b/src/test/org/apache/velocity/test/BuiltInEventHandlerTestCase.java
44da6f
@@ -339,14 +339,14 @@ public class BuiltInEventHandlerTestCase extends BaseTestCase {
44da6f
         writer = new StringWriter();
44da6f
         ve1.evaluate(context,writer,"test","$list.get(0)");
44da6f
         assertTrue(writer.toString().indexOf("IndexOutOfBoundsException") != -1);
44da6f
-        assertTrue(writer.toString().indexOf("Index: 0, Size: 0") == -1);
44da6f
+        assertTrue(writer.toString().indexOf("Index 0 out of bounds for length 0") == -1);
44da6f
         assertTrue(writer.toString().indexOf("ArrayList") == -1);
44da6f
 
44da6f
         // message
44da6f
         writer = new StringWriter();
44da6f
         ve2.evaluate(context,writer,"test","$list.get(0)");
44da6f
         assertTrue(writer.toString().indexOf("IndexOutOfBoundsException") != -1);
44da6f
-        assertTrue(writer.toString().indexOf("Index: 0, Size: 0") != -1);
44da6f
+        assertTrue(writer.toString().indexOf("Index 0 out of bounds for length 0") != -1);
44da6f
         assertTrue(writer.toString().indexOf("ArrayList") == -1);
44da6f
 
44da6f
         // stack trace
44da6f
-- 
44da6f
2.21.0
44da6f