/libcore/luni/src/test/java/libcore/java/util/ |
D | TreeSetTest.java | 45 @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 …]
|
D | TreeMapTest.java | 323 @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/ |
D | TCKZoneIdSerialization.java | 131 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/ |
D | SerializationTest.java | 182 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/ |
D | UnixDomainSocketAddressSerializationTest.java | 59 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/ |
D | SerializationTester.java | 53 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/ |
D | UnknownFormatFlagsExceptionTest.java | 65 Serializable deserialized) { 68 deserialized); 71 UnknownFormatFlagsException desrEx = (UnknownFormatFlagsException) deserialized;
|
D | IllegalFormatCodePointExceptionTest.java | 61 Serializable deserialized) { 64 deserialized); 67 IllegalFormatCodePointException desrEx = (IllegalFormatCodePointException) deserialized;
|
D | DuplicateFormatFlagsExceptionTest.java | 65 Serializable deserialized) { 68 deserialized); 71 DuplicateFormatFlagsException desrEx = (DuplicateFormatFlagsException) deserialized;
|
D | MissingFormatWidthExceptionTest.java | 65 Serializable deserialized) { 68 deserialized); 71 MissingFormatWidthException desrEx = (MissingFormatWidthException) deserialized;
|
D | IllegalFormatFlagsExceptionTest.java | 65 Serializable deserialized) { 68 deserialized); 71 IllegalFormatFlagsException desrEx = (IllegalFormatFlagsException) deserialized;
|
D | IllegalFormatWidthExceptionTest.java | 64 Serializable deserialized) { 67 deserialized); 70 IllegalFormatWidthException desrEx = (IllegalFormatWidthException) deserialized;
|
D | UnknownFormatConversionExceptionTest.java | 65 Serializable deserialized) { 68 deserialized); 71 … UnknownFormatConversionException desrEx = (UnknownFormatConversionException) deserialized;
|
D | IllegalFormatPrecisionExceptionTest.java | 62 Serializable deserialized) { 65 deserialized); 68 IllegalFormatPrecisionException desrEx = (IllegalFormatPrecisionException) deserialized;
|
D | MissingFormatArgumentExceptionTest.java | 66 Serializable deserialized) { 69 deserialized); 72 MissingFormatArgumentException desrEx = (MissingFormatArgumentException) deserialized;
|
D | FormatFlagsConversionMismatchExceptionTest.java | 82 Serializable deserialized) { 85 deserialized); 88 …matFlagsConversionMismatchException desrEx = (FormatFlagsConversionMismatchException) deserialized;
|
D | IllegalFormatConversionExceptionTest.java | 82 Serializable deserialized) { 85 deserialized); 88 … IllegalFormatConversionException desrEx = (IllegalFormatConversionException) deserialized;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | UnmappableCharacterExceptionTest.java | 55 Serializable deserialized) { 59 deserialized); 62 UnmappableCharacterException desrEx = (UnmappableCharacterException) deserialized;
|
D | MalformedInputExceptionTest.java | 54 Serializable deserialized) { 58 deserialized); 61 MalformedInputException desrEx = (MalformedInputException) deserialized;
|
D | UnsupportedCharsetExceptionTest.java | 59 Serializable deserialized) { 69 UnsupportedCharsetException desrEx = (UnsupportedCharsetException) deserialized;
|
D | IllegalCharsetNameExceptionTest.java | 60 Serializable deserialized) { 70 IllegalCharsetNameException desrEx = (IllegalCharsetNameException) deserialized;
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ThrowableTest.java | 289 @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/ |
D | SerializationTest.java | 46 … 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/ |
D | CertificateRevocationExceptionTest.java | 155 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/ |
D | PatternSyntaxExceptionTest.java | 131 public void assertDeserialized(Serializable initial, Serializable deserialized) { 134 SerializationTest.THROWABLE_COMPARATOR.assertDeserialized(initial, deserialized); 137 PatternSyntaxException dserPatternSyntaxException = (PatternSyntaxException) deserialized;
|