- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for testReserialize (0.09 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSerializationTester.java
@SuppressWarnings("JUnit4ClassUsedInJUnit3") public class CollectionSerializationTester<E> extends AbstractCollectionTester<E> { @CollectionFeature.Require(SERIALIZABLE) public void testReserialize() { // For a bare Collection, the most we can guarantee is that the elements are preserved. assertEqualIgnoringOrder(actualContents(), SerializableTester.reserialize(actualContents())); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 1.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSerializationEqualTester.java
@SuppressWarnings("JUnit4ClassUsedInJUnit3") public class CollectionSerializationEqualTester<E> extends AbstractCollectionTester<E> { @CollectionFeature.Require(SERIALIZABLE) public void testReserialize() { assertEquals(SerializableTester.reserialize(actualContents()), actualContents()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 1.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/SerializeUtilTest.java
import junit.framework.TestCase; /** * @author higa * */ public class SerializeUtilTest extends TestCase { /** * @throws Exception */ public void testSerialize() throws Exception { final String[] a = new String[] { "1", "2" }; final String[] b = (String[]) SerializeUtil.serialize(a); assertEquals("1", b.length, a.length); assertEquals("2", "1", b[0]);
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/SLinkedListTest.java
assertThat(list.get(1), is("2")); assertThat(list.get(2), is("3")); } /** * @throws Exception */ @Test public void testSerialize() throws Exception { list.addLast("1"); list.addLast("2"); list.addLast("3"); assertThat(SerializeUtil.serialize(list), is(notNullValue())); } /**
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/ArrayMapTest.java
ArrayMap<String, String> m = new ArrayMap<String, String>(1); m.getEntryAt(1); } /** * @throws Exception */ @Test public void testSerialize() throws Exception { @SuppressWarnings("unchecked") ArrayMap<String, String> copy = (ArrayMap<String, String>) SerializeUtil.serialize(map); assertThat(copy.getAt(0), is(nullValue()));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 10.7K bytes - Viewed (0)