/libcore/luni/src/test/java/libcore/java/io/ |
D | SerializationTest.java | 29 import libcore.libcore.util.SerializationTester; 46 … FieldMadeTransient deserialized = (FieldMadeTransient) SerializationTester.deserializeHex(s); in testSerializeFieldMadeTransient() 68 FieldMadeStatic deserialized = (FieldMadeStatic) SerializationTester.deserializeHex(s); in testSerializeFieldMadeStatic() 110 SerializableContainer1 sc = (SerializableContainer1) SerializationTester.deserializeHex(s); in testDeserializeNullUnserializableField() 131 SerializationTester.serializeHex(uf); in testSerializeUnserializableField() 167 SerializationTester.deserializeHex(s); in testDeserializeUnserializableField() 183 SerializationTester.deserializeHex(s); in testSerialVersionUidChange() 200 SerializationTester.deserializeHex(s); in testMissingSerialVersionUid() 231 SerializationTester.deserializeHex(s); in testDeserializeWasSerializableClass() 274 SerializationTester.deserializeHex(s); in testDeserializeWasExternalizableClass() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TreeSetTest.java | 23 import libcore.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.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.libcore.util.SerializationTester; 48 new SerializationTester<EventObject>(eventObject, s) { in testSerializationNullsOutSource() method
|
D | InvalidPropertiesFormatExceptionTest.java | 27 import libcore.libcore.util.SerializationTester; 94 Object obj = SerializationTester.deserializeHex(hex); in testDeserialize_notSupported()
|
D | SetOfTest.java | 29 import libcore.libcore.util.SerializationTester; 42 new SerializationTester<>(Set.<String>of(), golden).test(); in of_serializationCompatibility_empty() 52 new SerializationTester<>(Set.of("one"), golden).test(); in of_serializationCompatibility_oneElement() 66 new SerializationTester<>(Set.of(12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0), golden).test(); in of_serializationCompatibility_manyElements() 241 return (S) SerializationTester.reserialize(value); in reserialize()
|
D | ListOfTest.java | 29 import libcore.libcore.util.SerializationTester; 45 new SerializationTester<>(List.<String>of(), golden).test(); in serializationCompatibility_empty() 56 new SerializationTester<>(List.of("one"), golden).test(); in serializationCompatibility_oneElement() 71 new SerializationTester<>(List.of(12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0), golden).test(); in serializationCompatibility_manyElements() 234 return (S) SerializationTester.reserialize(value); in reserialize()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | FileSystemLoopExceptionTest.java | 24 import libcore.libcore.util.SerializationTester; 68 FileSystemLoopException exception = (FileSystemLoopException) SerializationTester in test_serialization() 71 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
|
D | NotDirectoryExceptionTest.java | 24 import libcore.libcore.util.SerializationTester; 70 NotDirectoryException exception = (NotDirectoryException) SerializationTester in test_serialization() 73 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
|
D | DirectoryNotEmptyExceptionTest.java | 24 import libcore.libcore.util.SerializationTester; 71 DirectoryNotEmptyException exception = (DirectoryNotEmptyException) SerializationTester in test_serialization() 74 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
|
D | AtomicMoveNotSupportedExceptionTest.java | 24 import libcore.libcore.util.SerializationTester; 74 SerializationTester.deserializeHex(hex); in test_serialization() 76 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
|
D | FileAlreadyExistsExceptionTest.java | 24 import libcore.libcore.util.SerializationTester; 80 FileAlreadyExistsException exception = (FileAlreadyExistsException) SerializationTester in test_serialization() 83 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
|
D | NotLinkExceptionTest.java | 24 import libcore.libcore.util.SerializationTester; 77 NotLinkException exception = (NotLinkException) SerializationTester.deserializeHex(hex); in test_serialization() 79 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
|
D | NoSuchFileExceptionTest.java | 24 import libcore.libcore.util.SerializationTester; 78 NoSuchFileException exception = (NoSuchFileException) SerializationTester in test_serialization() 81 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
|
D | AccessDeniedExceptionTest.java | 24 import libcore.libcore.util.SerializationTester; 80 SerializationTester.deserializeHex(hex); in test_serialization() 82 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
|
D | FileSystemExceptionTest.java | 23 import libcore.libcore.util.SerializationTester; 77 FileSystemException exception = (FileSystemException) SerializationTester in test_serialization() 80 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | AttributedCharacterIteratorAttributeTest.java | 25 import libcore.libcore.util.SerializationTester; 43 SerializationTester.reserialize(a); in testSerializingSubclass() 50 assertSame(o, SerializationTester.reserialize(o)); in assertSameReserialized()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | EnumTest.java | 20 import libcore.libcore.util.SerializationTester; 32 new SerializationTester<Roshambo>(value, s).test(); in testEnumSerialization() 41 new SerializationTester<Roshambo>(value, s).test(); in testEnumSubclassSerialization()
|
D | ThrowableTest.java | 26 import libcore.libcore.util.SerializationTester; 285 new SerializationTester<Throwable>(throwable, s) { in testDisableSuppressionSerialization() method 314 new SerializationTester<Throwable>(throwable, s) { in testEnableSuppressionSerialization() method 354 new SerializationTester<Throwable>(throwable, golden) { in assertSerialized() method
|
/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 | 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 | Collections2Test.java | 23 import tests.util.SerializationTester; 420 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedCollectionSerializationCompatability() 427 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedListRandomAccessSerializationCompatability() 434 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedListSerializationCompatability() 441 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedSetSerializationCompatability() 448 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedMapSerializationCompatability() 454 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedSortedSetSerializationCompatability() 460 …SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedSortedMapSerializationCompatability()
|
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/ |
D | X500PrincipalTest.java | 26 import libcore.libcore.util.SerializationTester; 51 new SerializationTester<X500Principal>(actual, expected).test(); in testSerialization()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URLTest.java | 36 import libcore.libcore.util.SerializationTester; 122 new SerializationTester<URL>(url, s).test(); in testUrlSerialization() 134 URL reserializedUrl = (URL) SerializationTester.reserialize(url); in testUrlSerializationRoundTrip_customHandler_nullAuthorityReconstructed() 151 URL reserializedUrl = (URL) SerializationTester.reserialize(url); in testUrlSerializationRoundTrip_customHandler_nonnullAuthorityNotReconstructed() 175 URL reserializedUrl = (URL) SerializationTester.reserialize(url); in checkUrlSerializationRoundTrip_customHandler_hostAndPortNotReconstructed() 212 URL reserializedUrl = (URL) SerializationTester.reserialize(url); in testUrlSerializationRoundTrip_builtinHandler_hostAndPortReconstructed() 219 SerializationTester.serialize(url), in testUrlSerializationRoundTrip_builtinHandler_hostAndPortReconstructed() 220 SerializationTester.serialize(reserializedUrl) in testUrlSerializationRoundTrip_builtinHandler_hostAndPortReconstructed() 223 SerializationTester.serialize(reserializedUrl), in testUrlSerializationRoundTrip_builtinHandler_hostAndPortReconstructed() 224 SerializationTester.serialize(reserializedUrl) in testUrlSerializationRoundTrip_builtinHandler_hostAndPortReconstructed() [all …]
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | SerializationTester.java | 31 public class SerializationTester<T> { class 35 public SerializationTester(T value, String golden) { in SerializationTester() method in SerializationTester
|