Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 156 for NullPointerTester (0.26 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

    package com.google.common.util.concurrent;
    
    import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.testing.NullPointerTester;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.Executor;
    import java.util.concurrent.Executors;
    import java.util.concurrent.atomic.AtomicInteger;
    import junit.framework.TestCase;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

        out.write(buf);
    
        assertEquals(expectedHash, out.hash());
      }
    
      public void testChecksForNull() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(
            new HashingOutputStream(Hashing.md5(), new ByteArrayOutputStream()));
        tester.testAllPublicStaticMethods(HashingOutputStream.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 11 22:00:03 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/TreeTraverserTest.java

      public void testUsing() {
        assertThat(iterationOrder(ADAPTER_USING_USING.preOrderTraversal(h))).isEqualTo("hdabcegf");
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNulls() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(ADAPTER);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class CharMatcherTest extends TestCase {
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testStaticNullPointers() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(CharMatcher.class);
        tester.testAllPublicInstanceMethods(CharMatcher.any());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  5. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java

      public void testNewReferenceArray_withNullArray() throws Exception {
        assertThrows(NullPointerException.class, () -> Atomics.newReferenceArray(null));
      }
    
      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicConstructors(Atomics.class); // there aren't any
        tester.testAllPublicStaticMethods(Atomics.class);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/ParametricNullness.java

     *       list.
     *   <li><a href="https://developers.google.com/j2objc">J2ObjC</a>
     *   <li>{@code NullPointerTester}, at least in the Android backport (where the type-use annotations
     *       {@code NullPointerTester} would need are not available) and in case of <a
     *       href="https://bugs.openjdk.java.net/browse/JDK-8202469">JDK-8202469</a>
     * </ul>
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Aug 10 21:27:51 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/ParametricNullness.java

     *       list.
     *   <li><a href="https://developers.google.com/j2objc">J2ObjC</a>
     *   <li>{@code NullPointerTester}, at least in the Android backport (where the type-use annotations
     *       {@code NullPointerTester} would need are not available) and in case of <a
     *       href="https://bugs.openjdk.java.net/browse/JDK-8202469">JDK-8202469</a>
     * </ul>
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Aug 10 21:27:51 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          MutableClassToInstanceMap.create();
      private final ListMultimap<Class<?>, Object> distinctValues = ArrayListMultimap.create();
      private final NullPointerTester nullPointerTester = new NullPointerTester();
    
      public ClassSanityTester() {
        // TODO(benyu): bake these into ArbitraryInstances.
        setDefault(byte.class, (byte) 1);
        setDefault(Byte.class, (byte) 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  10. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top