Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for reserializeAndAssertLenient (0.16 sec)

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

      public void testViewSerialization() {
        Map<String, Integer> map = ImmutableMap.of("one", 1, "two", 2, "three", 3);
        LenientSerializableTester.reserializeAndAssertLenient(map.entrySet());
        LenientSerializableTester.reserializeAndAssertLenient(map.keySet());
    
        Collection<Integer> reserializedValues = reserialize(map.values());
        assertEquals(Lists.newArrayList(map.values()), Lists.newArrayList(reserializedValues));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertEquals(multimap.size(), SerializableTester.reserialize(multimap).size());
        SerializableTester.reserializeAndAssert(multimap.get("foo"));
        LenientSerializableTester.reserializeAndAssertLenient(multimap.keySet());
        LenientSerializableTester.reserializeAndAssertLenient(multimap.keys());
        SerializableTester.reserializeAndAssert(multimap.asMap());
        Collection<Integer> valuesCopy = SerializableTester.reserialize(multimap.values());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      public void testViewSerialization() {
        Map<String, Integer> map = ImmutableMap.of("one", 1, "two", 2, "three", 3);
        LenientSerializableTester.reserializeAndAssertLenient(map.entrySet());
        LenientSerializableTester.reserializeAndAssertLenient(map.keySet());
    
        Collection<Integer> reserializedValues = reserialize(map.values());
        assertEquals(Lists.newArrayList(map.values()), Lists.newArrayList(reserializedValues));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertEquals(multimap.size(), SerializableTester.reserialize(multimap).size());
        SerializableTester.reserializeAndAssert(multimap.get("foo"));
        LenientSerializableTester.reserializeAndAssertLenient(multimap.keySet());
        LenientSerializableTester.reserializeAndAssertLenient(multimap.keys());
        SerializableTester.reserializeAndAssert(multimap.asMap());
        Collection<Integer> valuesCopy = SerializableTester.reserialize(multimap.values());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertEquals(multimap.size(), SerializableTester.reserialize(multimap).size());
        SerializableTester.reserializeAndAssert(multimap.get("foo"));
        LenientSerializableTester.reserializeAndAssertLenient(multimap.keySet());
        LenientSerializableTester.reserializeAndAssertLenient(multimap.keys());
        SerializableTester.reserializeAndAssert(multimap.asMap());
        Collection<Integer> valuesCopy = SerializableTester.reserialize(multimap.values());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

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

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