Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for testSerialization (0.09 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

            assertBitEquals(x - y, z);
            assertBitEquals(x - y, a.get());
          }
        }
      }
    
      /** a deserialized serialized atomic holds same value */
      public void testSerialization() throws Exception {
        AtomicDouble a = new AtomicDouble();
        AtomicDouble b = serialClone(a);
        assertNotSame(a, b);
        a.set(-22.0);
        AtomicDouble c = serialClone(a);
        assertNotSame(b, c);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

                assertEquals(expected, rangeMap.subRangeMap(subRange));
              }
            }
          }
        }
      }
    
      public void testSerialization() {
        ImmutableRangeMap<Integer, Integer> emptyRangeMap = ImmutableRangeMap.of();
        SerializableTester.reserializeAndAssert(emptyRangeMap);
    
        ImmutableRangeMap<Integer, Integer> nonEmptyRangeMap =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java

        assertTrue(subMap instanceof SynchronizedNavigableMap);
        assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex);
      }
    
      @Override
      public void testSerialization() {
        SerializableTester.reserializeAndAssert(create());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        assertEquals(14, (int) supplierFunction.apply(supplier));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializationTester
      @SuppressWarnings("DoNotCall")
      public void testSerialization() {
        assertEquals(Integer.valueOf(5), reserialize(Suppliers.ofInstance(5)).get());
        assertEquals(
            Integer.valueOf(5),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/SuppliersTest.java

        assertEquals(14, (int) supplierFunction.apply(supplier));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializationTester
      @SuppressWarnings("DoNotCall")
      public void testSerialization() {
        assertEquals(Integer.valueOf(5), reserialize(Suppliers.ofInstance(5)).get());
        assertEquals(
            Integer.valueOf(5),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

            ContiguousSet.closed(Integer.MIN_VALUE, Integer.MAX_VALUE),
            ContiguousSet.create(Range.atMost(Integer.MAX_VALUE), integers()));
      }
    
      @GwtIncompatible // SerializableTester
      public void testSerialization() {
        ContiguousSet<Integer> empty = ContiguousSet.create(Range.closedOpen(1, 1), integers());
        assertTrue(empty instanceof EmptyContiguousSet);
        reserializeAndAssert(empty);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        awaitTermination(t1);
        awaitTermination(t2);
        assertEquals(SIZE * COUNTDOWN, c1.counts + c2.counts);
      }
    
      /** a deserialized serialized array holds same values */
      public void testSerialization() throws Exception {
        AtomicDoubleArray x = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          x.set(i, (double) -i);
        }
        AtomicDoubleArray y = serialClone(x);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        assertThat(table.row("foo").keySet()).containsExactly(12, 3).inOrder();
        assertEquals(original, table);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerialization() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        SerializableTester.reserializeAndAssert(table);
      }
    
      public void testToString_ordered() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        assertEquals(0, map.size());
        assertTrue(map.isEmpty());
        assertFalse(map.remove("a", 1L));
        assertFalse(map.remove("a", 0L));
        assertFalse(map.replace("a", 1L, 0L));
      }
    
      public void testSerialization() {
        AtomicLongMap<String> map = AtomicLongMap.create();
        map.put("key", 1L);
        AtomicLongMap<String> reserialized = SerializableTester.reserialize(map);
        assertEquals(map.asMap(), reserialized.asMap());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

      /* The names of the expected method that tests serializable. */
      private static final ImmutableList<String> SERIALIZABLE_TEST_METHOD_NAMES =
          ImmutableList.of(
              "testSerializable", "testSerialization",
              "testEqualsAndSerializable", "testEqualsAndSerialization");
    
      /* The names of the expected method that tests equals. */
      private static final ImmutableList<String> EQUALS_TEST_METHOD_NAMES =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top