Home
last modified time | relevance | path

Searched refs:deserialize (Results 1 – 15 of 15) sorted by relevance

/libcore/luni/src/test/java/libcore/libcore/util/
DSerializationTester.java63 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/
DBadValues.java77 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
DThrowingConstructorTest.java112 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()
DAbsentStreamValuesTest.java94 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
DConstructorAccessTest.java117 static <T> T deserialize(byte[] streamBytes) in deserialize() method in ConstructorAccessTest
128 return deserialize(serialize(obj)); in serializeDeserialize()
DWriteReplaceTest.java127 static <T> T deserialize(byte[] streamBytes) in deserialize() method in WriteReplaceTest
138 return deserialize(serialize(obj)); in serializeDeserialize()
DReadResolveTest.java147 static <T> T deserialize(byte[] streamBytes) in deserialize() method in ReadResolveTest
158 return deserialize(serialize(obj)); in serializeDeserialize()
DRecordClassTest.java158 static <T> T deserialize(byte[] streamBytes) in deserialize() method in RecordClassTest
169 return deserialize(serialize(obj)); in serializeDeserialize()
DSerialVersionUIDTest.java126 Object obj = deserialize(bytes); in testSerializeFromClass()
164 static <T> T deserialize(byte[] streamBytes) in deserialize() method in SerialVersionUIDTest
DCycleTest.java155 static <T> T deserialize(byte[] streamBytes) in deserialize() method in CycleTest
166 return deserialize(serialize(obj)); in serializeDeserialize()
DBasicRecordSer.java279 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/
DTCKZoneIdSerialization.java106 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/
DUnixDomainSocketAddressSerializationTest.java60 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/
DKeySpecTest.java313 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/
DSerializedLambdaTest.java69 asserter.accept((T) deserialize(bytes)); in assertSerial()
93 private Object deserialize(byte[] bytes) throws IOException, ClassNotFoundException { in deserialize() method in SerializedLambdaTest