/libcore/luni/src/test/java/libcore/libcore/util/ |
D | SerializationTester.java | 63 T deserialized = (T) deserialize(HexEncoding.decode(golden)); in test() 68 T reserialized = (T) deserialize(serialize(value)); in test() 90 private static Object deserialize(byte[] bytes) throws IOException, ClassNotFoundException { in deserialize() method in SerializationTester 101 return deserialize(serialize(object)); in reserialize() 109 return deserialize(HexEncoding.decode(hex)); in deserializeHex()
|
/libcore/ojluni/src/test/java/io/Serializable/records/ |
D | BadValues.java | 77 Throwable t = expectThrows(CNFE, () -> deserialize(bytes)); in testNotFoundSer() 85 Throwable t = expectThrows(CNFE, () -> deserialize(bytes)); in testNotFoundSerWr() 93 Throwable t = expectThrows(CNFE, () -> deserialize(bytes)); in testNotFoundExt() 101 Throwable t = expectThrows(CNFE, () -> deserialize(bytes)); in testNotFoundExtWr() 106 static <T> T deserialize(byte[] streamBytes) in deserialize() method in BadValues
|
D | ThrowingConstructorTest.java | 112 InvalidObjectException ioe = expectThrows(IOE, () -> deserialize(bytes)); in testExceptions() 171 Throwable t = expectThrows(expectedExType, () -> deserialize(bytes)); in testErrors() 189 static <T> T deserialize(byte[] streamBytes) in deserialize() method in ThrowingConstructorTest 200 return deserialize(serialize(obj)); in serializeDeserialize()
|
D | AbsentStreamValuesTest.java | 94 Object obj = deserialize(bytes); in testWithDifferentTypes() 110 R15 obj = (R15)deserialize(bytes); in testWithAllTogether() 135 R16 obj = (R16)deserialize(bytes); in testGenericType() 165 static <T> T deserialize(byte[] streamBytes) in deserialize() method in AbsentStreamValuesTest
|
D | ConstructorAccessTest.java | 117 static <T> T deserialize(byte[] streamBytes) in deserialize() method in ConstructorAccessTest 128 return deserialize(serialize(obj)); in serializeDeserialize()
|
D | WriteReplaceTest.java | 127 static <T> T deserialize(byte[] streamBytes) in deserialize() method in WriteReplaceTest 138 return deserialize(serialize(obj)); in serializeDeserialize()
|
D | ReadResolveTest.java | 147 static <T> T deserialize(byte[] streamBytes) in deserialize() method in ReadResolveTest 158 return deserialize(serialize(obj)); in serializeDeserialize()
|
D | RecordClassTest.java | 158 static <T> T deserialize(byte[] streamBytes) in deserialize() method in RecordClassTest 169 return deserialize(serialize(obj)); in serializeDeserialize()
|
D | SerialVersionUIDTest.java | 126 Object obj = deserialize(bytes); in testSerializeFromClass() 164 static <T> T deserialize(byte[] streamBytes) in deserialize() method in SerialVersionUIDTest
|
D | CycleTest.java | 155 static <T> T deserialize(byte[] streamBytes) in deserialize() method in CycleTest 166 return deserialize(serialize(obj)); in serializeDeserialize()
|
D | BasicRecordSer.java | 279 static <T> T deserialize(byte[] streamBytes) in deserialize() method in BasicRecordSer 290 return deserialize(serialize(obj)); in serializeDeserialize()
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKZoneIdSerialization.java | 106 ZoneId deser = deserialize(id); in test_deserialization_lenient_characters() 126 deserialize("|!?"); in test_deserialization_lenient_badCharacters() 131 ZoneId deserialized = deserialize(input); in test_deserialization_lenient_offsetNotAllowed_noPrefix() 138 ZoneId deserialized = deserialize("UTC" + input); in test_deserialization_lenient_offsetNotAllowed_prefixUTC() 145 ZoneId deserialized = deserialize("GMT" + input); in test_deserialization_lenient_offsetNotAllowed_prefixGMT() 152 ZoneId deserialized = deserialize("UT" + input); in test_deserialization_lenient_offsetNotAllowed_prefixUT() 157 private ZoneId deserialize(String id) throws Exception { in deserialize() method in TCKZoneIdSerialization
|
/libcore/ojluni/src/test/java/net/UnixDomainSocketAddress/ |
D | UnixDomainSocketAddressSerializationTest.java | 60 deserialize(serialized, UnixDomainSocketAddress.class); in test() 75 expectThrows(IOE, () -> deserialize(bytes, UnixDomainSocketAddress.class)); in testUnixDomainSocketAddressInStream() 84 expectThrows(NPE, () -> deserialize(bytes, UnixDomainSocketAddress.class)); in testSerialProxyNoStreamValues() 97 private static <T extends Serializable> T deserialize(byte[] b, Class<T> cl) in deserialize() method in UnixDomainSocketAddressSerializationTest
|
/libcore/ojluni/src/test/java/security/KeyAgreement/ |
D | KeySpecTest.java | 313 return deserialize(serialize(orig), type); in deserializedCopy() 319 private static <T extends Object> T deserialize(byte[] serialized, in deserialize() method in KeySpecTest
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/ |
D | SerializedLambdaTest.java | 69 asserter.accept((T) deserialize(bytes)); in assertSerial() 93 private Object deserialize(byte[] bytes) throws IOException, ClassNotFoundException { in deserialize() method in SerializedLambdaTest
|