Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 68 for reserializeAndAssert (0.21 sec)

  1. 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)
  2. android/guava-tests/test/com/google/common/collect/TablesTest.java

      @GwtIncompatible // SerializableTester
      public void testImmutableEntrySerialization() {
        Cell<String, Integer, Character> entry = immutableCell("foo", 1, 'a');
        SerializableTester.reserializeAndAssert(entry);
      }
    
      public void testImmutableEntryToString() {
        Cell<String, Integer, Character> entry = immutableCell("foo", 1, 'a');
        assertEquals("(foo,1)=a", entry.toString());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertTrue(empty instanceof EmptyContiguousSet);
        reserializeAndAssert(empty);
    
        ContiguousSet<Integer> regular = ContiguousSet.create(Range.closed(1, 3), integers());
        assertTrue(regular instanceof RegularContiguousSet);
        reserializeAndAssert(regular);
    
        /*
         * Make sure that we're using RegularContiguousSet.SerializedForm and not
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K 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/ImmutableRangeSetTest.java

          for (int i = 0; i <= 11; i++) {
            assertEquals(mutable.contains(i), built.contains(i));
          }
    
          SerializableTester.reserializeAndAssert(built);
          SerializableTester.reserializeAndAssert(built.asRanges());
        }
      }
    
      private static final ImmutableRangeSet<Integer> RANGE_SET_ONE =
          ImmutableRangeSet.<Integer>builder()
              .add(Range.closed(2, 4))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  10. 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)
Back to top