Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 56 for reserializeAndAssert (0.15 sec)

  1. android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        uniqueEntries.addAll(bimap.entrySet());
        assertEquals(3, uniqueEntries.size());
      }
    
      @GwtIncompatible
      @J2ktIncompatible
        public void testSerializable() {
        SerializableTester.reserializeAndAssert(
            EnumBiMap.create(ImmutableMap.of(Currency.DOLLAR, Country.CANADA)));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testStringConverterSerialization() {
        SerializableTester.reserializeAndAssert(Doubles.stringConverter());
      }
    
      public void testToArray() {
        // need explicit type parameter to avoid javac warning!?
        List<Double> none = Arrays.<Double>asList();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

              // If the factory returns null, we just skip it.
            }
            Object instance = instantiate(factory);
            if (instance != null) {
              try {
                SerializableTester.reserializeAndAssert(instance);
              } catch (Exception e) { // sneaky checked exception
                throw new AssertionError(
                    "Serialization failed on return value of " + factory, e.getCause());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/IntsTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testStringConverterSerialization() {
        SerializableTester.reserializeAndAssert(Ints.stringConverter());
      }
    
      public void testToArray() {
        // need explicit type parameter to avoid javac warning!?
        List<Integer> none = Arrays.<Integer>asList();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        uniqueEntries.addAll(bimap.entrySet());
        assertEquals(3, uniqueEntries.size());
      }
    
      @GwtIncompatible
      @J2ktIncompatible
        public void testSerializable() {
        SerializableTester.reserializeAndAssert(
            EnumBiMap.create(ImmutableMap.of(Currency.DOLLAR, Country.CANADA)));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ListsTest.java

      @GwtIncompatible // SerializableTester
      public void testAsList1() {
        List<String> list = Lists.asList("foo", new String[] {"bar", "baz"});
        checkFooBarBazList(list);
        SerializableTester.reserializeAndAssert(list);
        assertTrue(list instanceof RandomAccess);
    
        new IteratorTester<String>(
            5, UNMODIFIABLE, asList("foo", "bar", "baz"), IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerialization() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        SerializableTester.reserializeAndAssert(table);
      }
    
      public void testToString_ordered() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertEquals("{bar={1=b}, foo={1=a, 3=c}}", table.toString());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/SetsTest.java

        Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B);
    
        assertThat(units).containsExactly(SomeEnum.B, SomeEnum.D).inOrder();
    
        Set<SomeEnum> copy = SerializableTester.reserializeAndAssert(units);
        assertTrue(copy instanceof ImmutableEnumSet);
      }
    
      public void testImmutableEnumSet_fromIterable() {
        ImmutableSet<SomeEnum> none = Sets.immutableEnumSet(MinimalIterable.<SomeEnum>of());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

              // If the factory returns null, we just skip it.
            }
            Object instance = instantiate(factory);
            if (instance != null) {
              try {
                SerializableTester.reserializeAndAssert(instance);
              } catch (Exception e) { // sneaky checked exception
                throw new AssertionError(
                    "Serialization failed on return value of " + factory, e.getCause());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

      }
    
      @AndroidIncompatible // TODO(cpovirk): ClassNotFoundException... ClassSanityTesterTest$AnInterface
      public void testInterfaceProxySerializable() throws Exception {
        SerializableTester.reserializeAndAssert(tester.instantiate(HasAnInterface.class));
      }
    
      public void testReturnValuesFromAnotherPackageIgnoredForNullTests() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 36.2K bytes
    - Viewed (0)
Back to top