- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 98 for SerializableTester (0.08 seconds)
-
android/guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java
import com.google.common.collect.testing.testers.SetEqualsTester; import com.google.common.collect.testing.testers.SetHashCodeTester; import com.google.common.collect.testing.testers.SetRemoveTester; import com.google.common.testing.SerializableTester; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; import java.util.List; import java.util.Set; import junit.framework.TestSuite; /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 4.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
.addEqualityGroup( function, Functions.forMap(map, 42), SerializableTester.reserialize(function)) .addEqualityGroup(Functions.forMap(map)) .addEqualityGroup(Functions.forMap(map, null)) .addEqualityGroup(Functions.forMap(map, 43)) .testEquals(); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testForMapWithDefaultSerializable() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 16K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java
ImmutableMap<Range<Integer>, Integer> test = nonEmptyRangeMap.asMapOfRanges(); for (Range<Integer> range : test.keySet()) { SerializableTester.reserializeAndAssert(range); } SerializableTester.reserializeAndAssert(test.keySet()); SerializableTester.reserializeAndAssert(nonEmptyRangeMap); } // TODO(b/172823566): Use mainline testToImmutableRangeMap once CollectorTester is usable to java7Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 9.7K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/collect/testing/SafeTreeSetTest.java
} @GwtIncompatible // SerializableTester public void testViewSerialization() { Map<String, Integer> map = ImmutableSortedMap.of("one", 1, "two", 2, "three", 3); SerializableTester.reserializeAndAssert(map.entrySet()); SerializableTester.reserializeAndAssert(map.keySet()); assertEquals( new ArrayList<>(map.values()), new ArrayList<>(SerializableTester.reserialize(map.values()))); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/PredicatesTest.java
.testEquals(); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testOr_serializationIterable() { Predicate<Integer> pre = Predicates.or(Arrays.asList(TRUE, FALSE)); Predicate<Integer> post = SerializableTester.reserializeAndAssert(pre); assertEquals(pre.apply(0), post.apply(0)); } public void testOr_arrayDefensivelyCopied() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 32.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
} @J2ktIncompatible @GwtIncompatible // SerializableTester public void testSerialization_empty() { Collection<String> c = ImmutableMultiset.of(); assertSame(c, SerializableTester.reserialize(c)); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testSerialization_multiple() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/TablesTest.java
import com.google.common.testing.SerializableTester; import junit.framework.TestCase; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Tests for {@link Tables}. * * @author Jared Levy */ @GwtCompatible @NullMarked public class TablesTest extends TestCase { @GwtIncompatible // SerializableTester public void testImmutableEntrySerialization() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 3.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
.addEqualityGroup( function, Functions.forMap(map, 42), SerializableTester.reserialize(function)) .addEqualityGroup(Functions.forMap(map)) .addEqualityGroup(Functions.forMap(map, null)) .addEqualityGroup(Functions.forMap(map, 43)) .testEquals(); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testForMapWithDefaultSerializable() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 16K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/PredicatesTest.java
.testEquals(); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testOr_serializationIterable() { Predicate<Integer> pre = Predicates.or(Arrays.asList(TRUE, FALSE)); Predicate<Integer> post = SerializableTester.reserializeAndAssert(pre); assertEquals(pre.apply(0), post.apply(0)); } public void testOr_arrayDefensivelyCopied() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 32.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/LenientSerializableTester.java
import static com.google.common.testing.SerializableTester.reserialize; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertTrue; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.testing.SerializableTester; import com.google.errorprone.annotations.CanIgnoreReturnValue;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.6K bytes - Click Count (0)