Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for forAllPublicStaticMethods (0.25 sec)

  1. android/guava-tests/test/com/google/common/base/SuppliersTest.java

      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testSuppliersNullChecks() throws Exception {
        new ClassSanityTester()
            .setDefault(Duration.class, Duration.ofSeconds(1))
            .forAllPublicStaticMethods(Suppliers.class)
            .testNulls();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      @AndroidIncompatible // TODO(cpovirk): ClassNotFoundException: com.google.common.base.Function
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/SuppliersTest.java

      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testSuppliersNullChecks() throws Exception {
        new ClassSanityTester()
            .setDefault(Duration.class, Duration.ofSeconds(1))
            .forAllPublicStaticMethods(Suppliers.class)
            .testNulls();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      @AndroidIncompatible // TODO(cpovirk): ClassNotFoundException: com.google.common.base.Function
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

      public void testEquals() throws Exception {
        new ClassSanityTester()
            .setDistinctValues(Class.class, Color.class, Gender.class)
            .setDistinctValues(Enum.class, Color.BLUE, Color.RED)
            .forAllPublicStaticMethods(EnumMultisetFactory.class)
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        new NullPointerTester()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

     *   public static Book paperback(String title) {...}
     * }
     * </pre>
     *
     * <p>And all the created {@code Book} instances can be tested with:
     *
     * <pre>
     * new ClassSanityTester()
     *     .forAllPublicStaticMethods(Books.class)
     *     .thatReturn(Book.class)
     *     .testEquals(); // or testNulls(), testSerializable() etc.
     * </pre>
     *
     * @author Ben Yu
     * @since 14.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/PredicatesTest.java

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

            .setDistinctValues(byte[].class, new byte[] {1, 2, 3, 4}, new byte[] {5, 6, 7, 8})
            .setDistinctValues(String.class, "7f8005ff0e", "7f8005ff0f")
            .forAllPublicStaticMethods(HashCode.class);
      }
    
      private static void assertExpectedHashCode(ExpectedHashCode expectedHashCode, HashCode hash) {
        assertTrue(Arrays.equals(expectedHashCode.bytes, hash.asBytes()));
    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-tests/test/com/google/common/hash/HashCodeTest.java

            .setDistinctValues(byte[].class, new byte[] {1, 2, 3, 4}, new byte[] {5, 6, 7, 8})
            .setDistinctValues(String.class, "7f8005ff0e", "7f8005ff0f")
            .forAllPublicStaticMethods(HashCode.class);
      }
    
      private static void assertExpectedHashCode(ExpectedHashCode expectedHashCode, HashCode hash) {
        assertTrue(Arrays.equals(expectedHashCode.bytes, hash.asBytes()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

     * public class Books {
     *   public static Book hardcover(String title) {...}
     *   public static Book paperback(String title) {...}
     * }
     * </pre>
     *
     * <p>please use {@link ClassSanityTester#forAllPublicStaticMethods}.
     *
     * <p>If not all classes on the classpath should be covered, {@link #ignoreClasses} can be used to
     * exclude certain classes. As a special case, classes with an underscore in the name (like {@code
    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. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

      }
    
      public void testExecutors_nullCheck() throws Exception {
        new ClassSanityTester()
            .setDefault(RateLimiter.class, RateLimiter.create(1.0))
            .forAllPublicStaticMethods(MoreExecutors.class)
            .thatReturn(Executor.class)
            .testNulls();
      }
    
      private static class TestApplication extends Application {
        private final List<Thread> hooks = Lists.newArrayList();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

     * public class Books {
     *   public static Book hardcover(String title) {...}
     *   public static Book paperback(String title) {...}
     * }
     * </pre>
     *
     * <p>please use {@link ClassSanityTester#forAllPublicStaticMethods}.
     *
     * <p>If not all classes on the classpath should be covered, {@link #ignoreClasses} can be used to
     * exclude certain classes. As a special case, classes with an underscore in the name (like {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top