Bug 44737 JavaElementLabels broken for nested anonymous types
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/CoreTests.java
}
	public static void assertEqualString(String current, String expected) {	
		if (current == null || expected == null) {
			if (current == expected) {
				return;
			}
			if (current == null) {
				assertTrue("Content not as expected: is 'null' expected: " + expected, false);
			} else {
				assertTrue("Content not as expected: expected 'null' is: " + current, false);
			}
			
		}
		
		
		int diffPos= getDiffPos(current, expected);
		if (diffPos != -1) {
			int diffAhead= Math.max(0, diffPos - printRange);
			int diffAfter= Math.min(current.length(), diffPos + printRange);
			
			String diffStr= current.substring(diffAhead, diffPos) + '^' + current.substring(diffPos, diffAfter);
			assertTrue("Content not as expected: is\n" + current + "\nDiffers at pos " + diffPos + ": " + diffStr + "\nexpected:\n" + expected, false);
		}
	}
	
	public static void assertEqualStringIgnoreDelim(String str1, String str2) throws IOException {
		BufferedReader read1= new BufferedReader(new StringReader(str1));
		BufferedReader read2= new BufferedReader(new StringReader(str2));
		
		int line= 1;