Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for thatReturn (0.07 sec)

  1. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

     * }
     * </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
    @NullUnmarked
    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>
     *
     * <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
    @NullUnmarked
    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

          tester.forAllPublicStaticMethods(BadNullsFactory.class).thatReturn(Object.class).testNulls();
        } catch (AssertionError expected) {
          return;
        }
        fail();
      }
    
      public void testNullsOnReturnValues_returnTypeFiltered() throws Exception {
        try {
          tester
              .forAllPublicStaticMethods(BadNullsFactory.class)
              .thatReturn(Iterable.class)
              .testNulls();
    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/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 = new ArrayList<>();
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/IterablesTest.java

      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testIterables_nullCheck() throws Exception {
        new ClassSanityTester()
            .forAllPublicStaticMethods(Iterables.class)
            .thatReturn(Iterable.class)
            .testNulls();
      }
    
      private static void verifyMergeSorted(
          Iterable<Iterable<Integer>> iterables, Iterable<Integer> unsortedExpected) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IterablesTest.java

      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testIterables_nullCheck() throws Exception {
        new ClassSanityTester()
            .forAllPublicStaticMethods(Iterables.class)
            .thatReturn(Iterable.class)
            .testNulls();
      }
    
      private static void verifyMergeSorted(
          Iterable<Iterable<Integer>> iterables, Iterable<Integer> unsortedExpected) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
Back to top