Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 145 for reserialize (0.28 sec)

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

                .createTestSuite());
    
        return suite;
      }
    
      public void testSerialization_empty() {
        assertSame(
            ImmutableClassToInstanceMap.of(),
            SerializableTester.reserialize(ImmutableClassToInstanceMap.of()));
      }
    
      public void testCopyOf_map_empty() {
        Map<Class<?>, Object> in = Collections.emptyMap();
        ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

            .addEqualityGroup(
                newDelegatingListWithEquals(LIST1),
                newDelegatingListWithEquals(LIST1),
                SerializableTester.reserialize(newDelegatingListWithEquals(LIST1)))
            .addEqualityGroup(
                newDelegatingListWithEquals(LIST2),
                newProxyWithSubHandler1(LIST2), // Makes sure type of handler doesn't affect equality
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        SerializableTester.reserializeAndAssert(map.keySet());
        assertEquals(
            Lists.newArrayList(map.values()),
            Lists.newArrayList(SerializableTester.reserialize(map.values())));
      }
    
      public void testHeadMapInclusive() {
        Map<String, Integer> map =
            ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).headMap("three", true);
        assertThat(map.entrySet())
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.testing.Helpers.mapEntry;
    import static com.google.common.testing.SerializableTester.reserialize;
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    
    import com.google.common.annotations.GwtCompatible;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
  5. 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});
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

      @GwtIncompatible // SerializableTester
      public void testLexicographicalComparatorSerializable() {
        Comparator<float[]> comparator = Floats.lexicographicalComparator();
        assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator);
      }
    
      public void testReverse() {
        testReverse(new float[] {}, new float[] {});
        testReverse(new float[] {1}, new float[] {1});
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  7. 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
                AssertionError error =
                    new AssertionFailedError("Serialization failed on return value of " + factory);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/EvictingQueueTest.java

        EvictingQueue<String> original = EvictingQueue.create(5);
        original.add("one");
        original.add("two");
        original.add("three");
    
        EvictingQueue<String> copy = SerializableTester.reserialize(original);
        assertEquals(copy.maxSize, original.maxSize);
        assertEquals("one", copy.remove());
        assertEquals("two", copy.remove());
        assertEquals("three", copy.remove());
        assertTrue(copy.isEmpty());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

                .createTestSuite());
    
        return suite;
      }
    
      public void testSerialization_empty() {
        assertSame(
            ImmutableClassToInstanceMap.of(),
            SerializableTester.reserialize(ImmutableClassToInstanceMap.of()));
      }
    
      public void testCopyOf_map_empty() {
        Map<Class<?>, Object> in = Collections.emptyMap();
        ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java

          return mapGenerator.order(insertionOrder);
        }
    
        @Override
        public Map<K, V> create(Object... elements) {
          return SerializableTester.reserialize(mapGenerator.create(elements));
        }
    
        @Override
        public K[] createKeyArray(int length) {
          return ((TestMapGenerator<K, V>) mapGenerator.getInnerGenerator()).createKeyArray(length);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 12.1K bytes
    - Viewed (0)
Back to top