Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for testSerializable (0.21 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.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K 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.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. 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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. 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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/SuppliersTest.java

      public void testSuppliersSerializable() throws Exception {
        new ClassSanityTester()
            .setDefault(Duration.class, Duration.ofSeconds(1))
            .forAllPublicStaticMethods(Suppliers.class)
            .testSerializable();
      }
    
      public void testOfInstance_equals() {
        new EqualsTester()
            .addEqualityGroup(Suppliers.ofInstance("foo"), Suppliers.ofInstance("foo"))
            .addEqualityGroup(Suppliers.ofInstance("bar"))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/SuppliersTest.java

      public void testSuppliersSerializable() throws Exception {
        new ClassSanityTester()
            .setDefault(Duration.class, Duration.ofSeconds(1))
            .forAllPublicStaticMethods(Suppliers.class)
            .testSerializable();
      }
    
      public void testOfInstance_equals() {
        new EqualsTester()
            .addEqualityGroup(Suppliers.ofInstance("foo"), Suppliers.ofInstance("foo"))
            .addEqualityGroup(Suppliers.ofInstance("bar"))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/StatsTest.java

            .addEqualityGroup(new Stats(5, -5.5, 55.5, -5.56, 5.55))
            .addEqualityGroup(new Stats(5, -5.5, 55.5, -5.55, 5.56))
            .testEquals();
      }
    
      public void testSerializable() {
        SerializableTester.reserializeAndAssert(MANY_VALUES_STATS_ITERABLE);
      }
    
      public void testToString() {
        assertThat(EMPTY_STATS_VARARGS.toString()).isEqualTo("Stats{count=0}");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertEquals(
            new TypeToken<Map<String, Integer>>() {},
            new IKnowMyType<Map<String, Integer>>() {}.type());
      }
    
      public <A extends Iterable<? extends String>, B extends A> void testSerializable() {
        reserialize(TypeToken.of(String.class));
        reserialize(TypeToken.of(String.class).getTypes());
        reserialize(TypeToken.of(String.class).getTypes().classes());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertEquals(
            new TypeToken<Map<String, Integer>>() {},
            new IKnowMyType<Map<String, Integer>>() {}.type());
      }
    
      public <A extends Iterable<? extends String>, B extends A> void testSerializable() {
        reserialize(TypeToken.of(String.class));
        reserialize(TypeToken.of(String.class).getTypes());
        reserialize(TypeToken.of(String.class).getTypes().classes());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
Back to top