- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for testSerializable (0.18 sec)
-
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
* * <p>In all cases, if {@code C} needs custom logic for testing serialization, you can add an * explicit {@code testSerializable()} test in the corresponding {@code CTest} class, and {@code * C} will be excluded from automated serialization test performed by this method. */ @Test public void testSerializable() throws Exception { // TODO: when we use @BeforeClass, we can pay the cost of class path scanning only once.
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri May 12 19:22:18 GMT 2023 - 17.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/EnumMultisetTest.java
ms.add(Color.BLUE, 3); ms.add(Color.YELLOW, 1); ms.add(Color.RED, 2); assertEquals("[BLUE x 3, RED x 2, YELLOW]", ms.toString()); } @GwtIncompatible // SerializableTester public void testSerializable() { Multiset<Color> ms = EnumMultiset.create(asList(Color.RED, Color.YELLOW, Color.RED)); assertEquals(ms, SerializableTester.reserialize(ms)); } public void testEntrySet() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 16:35:21 GMT 2024 - 5.8K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
public void testSerializableOnReturnValues_good() throws Exception { tester.forAllPublicStaticMethods(GoodSerializableFactory.class).testSerializable(); } public static class GoodSerializableFactory { public static Object good(Runnable r) { return r; } public static Object good(AnInterface i) { return i;
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Nov 16 15:12:31 GMT 2023 - 36.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/PairedStatsTest.java
.addEqualityGroup( new PairedStats(MANY_VALUES_STATS_ITERABLE, MANY_VALUES_STATS_ITERABLE, 1.234)) .testEquals(); } public void testSerializable() { SerializableTester.reserializeAndAssert(MANY_VALUES_PAIRED_STATS); } public void testToString() { assertThat(EMPTY_PAIRED_STATS.toString())
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 14K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/PairedStatsTest.java
.addEqualityGroup( new PairedStats(MANY_VALUES_STATS_ITERABLE, MANY_VALUES_STATS_ITERABLE, 1.234)) .testEquals(); } public void testSerializable() { SerializableTester.reserializeAndAssert(MANY_VALUES_PAIRED_STATS); } public void testToString() { assertThat(EMPTY_PAIRED_STATS.toString())
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 14K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java
uniqueEntries.addAll(bimap.entrySet()); assertEquals(3, uniqueEntries.size()); } @J2ktIncompatible @GwtIncompatible // serialize public void testSerializable() { SerializableTester.reserializeAndAssert(EnumHashBiMap.create(Currency.class)); } @J2ktIncompatible @GwtIncompatible // reflection public void testNulls() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 26 16:35:21 GMT 2024 - 8.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java
uniqueEntries.addAll(bimap.entrySet()); assertEquals(3, uniqueEntries.size()); } @J2ktIncompatible @GwtIncompatible // serialize public void testSerializable() { SerializableTester.reserializeAndAssert(EnumHashBiMap.create(Currency.class)); } @J2ktIncompatible @GwtIncompatible // reflection public void testNulls() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 16:35:21 GMT 2024 - 8.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/EnumBiMapTest.java
uniqueEntries.addAll(bimap.entrySet()); assertEquals(3, uniqueEntries.size()); } @J2ktIncompatible @GwtIncompatible // serialization public void testSerializable() { SerializableTester.reserializeAndAssert( EnumBiMap.create(ImmutableMap.of(Currency.DOLLAR, Country.CANADA))); } @J2ktIncompatible @GwtIncompatible // reflection
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 26 16:35:21 GMT 2024 - 11.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java
uniqueEntries.addAll(bimap.entrySet()); assertEquals(3, uniqueEntries.size()); } @J2ktIncompatible @GwtIncompatible // serialization public void testSerializable() { SerializableTester.reserializeAndAssert( EnumBiMap.create(ImmutableMap.of(Currency.DOLLAR, Country.CANADA))); } @J2ktIncompatible @GwtIncompatible // reflection
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 16:35:21 GMT 2024 - 11.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* * <pre> * new ClassSanityTester() * .forAllPublicStaticMethods(Books.class) * .thatReturn(Book.class) * .testEquals(); // or testNulls(), testSerializable() etc. * </pre> * * @author Ben Yu * @since 14.0 */ @GwtIncompatible @J2ktIncompatible public final class ClassSanityTester { private static final Ordering<Invokable<?, ?>> BY_METHOD_NAME =
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 08 17:31:55 GMT 2024 - 33K bytes - Viewed (0)