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