Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for ClassSanityTester (0.07 sec)

  1. 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
    @NullUnmarked
    @SuppressWarnings("nullness")
    public final class ClassSanityTester {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  2. android/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
    @NullUnmarked
    @SuppressWarnings("nullness")
    public final class ClassSanityTester {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

    import com.google.common.base.Optional;
    import com.google.common.collect.ImmutableList;
    import com.google.common.testing.ClassSanityTester.FactoryMethodReturnsNullException;
    import com.google.common.testing.ClassSanityTester.ParameterHasNoDistinctValueException;
    import com.google.common.testing.ClassSanityTester.ParameterNotInstantiableException;
    import com.google.common.testing.NullPointerTester.Visibility;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/HashCodeTest.java

        HASH_ABCD.writeBytesTo(dest, 0, 2);
        assertTrue(Arrays.equals(new byte[] {(byte) 0xaa, (byte) 0xbb, (byte) 0x00}, dest));
      }
    
      private static ClassSanityTester.FactoryMethodReturnValueTester sanityTester() {
        return new ClassSanityTester()
            .setDefault(byte[].class, new byte[] {1, 2, 3, 4})
            .setDistinctValues(byte[].class, new byte[] {1, 2, 3, 4}, new byte[] {5, 6, 7, 8})
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/SuppliersTest.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.collect.Lists;
    import com.google.common.testing.ClassSanityTester;
    import com.google.common.testing.EqualsTester;
    import java.io.NotSerializableException;
    import java.io.Serializable;
    import java.time.Duration;
    import java.util.ArrayList;
    import java.util.List;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        HASH_ABCD.writeBytesTo(dest, 0, 2);
        assertTrue(Arrays.equals(new byte[] {(byte) 0xaa, (byte) 0xbb, (byte) 0x00}, dest));
      }
    
      private static ClassSanityTester.FactoryMethodReturnValueTester sanityTester() {
        return new ClassSanityTester()
            .setDefault(byte[].class, new byte[] {1, 2, 3, 4})
            .setDistinctValues(byte[].class, new byte[] {1, 2, 3, 4}, new byte[] {5, 6, 7, 8})
    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/FunctionsTest.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.testing.ClassSanityTester;
    import com.google.common.testing.EqualsTester;
    import com.google.common.testing.NullPointerTester;
    import com.google.common.testing.SerializableTester;
    import java.io.Serializable;
    import java.util.HashMap;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

          suffix("Test").or(suffix("Tests")).or(suffix("TestCase")).or(suffix("TestSuite"));
    
      private final Logger logger = Logger.getLogger(getClass().getName());
      private final ClassSanityTester tester = new ClassSanityTester();
      private Visibility visibility = Visibility.PACKAGE;
      private Predicate<Class<?>> classFilter =
          (Class<?> cls) -> visibility.isVisible(cls.getModifiers());
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/FunctionsTest.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.testing.ClassSanityTester;
    import com.google.common.testing.EqualsTester;
    import com.google.common.testing.NullPointerTester;
    import com.google.common.testing.SerializableTester;
    import java.io.Serializable;
    import java.util.HashMap;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

    import static org.mockito.Mockito.when;
    
    import com.google.common.base.Suppliers;
    import com.google.common.base.Throwables;
    import com.google.common.collect.ImmutableList;
    import com.google.common.testing.ClassSanityTester;
    import com.google.common.util.concurrent.MoreExecutors.Application;
    import java.lang.Thread.State;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 28K bytes
    - Viewed (0)
Back to top