- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 55 for testSerialization (0.18 seconds)
-
android/guava-tests/test/com/google/common/net/HostAndPortTest.java
assertThat(HostAndPort.fromParts("::]", 107).toString()).isEqualTo("[::]]:107"); assertThat(HostAndPort.fromString("[[:]]:108").toString()).isEqualTo("[[:]]:108"); } public void testSerialization() { SerializableTester.reserializeAndAssert(HostAndPort.fromParts("host", 80)); SerializableTester.reserializeAndAssert(HostAndPort.fromString("host"));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 9.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java
int intValue = aUnsigned.bigIntegerValue().intValue(); assertThat(aUnsigned.intValue()).isEqualTo(intValue); } } @GwtIncompatible @J2ktIncompatible public void testSerialization() { for (int a : TEST_INTS) { SerializableTester.reserializeAndAssert(UnsignedInteger.fromIntBits(a)); } } @J2ktIncompatible @GwtIncompatible // NullPointerTester
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 9.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/HostAndPortTest.java
assertThat(HostAndPort.fromParts("::]", 107).toString()).isEqualTo("[::]]:107"); assertThat(HostAndPort.fromString("[[:]]:108").toString()).isEqualTo("[[:]]:108"); } public void testSerialization() { SerializableTester.reserializeAndAssert(HostAndPort.fromParts("host", 80)); SerializableTester.reserializeAndAssert(HostAndPort.fromString("host"));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 10K bytes - Click Count (0) -
src/test/java/jcifs/RuntimeCIFSExceptionTest.java
assertEquals(error, exception.getCause()); }); } @Test @DisplayName("Should maintain serialization compatibility") void testSerialization() { // Verify the class has serialVersionUID defined // This is important for version compatibility RuntimeCIFSException exception = new RuntimeCIFSException("Test");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.2K bytes - Click Count (0) -
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 =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 9.4K bytes - Click Count (0) -
android/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 =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 9.7K bytes - Click Count (0) -
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); assertThat(b).isNotSameInstanceAs(a); a.set(-22.0); AtomicDouble c = serialClone(a);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 10.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java
assertTrue(subMap instanceof SynchronizedNavigableMap); assertThat(((SynchronizedNavigableMap<String, Integer>) subMap).mutex).isSameInstanceAs(mutex); } @Override public void testSerialization() { SerializableTester.reserializeAndAssert(create()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 12.8K bytes - Click Count (0) -
android/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);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 10.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
// Adding null context should be safe exception.withContext(null); assertTrue(exception.getContext().isEmpty()); } @Test @DisplayName("Should be serializable") void testSerialization() throws Exception { // Given Map<String, Object> context = new HashMap<>(); context.put("key1", "value1"); context.put("key2", 123);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.1K bytes - Click Count (0)