Home
last modified time | relevance | path

Searched refs:SerializationTester (Results 1 – 25 of 39) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/io/
DSerializationTest.java29 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/
DTreeSetTest.java23 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
DEnumSetTest.java22 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()
DEventObjectTest.java22 import libcore.libcore.util.SerializationTester;
48 new SerializationTester<EventObject>(eventObject, s) { in testSerializationNullsOutSource() method
DInvalidPropertiesFormatExceptionTest.java27 import libcore.libcore.util.SerializationTester;
94 Object obj = SerializationTester.deserializeHex(hex); in testDeserialize_notSupported()
DSetOfTest.java29 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()
DListOfTest.java29 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/
DFileSystemLoopExceptionTest.java24 import libcore.libcore.util.SerializationTester;
68 FileSystemLoopException exception = (FileSystemLoopException) SerializationTester in test_serialization()
71 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
DNotDirectoryExceptionTest.java24 import libcore.libcore.util.SerializationTester;
70 NotDirectoryException exception = (NotDirectoryException) SerializationTester in test_serialization()
73 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
DDirectoryNotEmptyExceptionTest.java24 import libcore.libcore.util.SerializationTester;
71 DirectoryNotEmptyException exception = (DirectoryNotEmptyException) SerializationTester in test_serialization()
74 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
DAtomicMoveNotSupportedExceptionTest.java24 import libcore.libcore.util.SerializationTester;
74 SerializationTester.deserializeHex(hex); in test_serialization()
76 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
DFileAlreadyExistsExceptionTest.java24 import libcore.libcore.util.SerializationTester;
80 FileAlreadyExistsException exception = (FileAlreadyExistsException) SerializationTester in test_serialization()
83 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
DNotLinkExceptionTest.java24 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()
DNoSuchFileExceptionTest.java24 import libcore.libcore.util.SerializationTester;
78 NoSuchFileException exception = (NoSuchFileException) SerializationTester in test_serialization()
81 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
DAccessDeniedExceptionTest.java24 import libcore.libcore.util.SerializationTester;
80 SerializationTester.deserializeHex(hex); in test_serialization()
82 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
DFileSystemExceptionTest.java23 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/
DAttributedCharacterIteratorAttributeTest.java25 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/
DEnumTest.java20 import libcore.libcore.util.SerializationTester;
32 new SerializationTester<Roshambo>(value, s).test(); in testEnumSerialization()
41 new SerializationTester<Roshambo>(value, s).test(); in testEnumSubclassSerialization()
DThrowableTest.java26 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/
DSerializationTester.java34 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/
DSimpleImmutableEntryTest.java21 import tests.util.SerializationTester;
141 …if (!(SerializationTester.readObject(e, "serialization/org/apache/harmony/tests/java/util/Abstract… in testSerializationCompatibility_SimpleImmutableEntry()
144SerializationTester.assertCompabilityEquals(e, "serialization/org/apache/harmony/tests/java/util/A… in testSerializationCompatibility_SimpleImmutableEntry()
DCollections2Test.java23 import tests.util.SerializationTester;
420SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedCollectionSerializationCompatability()
427SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedListRandomAccessSerializationCompatability()
434SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedListSerializationCompatability()
441SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedSetSerializationCompatability()
448SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedMapSerializationCompatability()
454SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedSortedSetSerializationCompatability()
460SerializationTester.assertCompabilityEquals(c, "serialization/org/apache/harmony/tests/java/util/C… in test_checkedSortedMapSerializationCompatability()
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/
DX500PrincipalTest.java26 import libcore.libcore.util.SerializationTester;
51 new SerializationTester<X500Principal>(actual, expected).test(); in testSerialization()
/libcore/luni/src/test/java/libcore/java/net/
DURLTest.java36 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/
DSerializationTester.java31 public class SerializationTester<T> { class
35 public SerializationTester(T value, String golden) { in SerializationTester() method in SerializationTester

12