Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for reserializeAndAssert (0.18 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. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        assertTrue(multiset.isEmpty());
        reserializeAndAssert(multiset);
      }
    
      public void testCreateFromIterable() {
        Iterable<Integer> iterable = asList(1, 2, 2, 3, 4);
        ConcurrentHashMultiset<Integer> multiset = ConcurrentHashMultiset.create(iterable);
        assertEquals(2, multiset.count(2));
        reserializeAndAssert(multiset);
      }
    
      public void testIdentityKeyEquality_strongKeys() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  6. 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)
  7. android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

        String copy = SerializableTester.reserializeAndAssert(original);
        assertEquals(original, copy);
        assertNotSame(original, copy);
      }
    
      public void testClassWhichDoesNotImplementEquals() {
        ClassWhichDoesNotImplementEquals orig = new ClassWhichDoesNotImplementEquals();
        boolean errorNotThrown = false;
        try {
          SerializableTester.reserializeAndAssert(orig);
          errorNotThrown = true;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 4K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

        String copy = SerializableTester.reserializeAndAssert(original);
        assertEquals(original, copy);
        assertNotSame(original, copy);
      }
    
      public void testClassWhichDoesNotImplementEquals() {
        ClassWhichDoesNotImplementEquals orig = new ClassWhichDoesNotImplementEquals();
        boolean errorNotThrown = false;
        try {
          SerializableTester.reserializeAndAssert(orig);
          errorNotThrown = true;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top