Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for NullPointerTester (0.07 sec)

  1. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        }
    
        default void checksNull(String s) {
          checkNotNull(s);
        }
      }
    
      public void testInterfaceStaticMethod() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(InterfaceStaticMethodChecksNull.class);
        try {
          tester.testAllPublicStaticMethods(InterfaceStaticMethodFailsToCheckNull.class);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/InternersTest.java

    import com.google.common.collect.Interners.InternerImpl;
    import com.google.common.collect.MapMakerInternalMap.Strength;
    import com.google.common.testing.GcFinalization;
    import com.google.common.testing.NullPointerTester;
    import java.lang.ref.WeakReference;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Unit test for {@link Interners}.
     *
     * @author Kevin Bourrillion
     */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 17:02:07 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/FunctionsTest.java

      public void testToStringFunctionSerializable() {
        checkCanReserializeSingleton(Functions.toStringFunction());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointerExceptions() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(Functions.class);
      }
    
      public void testForMapWithoutDefault() {
        Map<String, @Nullable Integer> map = new HashMap<>();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 16K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/PrimitivesTest.java

        assertThrows(UnsupportedOperationException.class, () -> wrappers.remove(Boolean.class));
      }
    
      @GwtIncompatible
      @J2ktIncompatible
      public void testNullPointerExceptions() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(Primitives.class);
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/EvictingQueueTest.java

        assertEquals("five", queue.remove());
        assertTrue(queue.isEmpty());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointerExceptions() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(EvictingQueue.class);
        tester.testAllPublicConstructors(EvictingQueue.class);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/EnumsTest.java

      }
    
      @J2ktIncompatible
      public void testStringConverter_nullPointerTester() throws Exception {
        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);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testContainsPattern_nulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        Predicate<CharSequence> isWooString = Predicates.containsPattern("Woo");
    
        tester.testAllPublicInstanceMethods(isWooString);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testContains_nulls() throws Exception {
    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/base/PredicatesTest.java

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

        Optional<Number> first = (Optional<Number>) numbers.first();
        Number value = first.or(0.5); // fine
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        NullPointerTester npTester = new NullPointerTester();
        npTester.testAllPublicConstructors(Optional.class);
        npTester.testAllPublicStaticMethods(Optional.class);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        assertFalse(completed);
        thread.start();
        thread.join();
        assertTrue(completed);
      }
    
      public void testNulls() {
        NullPointerTester npTester = new NullPointerTester();
        npTester.testAllPublicConstructors(ThreadFactoryBuilder.class);
        npTester.testAllPublicStaticMethods(ThreadFactoryBuilder.class);
        npTester.testAllPublicInstanceMethods(builder);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 7.6K bytes
    - Viewed (0)
Back to top