Home
last modified time | relevance | path

Searched refs:SerializableTester (Results 1 – 25 of 89) sorted by relevance

1234

/external/guava/guava-testlib/test/com/google/common/collect/testing/
DSafeTreeMapTest.java22 import com.google.common.testing.SerializableTester;
47 SerializableTester.reserializeAndAssert(map.entrySet()); in testViewSerialization()
48 SerializableTester.reserializeAndAssert(map.keySet()); in testViewSerialization()
50 Lists.newArrayList(SerializableTester.reserialize(map.values()))); in testViewSerialization()
65 return SerializableTester.reserialize(map); in makePopulatedMap()
71 return SerializableTester.reserialize(map); in makeEmptyMap()
DSafeTreeSetTest.java26 import com.google.common.testing.SerializableTester;
64 SerializableTester.reserializeAndAssert(map.entrySet()); in testViewSerialization()
65 SerializableTester.reserializeAndAssert(map.keySet()); in testViewSerialization()
67 Lists.newArrayList(SerializableTester.reserialize(map.values()))); in testViewSerialization()
73 SortedSet<String> copy = SerializableTester.reserializeAndAssert(set); in testEmpty_serialization()
81 SortedSet<String> copy = SerializableTester.reserializeAndAssert(set); in testSingle_serialization()
91 SortedSet<String> copy = SerializableTester.reserializeAndAssert(set); in testSeveral_serialization()
/external/guava/guava-tests/test/com/google/common/hash/
DFunnelsTest.java26 import com.google.common.testing.SerializableTester;
143 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/test/com/google/common/testing/
DSerializableTesterTest.java32 String copy = SerializableTester.reserializeAndAssert(original); in testStringAssertions()
42 SerializableTester.reserializeAndAssert(orig); in testClassWhichDoesNotImplementEquals()
56 SerializableTester.reserializeAndAssert(orig); in testClassWhichIsAlwaysEqualButHasDifferentHashcodes()
70 SerializableTester.reserializeAndAssert(orig); in testObjectWhichIsEqualButChangesClass()
/external/guava/guava-tests/test/com/google/common/net/
DHostAndPortTest.java20 import com.google.common.testing.SerializableTester;
250 SerializableTester.reserializeAndAssert(HostAndPort.fromParts("host", 80)); in testSerialization()
251 SerializableTester.reserializeAndAssert(HostAndPort.fromString("host")); in testSerialization()
252 SerializableTester.reserializeAndAssert(HostAndPort.fromString("host:80")); in testSerialization()
253 SerializableTester.reserializeAndAssert(HostAndPort.fromString("[::1]:104")); in testSerialization()
254 SerializableTester.reserializeAndAssert(HostAndPort.fromParts("1::2", 103)); in testSerialization()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetSerializationTester.java24 import com.google.common.testing.SerializableTester;
39 assertEquals(expected, SerializableTester.reserialize(expected)); in testEntrySetSerialization()
45 assertEquals(expected, SerializableTester.reserialize(expected)); in testElementSetSerialization()
DBiMapInverseTester.java26 import com.google.common.testing.SerializableTester;
51 BiMapPair<K, V> copy = SerializableTester.reserialize(pair); in testInverseSerialization()
/external/guava/guava-tests/test/com/google/common/base/
DEquivalenceTest.java26 import com.google.common.testing.SerializableTester;
90 SerializableTester.reserializeAndAssert(LENGTH_EQUIVALENCE.wrap("hello")); in testSerialization()
91 SerializableTester.reserializeAndAssert(Equivalence.equals()); in testSerialization()
92 SerializableTester.reserializeAndAssert(Equivalence.identity()); in testSerialization()
DConverterTest.java26 import com.google.common.testing.SerializableTester;
200 SerializableTester.reserializeAndAssert(identityConverter);
205 SerializableTester.reserializeAndAssert(reverseConverter);
212 SerializableTester.reserializeAndAssert(composedConverter);
217 SerializableTester.reserializeAndAssert(dumb);
DFunctionsTest.java26 import com.google.common.testing.SerializableTester;
150 SerializableTester.reserialize(function)) in testForMapWithDefault_includeSerializable()
186 .addEqualityGroup(function, SerializableTester.reserialize(function)) in testForMapWithDefault_null_compareWithSerializable()
268 SerializableTester.reserialize(japaneseToSpanish)) in testComposition_includeReserializabled()
443 Function<? super Integer, Y> g = SerializableTester.reserializeAndAssert(f); in checkCanReserialize()
463 Function<? super String, Y> g = SerializableTester.reserializeAndAssert(f); in checkCanReserializeSingleton()
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DMapSerializationTester.java24 import com.google.common.testing.SerializableTester;
35 SerializableTester.reserializeAndAssert(getMap()); in testReserializeMap()
DCollectionSerializationEqualTester.java24 import com.google.common.testing.SerializableTester;
38 SerializableTester.reserialize(actualContents())); in testReserialize()
DCollectionSerializationTester.java25 import com.google.common.testing.SerializableTester;
39 SerializableTester.reserialize(actualContents())); in testReserialize()
/external/guava/guava-testlib/src/com/google/common/testing/
DSerializableTester.java40 public final class SerializableTester { class
41 private SerializableTester() {} in SerializableTester() method in SerializableTester
/external/guava/guava-tests/test/com/google/common/reflect/
DTypesTest.java26 import com.google.common.testing.SerializableTester;
115 SerializableTester.reserializeAndAssert(Types.newParameterizedType( in testNewParameterizedType_serializable()
195 SerializableTester.reserializeAndAssert( in testNewArrayType_serializable()
259 SerializableTester.reserializeAndAssert( in testNewWildcardType_serializable()
261 SerializableTester.reserializeAndAssert( in testNewWildcardType_serializable()
263 SerializableTester.reserializeAndAssert( in testNewWildcardType_serializable()
331 SerializableTester.reserialize(Types.newArtificialTypeVariable(List.class, "E")); in testNewTypeVariable_serializable()
/external/guava/guava-tests/test/com/google/common/collect/
DHashMultisetTest.java28 import com.google.common.testing.SerializableTester;
97 Multiset<Multiset<?>> copy = SerializableTester.reserialize(multiset);
116 Multiset<MultisetHolder> copy = SerializableTester.reserialize(multiset);
DLenientSerializableTester.java19 import static com.google.common.testing.SerializableTester.reserialize;
25 import com.google.common.testing.SerializableTester;
DTablesTest.java23 import com.google.common.testing.SerializableTester;
39 SerializableTester.reserializeAndAssert(entry); in testImmutableEntrySerialization()
DHashBasedTableTest.java22 import com.google.common.testing.SerializableTester;
83 SerializableTester.reserializeAndAssert(table); in testSerialization()
DImmutableSetMultimapTest.java31 import com.google.common.testing.SerializableTester;
510 SerializableTester.reserializeAndAssert(multimap); in testSerialization()
512 SerializableTester.reserialize(multimap).size()); in testSerialization()
513 SerializableTester.reserializeAndAssert(multimap.get("foo")); in testSerialization()
516 SerializableTester.reserializeAndAssert(multimap.asMap()); in testSerialization()
518 = SerializableTester.reserialize(multimap.values()); in testSerialization()
526 assertSame(multimap, SerializableTester.reserialize(multimap)); in testEmptySerialization()
538 multimap = SerializableTester.reserialize(multimap); in testSortedSerialization()
DMultimapBuilderTest.java22 import com.google.common.testing.SerializableTester;
80 SerializableTester.reserializeAndAssert(builder.build()); in testSerialization()
DMultimapsTest.java37 import com.google.common.testing.SerializableTester;
128 SerializableTester.reserializeAndAssert(unmodifiable); in testSerializingUnmodifiableArrayListMultimap()
160 SerializableTester.reserializeAndAssert(unmodifiable); in testSerializingUnmodifiableHashMultimap()
173 SerializableTester.reserializeAndAssert(unmodifiable); in testSerializingUnmodifiableTreeMultimap()
187 SerializableTester.reserializeAndAssert(unmodifiable); in testSerializingUnmodifiableSynchronizedArrayListMultimap()
201 SerializableTester.reserializeAndAssert(unmodifiable); in testSerializingUnmodifiableSynchronizedHashMultimap()
222 SerializableTester.reserializeAndAssert(unmodifiable); in testSerializingUnmodifiableSynchronizedTreeMultimap()
482 SerializableTester.reserializeAndAssert(multimapView); in testForMapSerialization()
654 SerializableTester.reserializeAndAssert(multimap); in testNewMultimapSerialization()
689 SerializableTester.reserializeAndAssert(multimap); in testNewListMultimapSerialization()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
DBiMapInverseTester.java24 import com.google.common.testing.SerializableTester;
46 BiMapPair<K, V> copy = SerializableTester.reserialize(pair); in testInverseSerialization()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DMultimapBuilderTest.java21 import com.google.common.testing.SerializableTester;
64 SerializableTester.reserializeAndAssert(builder.build()); in testSerialization()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DCollectionTestSuiteBuilder.java21 import com.google.common.testing.SerializableTester;
81 return SerializableTester.reserialize(gen.create(elements)); in create()

1234