From d4bafaeee8920a9990c5b0a273939c8cec27e73d Mon Sep 17 00:00:00 2001 From: str4d <str4d@mail.i2p> Date: Tue, 5 Dec 2017 20:33:12 +0000 Subject: [PATCH] Don't check error messages for JRE-generated errors They may change across Java versions. --- core/java/test/junit/net/i2p/data/LeaseSetTest.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/java/test/junit/net/i2p/data/LeaseSetTest.java b/core/java/test/junit/net/i2p/data/LeaseSetTest.java index d8cf59d912..893596e5c0 100644 --- a/core/java/test/junit/net/i2p/data/LeaseSetTest.java +++ b/core/java/test/junit/net/i2p/data/LeaseSetTest.java @@ -42,9 +42,6 @@ public class LeaseSetTest extends StructureTest { // should contain no leases now. exception.expect(IndexOutOfBoundsException.class); - // Good for Java 7/8, but Java 9 message is "Index 0 out-of-bounds for length 0" - // and do we really need to verify the message? - //exception.expectMessage("Index: 0, Size: 0"); subj.getLease(0); } @@ -55,7 +52,6 @@ public class LeaseSetTest extends StructureTest { // this shouldn't work either exception.expect(IndexOutOfBoundsException.class); - exception.expectMessage("-1"); subj.getLease(-1); } -- GitLab