Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for reserializeAndAssert (0.12 sec)

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

        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 java7
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. 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)
  3. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

      public void testSerialization() {
        SerializableTester.reserializeAndAssert(HostAndPort.fromParts("host", 80));
        SerializableTester.reserializeAndAssert(HostAndPort.fromString("host"));
        SerializableTester.reserializeAndAssert(HostAndPort.fromString("host:80"));
        SerializableTester.reserializeAndAssert(HostAndPort.fromString("[::1]:104"));
        SerializableTester.reserializeAndAssert(HostAndPort.fromParts("1::2", 103));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. 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(
            Lists.newArrayList(map.values()),
            Lists.newArrayList(SerializableTester.reserialize(map.values())));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypesTest.java

      }
    
      public void testNewWildcardType_serializable() {
        SerializableTester.reserializeAndAssert(Types.supertypeOf(String.class));
        SerializableTester.reserializeAndAssert(Types.subtypeOf(String.class));
        SerializableTester.reserializeAndAssert(Types.subtypeOf(Object.class));
      }
    
      private static void assertEqualWildcardType(WildcardType expected, WildcardType actual) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/TypesTest.java

      }
    
      public void testNewWildcardType_serializable() {
        SerializableTester.reserializeAndAssert(Types.supertypeOf(String.class));
        SerializableTester.reserializeAndAssert(Types.subtypeOf(String.class));
        SerializableTester.reserializeAndAssert(Types.subtypeOf(Object.class));
      }
    
      private static void assertEqualWildcardType(WildcardType expected, WildcardType actual) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

        for (Range<Integer> range : test.keySet()) {
          SerializableTester.reserializeAndAssert(range);
        }
    
        SerializableTester.reserializeAndAssert(test.keySet());
    
        SerializableTester.reserializeAndAssert(nonEmptyRangeMap);
      }
    
      public void testToImmutableRangeMap() {
        Range<Integer> rangeOne = Range.closedOpen(1, 5);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. android/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)
  9. 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)
  10. 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)
Back to top