Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 189 for reserialize (0.2 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

                  @Override
                  public SortedMultiset<E> create(Object... entries) {
                    return SerializableTester.reserialize(((SortedMultiset<E>) super.create(entries)));
                  }
                })
            .named(parentBuilder.getName() + " reserialized")
            .withFeatures(features)
            .suppressing(parentBuilder.getSuppressedTests())
            .createTestSuite();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

      }
    
      public void testSerialization() {
        AtomicLongMap<String> map = AtomicLongMap.create();
        map.put("key", 1L);
        AtomicLongMap<String> reserialized = SerializableTester.reserialize(map);
        assertEquals(map.asMap(), reserialized.asMap());
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertEquals(localCacheOne.ticker, localCacheTwo.ticker);
    
        // serialize the reconstituted version to be sure we haven't lost the ability to reserialize
        LocalLoadingCache<Object, Object> three = SerializableTester.reserialize(two);
        LocalCache<Object, Object> localCacheThree = three.localCache;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertEquals(localCacheOne.ticker, localCacheTwo.ticker);
    
        // serialize the reconstituted version to be sure we haven't lost the ability to reserialize
        LocalLoadingCache<Object, Object> three = SerializableTester.reserialize(two);
        LocalCache<Object, Object> localCacheThree = three.localCache;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypesTest.java

      }
    
      public void testNewTypeVariable_serializable() throws Exception {
        assertThrows(
            RuntimeException.class,
            () -> SerializableTester.reserialize(Types.newArtificialTypeVariable(List.class, "E")));
      }
    
      private static <D extends GenericDeclaration> TypeVariable<D> withBounds(
          TypeVariable<D> typeVariable, Type... bounds) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/TypesTest.java

      }
    
      public void testNewTypeVariable_serializable() throws Exception {
        assertThrows(
            RuntimeException.class,
            () -> SerializableTester.reserialize(Types.newArtificialTypeVariable(List.class, "E")));
      }
    
      private static <D extends GenericDeclaration> TypeVariable<D> withBounds(
          TypeVariable<D> typeVariable, Type... bounds) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

      }
    
      public void testSerialization() {
        AtomicLongMap<String> map = AtomicLongMap.create();
        map.put("key", 1L);
        AtomicLongMap<String> reserialized = SerializableTester.reserialize(map);
        assertEquals(map.asMap(), reserialized.asMap());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testEmpty_serialization() {
        SortedSet<String> set = of();
        SortedSet<String> copy = SerializableTester.reserialize(set);
        assertSame(set, copy);
      }
    
      public void testSingle_comparator() {
        SortedSet<String> set = of("e");
        assertSame(Ordering.natural(), set.comparator());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 45.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        BloomFilter<byte[]> bf = BloomFilter.create(Funnels.byteArrayFunnel(), 100);
        for (int i = 0; i < 10; i++) {
          bf.put(Ints.toByteArray(i));
        }
    
        BloomFilter<byte[]> copy = SerializableTester.reserialize(bf);
        for (int i = 0; i < 10; i++) {
          assertTrue(copy.mightContain(Ints.toByteArray(i)));
        }
        assertEquals(bf.expectedFpp(), copy.expectedFpp());
    
        SerializableTester.reserializeAndAssert(bf);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       *
       * <ul>
       *   <li>If {@code C} explicitly implements {@link Object#equals}, the deserialized instance will
       *       be checked to be equal to the instance before serialization.
       *   <li>If {@code C} doesn't explicitly implement {@code equals} but instead inherits it from a
       *       superclass, no equality check is done on the deserialized instance because it's not clear
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
Back to top