Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ClassSanityTester (0.09 sec)

  1. 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
    public final class ClassSanityTester {
    
      private static final Ordering<Invokable<?, ?>> BY_METHOD_NAME =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  4. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

    import com.google.common.collect.testing.google.MultisetTestSuiteBuilder;
    import com.google.common.collect.testing.google.TestEnumMultisetGenerator;
    import com.google.common.testing.ClassSanityTester;
    import com.google.common.testing.NullPointerTester;
    import com.google.common.testing.SerializableTester;
    import com.google.errorprone.annotations.Keep;
    import java.util.Collection;
    import java.util.EnumSet;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  8. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/PredicatesTest.java

      public void testNulls() throws Exception {
        new ClassSanityTester().forAllPublicStaticMethods(Predicates.class).testNulls();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      @AndroidIncompatible // TODO(cpovirk): ClassNotFoundException: com.google.common.base.Function
      public void testEqualsAndSerializable() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

    import com.google.common.base.Suppliers;
    import com.google.common.base.Throwables;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Lists;
    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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top