- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for testSerialization (0.1 sec)
-
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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/HostAndPortTest.java
// Garbage in, garbage out. assertEquals("[::]]:107", HostAndPort.fromParts("::]", 107).toString()); assertEquals("[[:]]:108", HostAndPort.fromString("[[:]]:108").toString()); } public void testSerialization() { SerializableTester.reserializeAndAssert(HostAndPort.fromParts("host", 80)); SerializableTester.reserializeAndAssert(HostAndPort.fromString("host"));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 9.8K bytes - Viewed (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");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.2K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 17.9K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.6K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 17.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
assertActuallyTrims(underSized); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testSerialization() { assertThat(reserialize(ImmutableLongArray.of())).isSameInstanceAs(ImmutableLongArray.of()); assertThat(reserialize(ImmutableLongArray.of(0, 1).subArray(1, 1))) .isSameInstanceAs(ImmutableLongArray.of());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.5K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.6K bytes - Viewed (0) -
android/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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.1K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 14.6K bytes - Viewed (0)