I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit d4bafaee authored by str4d's avatar str4d
Browse files

Don't check error messages for JRE-generated errors

They may change across Java versions.
parent 2f8249be
No related branches found
No related tags found
No related merge requests found
...@@ -42,9 +42,6 @@ public class LeaseSetTest extends StructureTest { ...@@ -42,9 +42,6 @@ public class LeaseSetTest extends StructureTest {
// should contain no leases now. // should contain no leases now.
exception.expect(IndexOutOfBoundsException.class); 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); subj.getLease(0);
} }
...@@ -55,7 +52,6 @@ public class LeaseSetTest extends StructureTest { ...@@ -55,7 +52,6 @@ public class LeaseSetTest extends StructureTest {
// this shouldn't work either // this shouldn't work either
exception.expect(IndexOutOfBoundsException.class); exception.expect(IndexOutOfBoundsException.class);
exception.expectMessage("-1");
subj.getLease(-1); subj.getLease(-1);
} }
......
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