Home
last modified time | relevance | path

Searched refs:deserialized (Results 1 – 25 of 44) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/
DTreeSetTest.java45 @Override protected void verify(NavigableSet<String> deserialized) { in testSerializationWithComparator() argument
46 assertEquals(0, deserialized.comparator().compare("X", "x")); in testSerializationWithComparator()
63 @Override protected void verify(SortedSet<String> deserialized) { in testSubSetSerialization() argument
64 assertBounded(deserialized, deserialized == subSet); in testSubSetSerialization()
81 @Override protected void verify(SortedSet<String> deserialized) { in testNavigableSubSetSerialization() argument
82 assertBounded(deserialized, deserialized == subSet); in testNavigableSubSetSerialization()
91 private void assertBounded(SortedSet<String> deserialized, boolean bounded) { in assertBounded() argument
94 deserialized.add("e"); in assertBounded()
99 assertTrue(deserialized.add("e")); in assertBounded()
100 assertTrue(deserialized.remove("e")); in assertBounded()
[all …]
DTreeMapTest.java323 @Override protected void verify(NavigableMap<String, String> deserialized) { in testSerializationWithComparator() argument
324 assertEquals(0, deserialized.comparator().compare("X", "x")); in testSerializationWithComparator()
352 @Override protected void verify(SortedMap<String, String> deserialized) { in testSubMapSerialization() argument
354 deserialized.put("e", "e"); in testSubMapSerialization()
385 @Override protected void verify(SortedMap<String, String> deserialized) { in testNavigableSubMapSerialization() argument
387 deserialized.put("e", "e"); in testNavigableSubMapSerialization()
418 @Override protected void verify(NavigableMap<String, String> deserialized) { in testDescendingMapSerialization() argument
419 assertEquals("b", deserialized.navigableKeySet().first()); in testDescendingMapSerialization()
435 @Override protected void verify(TreeMap<String, String> deserialized) { in testJava5SerializationWithComparator() argument
436 assertEquals(0, deserialized.comparator().compare("X", "x")); in testJava5SerializationWithComparator()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/serial/
DTCKZoneIdSerialization.java131 ZoneId deserialized = deserialize(input); in test_deserialization_lenient_offsetNotAllowed_noPrefix() local
132 assertEquals(deserialized, ZoneId.of(input)); in test_deserialization_lenient_offsetNotAllowed_noPrefix()
133 assertEquals(deserialized, ZoneId.of(resolvedId)); in test_deserialization_lenient_offsetNotAllowed_noPrefix()
138 ZoneId deserialized = deserialize("UTC" + input); in test_deserialization_lenient_offsetNotAllowed_prefixUTC() local
139 assertEquals(deserialized, ZoneId.of("UTC" + input)); in test_deserialization_lenient_offsetNotAllowed_prefixUTC()
140 assertEquals(deserialized, ZoneId.of("UTC" + resolvedId)); in test_deserialization_lenient_offsetNotAllowed_prefixUTC()
145 ZoneId deserialized = deserialize("GMT" + input); in test_deserialization_lenient_offsetNotAllowed_prefixGMT() local
146 assertEquals(deserialized, ZoneId.of("GMT" + input)); in test_deserialization_lenient_offsetNotAllowed_prefixGMT()
147 assertEquals(deserialized, ZoneId.of("GMT" + resolvedId)); in test_deserialization_lenient_offsetNotAllowed_prefixGMT()
152 ZoneId deserialized = deserialize("UT" + input); in test_deserialization_lenient_offsetNotAllowed_prefixUT() local
[all …]
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/
DSerializationTest.java182 void assertDeserialized(Serializable initial, Serializable deserialized); in assertDeserialized() argument
187 public void assertDeserialized(Serializable initial, Serializable deserialized) {
188 assertEquals(initial, deserialized);
196 public void assertDeserialized(Serializable initial, Serializable deserialized) {
197 assertSame(initial, deserialized);
205 public void assertDeserialized(Serializable initial, Serializable deserialized) {
207 Throwable dserThr = (Throwable) deserialized;
230 public void assertDeserialized(Serializable initial, Serializable deserialized) {
233 PermissionCollection dserPC = (PermissionCollection) deserialized;
322 Serializable deserialized = getObject(test, ".golden.ser"); in verifyGolden() local
[all …]
/libcore/ojluni/src/test/java/net/UnixDomainSocketAddress/
DUnixDomainSocketAddressSerializationTest.java59 UnixDomainSocketAddress deserialized = in test() local
61 assertEquals(deserialized.getPath(), addr.getPath()); in test()
62 assertEquals(deserialized.toString(), addr.toString()); in test()
63 assertEquals(deserialized.hashCode(), addr.hashCode()); in test()
64 assertEquals(deserialized, addr); in test()
/libcore/luni/src/test/java/libcore/libcore/util/
DSerializationTester.java53 protected void verify(T deserialized) throws Exception {} in verify() argument
63 T deserialized = (T) deserialize(HexEncoding.decode(golden)); in test() local
65 equals(value, deserialized)); in test()
74 verify(deserialized); in test()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DUnknownFormatFlagsExceptionTest.java65 Serializable deserialized) {
68 deserialized);
71 UnknownFormatFlagsException desrEx = (UnknownFormatFlagsException) deserialized;
DIllegalFormatCodePointExceptionTest.java61 Serializable deserialized) {
64 deserialized);
67 IllegalFormatCodePointException desrEx = (IllegalFormatCodePointException) deserialized;
DDuplicateFormatFlagsExceptionTest.java65 Serializable deserialized) {
68 deserialized);
71 DuplicateFormatFlagsException desrEx = (DuplicateFormatFlagsException) deserialized;
DMissingFormatWidthExceptionTest.java65 Serializable deserialized) {
68 deserialized);
71 MissingFormatWidthException desrEx = (MissingFormatWidthException) deserialized;
DIllegalFormatFlagsExceptionTest.java65 Serializable deserialized) {
68 deserialized);
71 IllegalFormatFlagsException desrEx = (IllegalFormatFlagsException) deserialized;
DIllegalFormatWidthExceptionTest.java64 Serializable deserialized) {
67 deserialized);
70 IllegalFormatWidthException desrEx = (IllegalFormatWidthException) deserialized;
DUnknownFormatConversionExceptionTest.java65 Serializable deserialized) {
68 deserialized);
71 … UnknownFormatConversionException desrEx = (UnknownFormatConversionException) deserialized;
DIllegalFormatPrecisionExceptionTest.java62 Serializable deserialized) {
65 deserialized);
68 IllegalFormatPrecisionException desrEx = (IllegalFormatPrecisionException) deserialized;
DMissingFormatArgumentExceptionTest.java66 Serializable deserialized) {
69 deserialized);
72 MissingFormatArgumentException desrEx = (MissingFormatArgumentException) deserialized;
DFormatFlagsConversionMismatchExceptionTest.java82 Serializable deserialized) {
85 deserialized);
88 …matFlagsConversionMismatchException desrEx = (FormatFlagsConversionMismatchException) deserialized;
DIllegalFormatConversionExceptionTest.java82 Serializable deserialized) {
85 deserialized);
88 … IllegalFormatConversionException desrEx = (IllegalFormatConversionException) deserialized;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DUnmappableCharacterExceptionTest.java55 Serializable deserialized) {
59 deserialized);
62 UnmappableCharacterException desrEx = (UnmappableCharacterException) deserialized;
DMalformedInputExceptionTest.java54 Serializable deserialized) {
58 deserialized);
61 MalformedInputException desrEx = (MalformedInputException) deserialized;
DUnsupportedCharsetExceptionTest.java59 Serializable deserialized) {
69 UnsupportedCharsetException desrEx = (UnsupportedCharsetException) deserialized;
DIllegalCharsetNameExceptionTest.java60 Serializable deserialized) {
70 IllegalCharsetNameException desrEx = (IllegalCharsetNameException) deserialized;
/libcore/luni/src/test/java/libcore/java/lang/
DThrowableTest.java289 @Override protected void verify(Throwable deserialized) { in testDisableSuppressionSerialization() argument
291 deserialized.addSuppressed(newThrowable("Suppressed")); in testDisableSuppressionSerialization()
292 assertSuppressed(deserialized); in testDisableSuppressionSerialization()
318 @Override protected void verify(Throwable deserialized) { in testEnableSuppressionSerialization() argument
321 deserialized.addSuppressed(suppressed); in testEnableSuppressionSerialization()
322 assertSuppressed(deserialized, suppressed); in testEnableSuppressionSerialization()
/libcore/luni/src/test/java/libcore/java/io/
DSerializationTest.java46 … FieldMadeTransient deserialized = (FieldMadeTransient) SerializationTester.deserializeHex(s); in testSerializeFieldMadeTransient() local
47 assertEquals(0, deserialized.transientInt); in testSerializeFieldMadeTransient()
68 FieldMadeStatic deserialized = (FieldMadeStatic) SerializationTester.deserializeHex(s); in testSerializeFieldMadeStatic() local
70 assertEquals(9999, deserialized.staticInt); in testSerializeFieldMadeStatic()
/libcore/luni/src/test/java/tests/security/cert/
DCertificateRevocationExceptionTest.java155 public void assertDeserialized(Serializable initial, Serializable deserialized) {
157 assertTrue(deserialized instanceof CertificateRevokedException);
160 CertificateRevokedException actual = (CertificateRevokedException) deserialized;
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPatternSyntaxExceptionTest.java131 public void assertDeserialized(Serializable initial, Serializable deserialized) {
134 SerializationTest.THROWABLE_COMPARATOR.assertDeserialized(initial, deserialized);
137 PatternSyntaxException dserPatternSyntaxException = (PatternSyntaxException) deserialized;

12