Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for reserializeAndAssert (0.09 sec)

  1. android/guava-tests/test/com/google/common/collect/RangeTest.java

    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.collect.testing.Helpers.testCompareToAndEquals;
    import static com.google.common.testing.SerializableTester.reserializeAndAssert;
    import static com.google.common.truth.Truth.assertThat;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        Multimap<String, Integer> unmodifiable =
            prepareUnmodifiableTests(ArrayListMultimap.<String, Integer>create(), true, null, null);
        SerializableTester.reserializeAndAssert(unmodifiable);
      }
    
      public void testUnmodifiableArrayListMultimapRandomAccess() {
        ListMultimap<String, Integer> delegate = ArrayListMultimap.create();
        delegate.put("foo", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

      @GwtIncompatible // SerializableTester
      public void testExplicitComparatorSerialization() {
        TreeMultimap<String, Integer> multimap = createPopulate();
        TreeMultimap<String, Integer> copy = SerializableTester.reserializeAndAssert(multimap);
        assertThat(copy.values()).containsExactly(1, 3, 7, 2, 6, 0, 4).inOrder();
        assertThat(copy.keySet()).containsExactly("foo", "google", "tree").inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerialization_multiple() {
        Collection<String> c = ImmutableMultiset.of("a", "b", "a");
        Collection<String> copy = SerializableTester.reserializeAndAssert(c);
        assertThat(copy).containsExactly("a", "a", "b").inOrder();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerialization_elementSet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        assertSame(bimap, SerializableTester.reserializeAndAssert(bimap));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerialization() {
        ImmutableBiMap<String, Integer> bimap =
            ImmutableBiMap.copyOf(ImmutableMap.of("one", 1, "two", 2));
        ImmutableBiMap<String, Integer> copy = SerializableTester.reserializeAndAssert(bimap);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        assertEquals(0, expected.value);
        reserializeAndAssert(c);
      }
    
      public void testExplicit_one() {
        Comparator<Integer> c = Ordering.explicit(0);
        assertEquals(0, c.compare(0, 0));
        IncomparableValueException expected =
            assertThrows(IncomparableValueException.class, () -> c.compare(0, 1));
        assertEquals(1, expected.value);
        reserializeAndAssert(c);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSingle_serialization() {
        SortedSet<String> set = of("e");
        SortedSet<String> copy = SerializableTester.reserializeAndAssert(set);
        assertEquals(set.comparator(), copy.comparator());
      }
    
      public void testOf_ordering() {
        SortedSet<String> set = of("e", "a", "f", "b", "d", "c");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/OrderingTest.java

        assertEquals(0, expected.value);
        reserializeAndAssert(c);
      }
    
      public void testExplicit_one() {
        Comparator<Integer> c = Ordering.explicit(0);
        assertEquals(0, c.compare(0, 0));
        IncomparableValueException expected =
            assertThrows(IncomparableValueException.class, () -> c.compare(0, 1));
        assertEquals(1, expected.value);
        reserializeAndAssert(c);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

      public void testSerialization() {
        Multimap<String, Integer> multimap = createMultimap();
        SerializableTester.reserializeAndAssert(multimap);
        assertEquals(multimap.size(), SerializableTester.reserialize(multimap).size());
        SerializableTester.reserializeAndAssert(multimap.get("foo"));
        LenientSerializableTester.reserializeAndAssertLenient(multimap.keySet());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        Collection<String> copy = SerializableTester.reserializeAndAssert(c);
        assertThat(copy).containsExactly("a", "a", "b").inOrder();
      }
    
      public void testSerialization_elementSet() {
        Multiset<String> c = ImmutableSortedMultiset.of("a", "b", "a");
        Collection<String> copy = SerializableTester.reserializeAndAssert(c.elementSet());
        assertThat(copy).containsExactly("a", "b").inOrder();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
Back to top