Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for reserializeAndAssert (0.09 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/base/ConverterTest.java

        Converter<String, String> identityConverter = Converter.identity();
        SerializableTester.reserializeAndAssert(identityConverter);
      }
    
      public void testSerialization_reverse() {
        Converter<Long, String> reverseConverter = Longs.stringConverter().reverse();
        SerializableTester.reserializeAndAssert(reverseConverter);
      }
    
      @GwtIncompatible // J2CL generics problem
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 01 16:09:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. guava-tests/test/com/google/common/collect/MultimapBuilderTest.java

            /*
             * Temporarily inlining SerializableTester here for obscure internal reasons.
             */
            reserializeAndAssert(builder.build());
          }
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // serialization
      private static void reserializeAndAssert(Object object) throws Exception {
        Object copy = reserialize(object);
        assertEquals(object, copy);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. 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)
Back to top