diff options
author | Neil Fuller <nfuller@google.com> | 2014-04-23 09:27:05 +0100 |
---|---|---|
committer | Neil Fuller <nfuller@google.com> | 2014-04-23 09:35:04 +0100 |
commit | 1f91ac84933dfab9ce09c31b736b45a22f0fed56 (patch) | |
tree | d71e402050f2510ba5f3d87dae34c71808e81b41 | |
parent | 5d5c657b0101123d8c4de4a316f50a2a76c41a46 (diff) | |
download | libcore-1f91ac84933dfab9ce09c31b736b45a22f0fed56.zip libcore-1f91ac84933dfab9ce09c31b736b45a22f0fed56.tar.gz libcore-1f91ac84933dfab9ce09c31b736b45a22f0fed56.tar.bz2 |
Removal of a broken CTS test
The cause of the failure is that the test asserts that the
entrySet() Set from an UnmodifiableMap is Serializable,
when it is not.
The test fails under the RI as well so I have removed it.
Bug: 11668227
Change-Id: Ife3ce848f77d6f63931852792e0f6f0db83382a8
-rw-r--r-- | harmony-tests/src/test/java/org/apache/harmony/tests/java/io/SerializationStressTest4.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/SerializationStressTest4.java b/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/SerializationStressTest4.java index 1e569e8..c5dd4f0 100644 --- a/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/SerializationStressTest4.java +++ b/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/SerializationStressTest4.java @@ -721,35 +721,6 @@ public class SerializationStressTest4 extends SerializationStressTest { } - public void test_writeObject_Collections_UnmodifiableMap_UnmodifiableEntrySet() throws Exception { - // Test for method void - // java.io.ObjectOutputStream.writeObject(java.util.Collections.UnmodifiableMap.UnmodifiableEntrySet) - - Object objToSave = null; - Object objLoaded = null; - - - objToSave = java.util.Collections.unmodifiableMap(MAP).entrySet(); - if (DEBUG) - System.out.println("Obj = " + objToSave); - objLoaded = dumpAndReload(objToSave); - - // Has to have worked - boolean equals; - equals = ((java.util.Collection) objToSave).size() == ((java.util.Collection) objLoaded) - .size(); - if (equals) { - java.util.Iterator iter1 = ((java.util.Collection) objToSave) - .iterator(), iter2 = ((java.util.Collection) objLoaded) - .iterator(); - while (iter1.hasNext()) - equals = equals && iter1.next().equals(iter2.next()); - } - assertTrue(MSG_TEST_FAILED + objToSave, equals); - - - } - public void test_writeObject_NumberFormat() { // Test for method void // java.io.ObjectOutputStream.writeObject(java.text.NumberFormat) |