/libcore/luni/src/test/java/libcore/java/io/ |
D | SerializationTest.java | 29 import libcore.util.SerializationTester; 46 … FieldMadeTransient deserialized = (FieldMadeTransient) SerializationTester.deserializeHex(s); in testSerializeFieldMadeTransient() 66 FieldMadeStatic deserialized = (FieldMadeStatic) SerializationTester.deserializeHex(s); in testSerializeFieldMadeStatic() 91 SerializableContainer sc = (SerializableContainer) SerializationTester.deserializeHex(s); in testDeserializeNullUnserializableField() 115 SerializationTester.serializeHex(sc); in testSerializeUnserializableField() 138 SerializationTester.deserializeHex(s); in testDeserializeUnserializableField() 153 SerializationTester.deserializeHex(s); in testSerialVersionUidChange() 170 SerializationTester.deserializeHex(s); in testMissingSerialVersionUid() 201 SerializationTester.deserializeHex(s); in testDeserializeWasSerializableClass() 244 SerializationTester.deserializeHex(s); in testDeserializeWasExternalizableClass() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TreeSetTest.java | 23 import libcore.util.SerializationTester; 31 new SerializationTester<TreeSet<String>>(set, s).test(); in testEmptySetSerialization() 42 new SerializationTester<NavigableSet<String>>(set, s) { in testSerializationWithComparator() method 60 new SerializationTester<SortedSet<String>>(subSet, s) { in testSubSetSerialization() method 78 new SerializationTester<SortedSet<String>>(subSet, s) { in testNavigableSubSetSerialization() method 115 new SerializationTester<NavigableSet<String>>(descendingSet, s) { in testDescendingSetSerialization() method 130 new SerializationTester<TreeSet<String>>(set, s) { in testJava5SerializationWithComparator() method
|
D | EnumSetTest.java | 22 import libcore.util.SerializationTester; 37 new SerializationTester<EnumSet<Roshambo>>(set, s).test(); in testSmallEnumSetSerialization() 52 new SerializationTester<EnumSet<Element>>(set, s).test(); in testLargeEnumSetSerialization() 71 SerializationTester.deserializeHex(s); in testDeserializeRemovedValue() 94 SerializationTester.deserializeHex(s)); in testDeserializeShuffledOrdinals()
|
D | EventObjectTest.java | 22 import libcore.util.SerializationTester; 48 new SerializationTester<EventObject>(eventObject, s) { in testSerializationNullsOutSource() method
|
D | TreeMapTest.java | 29 import libcore.util.SerializationTester; 274 new SerializationTester<TreeMap<String, String>>(map, s).test(); in testEmptyMapSerialization() 287 new SerializationTester<NavigableMap<String, String>>(map, s) { in testSerializationWithComparator() method 315 new SerializationTester<SortedMap<String, String>>(subMap, s) { in testSubMapSerialization() method 347 new SerializationTester<SortedMap<String, String>>(subMap, s) { in testNavigableSubMapSerialization() method 379 new SerializationTester<NavigableMap<String, String>>(descendingMap, s) { in testDescendingMapSerialization() method 396 new SerializationTester<TreeMap<String, String>>(map, s) { in testJava5SerializationWithComparator() method 424 new SerializationTester<SortedMap<String, String>>(subMap, s) { in testJava5SubMapSerialization() method
|
D | OldPriorityQueueTest.java | 24 import libcore.util.SerializationTester; 76 new SerializationTester<PriorityQueue<Integer>>(srcIntegerQueue, s) { in test_Serialization() method
|
D | CalendarTest.java | 24 import libcore.util.SerializationTester; 195 new SerializationTester<Calendar>(calendar, s).test(); in testCalendarSerialization()
|
D | OldCollectionsTest.java | 40 import libcore.util.SerializationTester; 704 new SerializationTester<Collection<?>>(collection, s) { in assertSerialized() method 725 new SerializationTester<Map<?, ?>>(map, s) { in assertSerialized() method
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | EnumTest.java | 20 import libcore.util.SerializationTester; 29 new SerializationTester<Roshambo>(value, s).test(); in testEnumSerialization() 38 new SerializationTester<Roshambo>(value, s).test(); in testEnumSubclassSerialization()
|
D | ThrowableTest.java | 23 import libcore.util.SerializationTester; 276 new SerializationTester<Throwable>(throwable, s) { in testDisableSuppressionSerialization() method 305 new SerializationTester<Throwable>(throwable, s) { in testEnableSuppressionSerialization() method 319 new SerializationTester<Throwable>(throwable, golden) { in assertSerialized() method
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | AttributedCharacterIteratorAttributeTest.java | 25 import libcore.util.SerializationTester; 43 SerializationTester.reserialize(a); in testSerializingSubclass() 50 assertSame(o, SerializationTester.reserialize(o)); in assertSameReserialized()
|
/libcore/support/src/test/java/tests/util/ |
D | SerializationTester.java | 34 public class SerializationTester { class 35 private SerializationTester() { in SerializationTester() method in SerializationTester 122 URL url = SerializationTester.class.getClassLoader().getResource(fileName); in readObject()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Collections2Test.java | 23 import tests.util.SerializationTester; 417 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedCollectionSerializationCompatability() 424 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedListRandomAccessSerializationCompatability() 431 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedListSerializationCompatability() 438 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedSetSerializationCompatability() 445 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedMapSerializationCompatability() 451 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedSortedSetSerializationCompatability() 457 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedSortedMapSerializationCompatability()
|
D | SimpleImmutableEntryTest.java | 21 import tests.util.SerializationTester; 141 …if (!(SerializationTester.readObject(e, "serialization/org/apache/harmony/tests/java/util/Abstract… in testSerializationCompatibility_SimpleImmutableEntry() 144 …SerializationTester.assertCompabilityEquals(e, "serialization/org/apache/harmony/tests/java/util/A… in testSerializationCompatibility_SimpleImmutableEntry()
|
D | SimpleEntryTest.java | 21 import tests.util.SerializationTester; 131 …SerializationTester.assertCompabilityEquals(e, "serialization/org/apache/harmony/tests/java/util/A… in testSerializationCompatibility_SimpleEntry()
|
D | PriorityQueueTest.java | 31 import tests.util.SerializationTester; 673 PriorityQueue<Integer> destIntegerQueue = (PriorityQueue<Integer>) SerializationTester in test_Serialization() 690 PriorityQueue<String> destStringQueue = (PriorityQueue<String>) SerializationTester in test_Serialization_casting() 707 PriorityQueue<String> destStringQueue = (PriorityQueue<String>) SerializationTester in test_SerializationCompatibility_cast()
|
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/ |
D | X500PrincipalTest.java | 25 import libcore.util.SerializationTester; 42 new SerializationTester<X500Principal>(actual, expected).test(); in testSerialization()
|
/libcore/luni/src/test/java/libcore/util/ |
D | SerializationTester.java | 29 public class SerializationTester<T> { class 33 public SerializationTester(T value, String golden) { in SerializationTester() method in SerializationTester
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | SealedObjectTest.java | 47 import libcore.util.SerializationTester; 339 String serializedForm = SerializationTester.serializeHex(sealedObjects); in testDeserialization() 342 SerializationTester.deserializeHex(serializedForm); in testDeserialization()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | EnumTest.java | 25 import tests.util.SerializationTester; 209 assertTrue(SerializationTester.assertCompabilityEquals(new MockEnum2(), in test_compatibilitySerialization_inClass_Complex_Harmony()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | InetAddressTest.java | 25 import libcore.util.SerializationTester; 165 new SerializationTester<InetAddress>(inetAddress, s) { in test_isReachable() method
|
D | URLTest.java | 26 import libcore.util.SerializationTester; 108 new SerializationTester<URL>(url, s).test(); in testUrlSerialization() 124 new SerializationTester<URL>(url, s) { in testUrlSerializationWithHashCode() method
|
D | URITest.java | 22 import libcore.util.SerializationTester; 88 new SerializationTester<URI>(uri, s).test(); in testUriSerialization()
|
/libcore/luni/src/test/java/libcore/java/util/beans/ |
D | PropertyChangeSupportTest.java | 30 import libcore.util.SerializationTester; 246 new SerializationTester<PropertyChangeSupport>(support, s) { in testSerialize() method
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | CopyOnWriteArrayListTest.java | 31 import libcore.util.SerializationTester; 268 new SerializationTester<CopyOnWriteArrayList<String>>(list, s).test(); in testSerialize()
|