Changeset d4bafae for core


Ignore:
Timestamp:
Dec 5, 2017 8:33:12 PM (3 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
f5dffb0
Parents:
2f8249b
Message:

Don't check error messages for JRE-generated errors

They may change across Java versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/test/junit/net/i2p/data/LeaseSetTest.java

    r2f8249b rd4bafae  
    4343        // should contain no leases now.
    4444        exception.expect(IndexOutOfBoundsException.class);
    45         // Good for Java 7/8, but Java 9 message is "Index 0 out-of-bounds for length 0"
    46         // and do we really need to verify the message?
    47         //exception.expectMessage("Index: 0, Size: 0");
    4845        subj.getLease(0);
    4946    }
     
    5653        // this shouldn't work either
    5754        exception.expect(IndexOutOfBoundsException.class);
    58         exception.expectMessage("-1");
    5955        subj.getLease(-1);
    6056    }
Note: See TracChangeset for help on using the changeset viewer.