Home
last modified time | relevance | path

Searched refs:reserialize (Results 1 – 25 of 64) sorted by relevance

123

/external/guava/guava-tests/test/com/google/common/hash/
DFunnelsTest.java143 SerializableTester.reserialize(Funnels.byteArrayFunnel())); in testSerialization()
146 SerializableTester.reserialize(Funnels.integerFunnel())); in testSerialization()
149 SerializableTester.reserialize(Funnels.longFunnel())); in testSerialization()
152 SerializableTester.reserialize(Funnels.unencodedCharsFunnel())); in testSerialization()
155 SerializableTester.reserialize(Funnels.sequentialFunnel(Funnels.integerFunnel()))); in testSerialization()
158 SerializableTester.reserialize(Funnels.stringFunnel(Charsets.US_ASCII))); in testSerialization()
170 SerializableTester.reserialize(Funnels.sequentialFunnel( in testEquals()
/external/guava/guava-testlib/src/com/google/common/testing/
DSerializableTester.java60 public static <T> T reserialize(T object) { in reserialize() method in SerializableTester
61 return Platform.reserialize(object); in reserialize()
95 T copy = reserialize(object); in reserializeAndAssert()
DPlatform.java40 static <T> T reserialize(T object) { in reserialize() method in Platform
/external/guava/guava-tests/test/com/google/common/collect/
DLenientSerializableTester.java19 import static com.google.common.testing.SerializableTester.reserialize;
48 Set<E> copy = reserialize(original); in reserializeAndAssertLenient()
56 Multiset<E> copy = reserialize(original); in reserializeAndAssertLenient()
DMultimapBuilderTest.java94 Object copy = reserialize(object); in reserializeAndAssert()
100 private static Object reserialize(Object object) throws Exception { in reserialize() method in MultimapBuilderTest
DHashMultisetTest.java97 Multiset<Multiset<?>> copy = SerializableTester.reserialize(multiset);
116 Multiset<MultisetHolder> copy = SerializableTester.reserialize(multiset);
DImmutableSetMultimapTest.java512 SerializableTester.reserialize(multimap).size()); in testSerialization()
518 = SerializableTester.reserialize(multimap.values()); in testSerialization()
526 assertSame(multimap, SerializableTester.reserialize(multimap)); in testEmptySerialization()
538 multimap = SerializableTester.reserialize(multimap); in testSortedSerialization()
DImmutableListMultimapTest.java515 SerializableTester.reserialize(multimap).size()); in testSerialization()
521 = SerializableTester.reserialize(multimap.values()); in testSerialization()
529 assertSame(multimap, SerializableTester.reserialize(multimap)); in testEmptySerialization()
/external/guava/guava-tests/test/com/google/common/base/
DSuppliersTest.java19 import static com.google.common.testing.SerializableTester.reserialize;
124 Supplier<Integer> copy = reserialize(memoizedSupplier); in testMemoizeSerialized()
190 Supplier<Integer> copy = reserialize(memoizedSupplier); in testMemoizeWithExpirationSerialized()
383 Integer.valueOf(5), reserialize(Suppliers.ofInstance(5)).get()); in testSerialization()
384 assertEquals(Integer.valueOf(5), reserialize(Suppliers.compose( in testSerialization()
387 reserialize(Suppliers.memoize(Suppliers.ofInstance(5))).get()); in testSerialization()
389 reserialize(Suppliers.memoizeWithExpiration( in testSerialization()
391 assertEquals(Integer.valueOf(5), reserialize( in testSerialization()
DFunctionsTest.java150 SerializableTester.reserialize(function)) in testForMapWithDefault_includeSerializable()
186 .addEqualityGroup(function, SerializableTester.reserialize(function)) in testForMapWithDefault_null_compareWithSerializable()
268 SerializableTester.reserialize(japaneseToSpanish)) in testComposition_includeReserializabled()
/external/guice/core/test/com/google/inject/
DAsserts.java148 Object reserialized = reserialize(object);
155 Object reserialized = reserialize(object);
159 public static <E> E reserialize(E original) throws IOException {
174 reserialize(object);
DSerializationTest.java31 Asserts.reserialize(new MyAbstractModule()); in testAbstractModuleIsSerializable()
DProvisionExceptionTest.java21 import static com.google.inject.Asserts.reserialize;
177 ProvisionException reserialized = reserialize(expected); in testProvisionExceptionIsSerializable()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetSerializationTester.java39 assertEquals(expected, SerializableTester.reserialize(expected)); in testEntrySetSerialization()
45 assertEquals(expected, SerializableTester.reserialize(expected)); in testElementSetSerialization()
DBiMapInverseTester.java51 BiMapPair<K, V> copy = SerializableTester.reserialize(pair); in testInverseSerialization()
/external/guava/guava-testlib/test/com/google/common/collect/testing/
DSafeTreeMapTest.java96 Lists.newArrayList(SerializableTester.reserialize(map.values()))); in testViewSerialization()
111 return SerializableTester.reserialize(map); in makePopulatedMap()
117 return SerializableTester.reserialize(map); in makeEmptyMap()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DReserializingTestCollectionGenerator.java49 return reserialize(delegate.create(elements)); in create()
53 static <T> T reserialize(T object) { in reserialize() method in ReserializingTestCollectionGenerator
DCollectionTestSuiteBuilder.java81 return SerializableTester.reserialize(gen.create(elements)); in create()
/external/guava/guava-tests/test/com/google/common/reflect/
DTypeTokenTest.java1462 reserialize(TypeToken.of(String.class)); in testSerializable()
1463 reserialize(TypeToken.of(String.class).getTypes()); in testSerializable()
1464 reserialize(TypeToken.of(String.class).getTypes().classes()); in testSerializable()
1465 reserialize(TypeToken.of(String.class).getTypes().interfaces()); in testSerializable()
1466 reserialize(TypeToken.of(String.class).getTypes().rawTypes()); in testSerializable()
1467 reserialize(TypeToken.of(String.class).getTypes().classes().rawTypes()); in testSerializable()
1468 reserialize(TypeToken.of(String.class).getTypes().interfaces().rawTypes()); in testSerializable()
1469 reserialize(new TypeToken<int[]>() {}); in testSerializable()
1470 reserialize(new TypeToken<Map<String, Integer>>() {}); in testSerializable()
1471 reserialize(new IKnowMyType<Map<? super String, ? extends int[]>>() {}.type()); in testSerializable()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/testing/super/com/google/common/testing/
DPlatform.java31 static <T> T reserialize(T object) { in reserialize() method in Platform
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionSerializationEqualTester.java38 SerializableTester.reserialize(actualContents())); in testReserialize()
DCollectionSerializationTester.java39 SerializableTester.reserialize(actualContents())); in testReserialize()
/external/guava/guava-tests/test/com/google/common/primitives/
DUnsignedBytesTest.java249 assertSame(comparator, SerializableTester.reserialize(comparator)); in testLexicographicalComparator()
254 assertSame(javaImpl, SerializableTester.reserialize(javaImpl)); in testLexicographicalComparator()
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
DBiMapInverseTester.java46 BiMapPair<K, V> copy = SerializableTester.reserialize(pair); in testInverseSerialization()
/external/okhttp/okio/okio/src/test/java/okio/
DByteStringTest.java269 assertEquivalent(byteString, TestUtil.reserialize(byteString)); in javaSerializationTestNonEmpty()
274 assertEquivalent(byteString, TestUtil.reserialize(byteString)); in javaSerializationTestEmpty()

123