Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for testSerializable (0.23 sec)

  1. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  2. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  3. 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)
  4. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. 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)
  6. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  7. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  8. 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)
  9. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  10. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
Back to top