toString() on array

toString() implementation for arrays does not convert array contents to
String, rather it will print array's type and hash code (defined as
identity hash code). To get string representation of contents of the
array, the array could be for example wrapped into Arrays.asList(), as
Collections produce content representation in their toString().

Change-Id: I08c0c4585c364b02f037c2dbd3eab78840d42de8
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
diff --git a/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/filesystem/FileCacheTest.java b/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/filesystem/FileCacheTest.java
index d5e0e91..e5fa304 100755
--- a/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/filesystem/FileCacheTest.java
+++ b/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/filesystem/FileCacheTest.java
@@ -14,6 +14,7 @@
 package org.eclipse.core.tests.filesystem;
 
 import java.io.*;
+import java.util.Arrays;
 import junit.framework.Test;
 import junit.framework.TestSuite;
 import org.eclipse.core.filesystem.EFS;
@@ -63,7 +64,7 @@
 				return;
 			}
 		}
-		fail(message + " arrays should be different, but they are not: " + expected);
+		fail(message + " arrays should be different, but they are not: " + Arrays.toString(expected));
 	}
 
 	/**