Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 68 for reserializeAndAssert (0.15 sec)

  1. 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())
            .isEqualTo("PairedStats{xStats=Stats{count=0}, yStats=Stats{count=0}}");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 14K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

        validateReserialization(table);
      }
    
      private static <R, C, V> void validateReserialization(Table<R, C, V> original) {
        Table<R, C, V> copy = SerializableTester.reserializeAndAssert(original);
        assertThat(copy.cellSet()).containsExactlyElementsIn(original.cellSet()).inOrder();
        assertThat(copy.rowKeySet()).containsExactlyElementsIn(original.rowKeySet()).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

            try {
              Object instance = tester.instantiate(classToTest);
              if (instance != null) {
                if (isEqualsDefined(classToTest)) {
                  SerializableTester.reserializeAndAssert(instance);
                } else {
                  SerializableTester.reserialize(instance);
                }
              }
            } catch (Throwable e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        assertEquals(3, uniqueEntries.size());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // serialization
      public void testSerializable() {
        SerializableTester.reserializeAndAssert(
            EnumBiMap.create(ImmutableMap.of(Currency.DOLLAR, Country.CANADA)));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.8K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  8. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

      public void testSerialization() {
        RangeSet<Integer> rangeSet = TreeRangeSet.create();
        rangeSet.add(Range.closed(3, 10));
        rangeSet.remove(Range.open(5, 7));
        SerializableTester.reserializeAndAssert(rangeSet);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
Back to top