Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 113 for SerializableTester (0.06 seconds)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultisetSerializationTester.java

        Set<Multiset.Entry<E>> expected = getMultiset().entrySet();
        assertEquals(expected, SerializableTester.reserialize(expected));
      }
    
      @CollectionFeature.Require(SERIALIZABLE_INCLUDING_VIEWS)
      public void testElementSetSerialization() {
        Set<E> expected = getMultiset().elementSet();
        assertEquals(expected, SerializableTester.reserialize(expected));
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 2K bytes
    - Click Count (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. guava-testlib/test/com/google/common/collect/testing/ReserializedSafeTreeMapMapInterfaceTest.java

     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.testing.SerializableTester;
    import java.util.NavigableMap;
    import java.util.SortedMap;
    
    @GwtIncompatible // SerializableTester
    public class ReserializedSafeTreeMapMapInterfaceTest
        extends SortedMapInterfaceTest<String, Integer> {
      public ReserializedSafeTreeMapMapInterfaceTest() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Mar 18 18:06:40 GMT 2022
    - 1.7K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerialization() {
        Multimap<String, Integer> multimap = createMultimap();
        SerializableTester.reserializeAndAssert(multimap);
        assertEquals(multimap.size(), SerializableTester.reserialize(multimap).size());
        SerializableTester.reserializeAndAssert(multimap.get("foo"));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24K bytes
    - Click Count (0)
  10. android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@link SerializableTester}.
     *
     * @author Nick Kralevich
     */
    @NullUnmarked
    public class SerializableTesterTest extends TestCase {
      public void testStringAssertions() {
        String original = "hello world";
        String copy = SerializableTester.reserializeAndAssert(original);
        assertEquals(original, copy);
        assertNotSame(original, copy);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 4K bytes
    - Click Count (0)
Back to Top