Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for testAllPublicInstanceMethods (1.62 sec)

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

        NullPointerTester npTester = new NullPointerTester();
        npTester.testAllPublicConstructors(Optional.class);
        npTester.testAllPublicStaticMethods(Optional.class);
        npTester.testAllPublicInstanceMethods(Optional.absent());
        npTester.testAllPublicInstanceMethods(Optional.of("training"));
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        }
        fail();
      }
    
      public void testInterfaceDefaultMethod() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(InterfaceDefaultMethodChecksNull.create());
        try {
          tester.testAllPublicInstanceMethods(InterfaceDefaultMethodFailsToCheckNull.create());
        } catch (AssertionError expected) {
          return;
        }
        fail();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        NullPointerTester npTester = new NullPointerTester();
        npTester.testAllPublicConstructors(ThreadFactoryBuilder.class);
        npTester.testAllPublicStaticMethods(ThreadFactoryBuilder.class);
        npTester.testAllPublicInstanceMethods(builder);
      }
    
      private static String rootLocaleFormat(String format, Object... args) {
        return String.format(Locale.ROOT, format, args);
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

        return concat(strongImplementations(), weakImplementations());
      }
    
      public void testNull() throws Exception {
        for (Striped<?> striped : allImplementations()) {
          new NullPointerTester().testAllPublicInstanceMethods(striped);
        }
      }
    
      public void testSizes() {
        // not bothering testing all variations, since we know they share implementations
        assertThat(Striped.lock(100).size()).isAtLeast(100);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/EnumsTest.java

        Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class);
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(converter);
      }
    
      public void testStringConverter_nullConversions() {
        Converter<String, TestEnum> converter = Enums.stringConverter(TestEnum.class);
        assertThat(converter.convert(null)).isNull();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

        return concat(strongImplementations(), weakImplementations());
      }
    
      public void testNull() throws Exception {
        for (Striped<?> striped : allImplementations()) {
          new NullPointerTester().testAllPublicInstanceMethods(striped);
        }
      }
    
      public void testSizes() {
        // not bothering testing all variations, since we know they share implementations
        assertThat(Striped.lock(100).size()).isAtLeast(100);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/PredicatesTest.java

        tester.testAllPublicInstanceMethods(isWooString);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testContains_nulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        Predicate<CharSequence> isWooPattern = Predicates.contains(Pattern.compile("Woo"));
    
        tester.testAllPublicInstanceMethods(isWooPattern);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 32.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/EvictingQueueTest.java

        tester.testAllPublicConstructors(EvictingQueue.class);
        EvictingQueue<String> queue = EvictingQueue.create(5);
        // The queue must be non-empty so it throws a NPE correctly
        queue.add("one");
        tester.testAllPublicInstanceMethods(queue);
      }
    
      public void testSerialization() {
        EvictingQueue<String> original = EvictingQueue.create(5);
        original.add("one");
        original.add("two");
        original.add("three");
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        tester.testAllPublicStaticMethods(ImmutableMap.class);
        tester.testAllPublicInstanceMethods(new ImmutableMap.Builder<Object, Object>());
        tester.testAllPublicInstanceMethods(ImmutableMap.of());
        tester.testAllPublicInstanceMethods(ImmutableMap.of("one", 1));
        tester.testAllPublicInstanceMethods(ImmutableMap.of("one", 1, "two", 2, "three", 3));
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

      // null parameters test
    
      public void testNullParameters() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        CacheLoader<Object, Object> loader = identityLoader();
        tester.testAllPublicInstanceMethods(makeCache(createCacheBuilder(), loader));
      }
    
      // stats tests
    
      public void testStats() {
        CacheBuilder<Object, Object> builder = createCacheBuilder().concurrencyLevel(1).maximumSize(2);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 13.3K bytes
    - Viewed (0)
Back to top