I upgraded from Java 7 to Java 8 and noticed Junit failures in places where the keySet() of HashMap was used.
Map<String, String> map = new HashMap<String, String>();
map.put("var1".toUpperCase(), "var");
map.put("var".toUpperCase(), "var1");
Set<String> varKeys = replacementMap.keySet();
In Java 7:
varKeys=[VAR,VAR1]
In Java 8:
varKeys=[VAR1,VAR]
Any help on this?