Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for testEqualsAndSerializable (0.19 sec)

  1. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        } catch (AssertionError expected) {
          return;
        }
        fail("should have failed");
      }
    
      public void testEqualsAndSerializableOnReturnValues_serializableButNotEquals() throws Exception {
        try {
          tester.forAllPublicStaticMethods(GoodSerializableFactory.class).testEqualsAndSerializable();
        } catch (AssertionError expected) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/FunctionsTest.java

      // (I suspect that this and the other similar failures happen with ArbitraryInstances proxies.)
      public void testEqualsAndSerializable() throws Exception {
        new ClassSanityTester().forAllPublicStaticMethods(Functions.class).testEqualsAndSerializable();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      private static <Y> void checkCanReserialize(Function<? super Integer, Y> f) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

              "testSerializable", "testSerialization",
              "testEqualsAndSerializable", "testEqualsAndSerialization");
    
      /* The names of the expected method that tests equals. */
      private static final ImmutableList<String> EQUALS_TEST_METHOD_NAMES =
          ImmutableList.of(
              "testEquals",
              "testEqualsAndHashCode",
              "testEqualsAndSerializable",
              "testEqualsAndSerialization",
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/FunctionsTest.java

      // (I suspect that this and the other similar failures happen with ArbitraryInstances proxies.)
      public void testEqualsAndSerializable() throws Exception {
        new ClassSanityTester().forAllPublicStaticMethods(Functions.class).testEqualsAndSerializable();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      private static <Y> void checkCanReserialize(Function<? super Integer, Y> f) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      public void testHashCode_nulls() throws Exception {
        sanityTester().testNulls();
      }
    
      public void testHashCode_equalsAndSerializable() throws Exception {
        sanityTester().testEqualsAndSerializable();
      }
    
      public void testRoundTripHashCodeUsingBaseEncoding() {
        HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      public void testHashCode_nulls() throws Exception {
        sanityTester().testNulls();
      }
    
      public void testHashCode_equalsAndSerializable() throws Exception {
        sanityTester().testEqualsAndSerializable();
      }
    
      public void testRoundTripHashCodeUsingBaseEncoding() {
        HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      @GwtIncompatible // reflection
      @AndroidIncompatible // TODO(cpovirk): ClassNotFoundException: com.google.common.base.Function
      public void testEqualsAndSerializable() throws Exception {
        new ClassSanityTester().forAllPublicStaticMethods(Predicates.class).testEqualsAndSerializable();
      }
    
      private static void assertEvalsToTrue(Predicate<? super @Nullable Integer> predicate) {
        assertTrue(predicate.apply(0));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 32.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

         *
         * @return this tester
         */
        @CanIgnoreReturnValue
        @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
        public FactoryMethodReturnValueTester testEqualsAndSerializable() throws Exception {
          for (Invokable<?, ?> factory : getFactoriesToTest()) {
            try {
              testEqualsUsing(factory);
            } catch (FactoryMethodReturnsNullException e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

         *
         * @return this tester
         */
        @CanIgnoreReturnValue
        @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
        public FactoryMethodReturnValueTester testEqualsAndSerializable() throws Exception {
          for (Invokable<?, ?> factory : getFactoriesToTest()) {
            try {
              testEqualsUsing(factory);
            } catch (FactoryMethodReturnsNullException e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top