Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 96 for reserialize (0.21 sec)

  1. 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);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/CharsTest.java

      @GwtIncompatible // SerializableTester
      public void testLexicographicalComparatorSerializable() {
        Comparator<char[]> comparator = Chars.lexicographicalComparator();
        assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator);
      }
    
      public void testReverse() {
        testReverse(new char[] {}, new char[] {});
        testReverse(new char[] {'1'}, new char[] {'1'});
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/BooleansTest.java

      @GwtIncompatible // SerializableTester
      public void testLexicographicalComparatorSerializable() {
        Comparator<boolean[]> comparator = Booleans.lexicographicalComparator();
        assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator);
      }
    
      public void testReverse() {
        testReverse(new boolean[] {}, new boolean[] {});
        testReverse(new boolean[] {true}, new boolean[] {true});
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 15:43:29 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          for (Invokable<?, ?> factory : getFactoriesToTest()) {
            Object instance = instantiate(factory);
            if (instance != null) {
              try {
                SerializableTester.reserialize(instance);
              } catch (Exception e) { // sneaky checked exception
                throw new AssertionError(
                    "Serialization failed on return value of " + factory, e.getCause());
              }
            }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  5. 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
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          for (Invokable<?, ?> factory : getFactoriesToTest()) {
            Object instance = instantiate(factory);
            if (instance != null) {
              try {
                SerializableTester.reserialize(instance);
              } catch (Exception e) { // sneaky checked exception
                throw new AssertionError(
                    "Serialization failed on return value of " + factory, e.getCause());
              }
            }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      @GwtIncompatible // SerializableTester
      public void testLexicographicalComparatorSerializable() {
        Comparator<double[]> comparator = Doubles.lexicographicalComparator();
        assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testStringConverterSerialization() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/IntsTest.java

      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testLexicographicalComparatorSerializable() {
        Comparator<int[]> comparator = Ints.lexicographicalComparator();
        assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator);
      }
    
      public void testReverse() {
        testReverse(new int[] {}, new int[] {});
        testReverse(new int[] {1}, new int[] {1});
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

      @GwtIncompatible // SerializableTester
      public void testLexicographicalComparatorSerializable() {
        Comparator<short[]> comparator = Shorts.lexicographicalComparator();
        assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator);
      }
    
      public void testReverse() {
        testReverse(new short[] {}, new short[] {});
        testReverse(new short[] {1}, new short[] {1});
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

      }
    
      public void testSerialization_empty() {
        Collection<String> c = ImmutableSortedMultiset.of();
        assertSame(c, SerializableTester.reserialize(c));
      }
    
      public void testSerialization_multiple() {
        Collection<String> c = ImmutableSortedMultiset.of("a", "b", "a");
        Collection<String> copy = SerializableTester.reserializeAndAssert(c);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top