Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for testSerialization (0.1 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          int intValue = aUnsigned.bigIntegerValue().intValue();
          assertThat(aUnsigned.intValue()).isEqualTo(intValue);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // serialization
      public void testSerialization() {
        for (long a : TEST_LONGS) {
          SerializableTester.reserializeAndAssert(UnsignedLong.fromLongBits(a));
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          int intValue = aUnsigned.bigIntegerValue().intValue();
          assertThat(aUnsigned.intValue()).isEqualTo(intValue);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // serialization
      public void testSerialization() {
        for (long a : TEST_LONGS) {
          SerializableTester.reserializeAndAssert(UnsignedLong.fromLongBits(a));
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top