Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 60 for testAllPublicInstanceMethods (0.33 seconds)

  1. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

            .testEquals();
      }
    
      public void testNulls() {
        new NullPointerTester().testAllPublicStaticMethods(Invokable.class);
        new NullPointerTester().testAllPublicInstanceMethods(Prepender.method("staticMethod"));
      }
    
      @Retention(RetentionPolicy.RUNTIME)
      private @interface NotBlank {}
    
      /** Class for testing constructor, static method and instance method. */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jul 16 17:42:14 GMT 2025
    - 30.7K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testStringConverter_nullPointerTester() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(Doubles.stringConverter());
      }
    
      @GwtIncompatible
      public void testTryParse_withNullNoGwt() {
        assertThat(Doubles.tryParse("null")).isNull();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 30.9K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      public void testNullParameters() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        tester.testAllPublicInstanceMethods(builder);
      }
    
      @GwtIncompatible // CacheTesting
      public void testSizingDefaults() {
        LoadingCache<?, ?> cache = CacheBuilder.newBuilder().build(identityLoader());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/hash/BloomFilterTest.java

              BloomFilter.create(Funnels.unencodedCharsFunnel(), n, p);
            });
      }
    
      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(BloomFilter.create(Funnels.unencodedCharsFunnel(), 100));
        tester.testAllPublicStaticMethods(BloomFilter.class);
      }
    
      /** Tests that we never get an optimal hashes number of zero. */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:19:59 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/primitives/IntsTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testStringConverter_nullPointerTester() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(Ints.stringConverter());
      }
    
      public void testTryParse() {
        tryParseAndAssertEquals(0, "0");
        tryParseAndAssertEquals(0, "-0");
        tryParseAndAssertEquals(1, "1");
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 29.3K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/testing/NullPointerTester.java

      }
    
      /**
       * Runs {@link #testMethod} on every public instance method of the class of {@code instance},
       * including those inherited from superclasses of the same package.
       */
      public void testAllPublicInstanceMethods(Object instance) {
        testInstanceMethods(instance, Visibility.PUBLIC);
      }
    
      /**
       * Verifies that {@code method} produces a {@link NullPointerException} or {@link
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

      public void testNulls() {
        ServiceManager manager = new ServiceManager(Arrays.asList());
        new NullPointerTester()
            .setDefault(ServiceManager.Listener.class, new RecordingListener())
            .testAllPublicInstanceMethods(manager);
      }
    
      private static final class RecordingListener extends ServiceManager.Listener {
        volatile boolean healthyCalled;
        volatile boolean stoppedCalled;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 17:49:12 GMT 2025
    - 25.5K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/ImmutableListTest.java

      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableList.class);
        tester.testAllPublicInstanceMethods(ImmutableList.of(1, 2, 3));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerialization_empty() {
        Collection<String> c = ImmutableList.of();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 23.6K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/primitives/ShortsTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testStringConverter_nullPointerTester() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(Shorts.stringConverter());
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 27.5K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

      }
    
      /**
       * Runs {@link #testMethod} on every public instance method of the class of {@code instance},
       * including those inherited from superclasses of the same package.
       */
      public void testAllPublicInstanceMethods(Object instance) {
        testInstanceMethods(instance, Visibility.PUBLIC);
      }
    
      /**
       * Verifies that {@code method} produces a {@link NullPointerException} or {@link
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 24.9K bytes
    - Click Count (0)
Back to Top