Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 101 for testAllPublicStaticMethods (0.64 sec)

  1. guava-tests/test/com/google/common/hash/BloomFilterTest.java

      }
    
      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. */
      public void testOptimalHashes() {
        for (int n = 1; n < 1000; n++) {
          for (int m = 0; m < 1000; m++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/IntMathTest.java

      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.setDefault(int.class, 1);
        tester.testAllPublicStaticMethods(IntMath.class);
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrime() {
        // Defer correctness tests to Long.isPrime
    
        // Check the first 100,000 integers
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

            .testEquals();
      }
    
      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(LinkedListMultimap.class);
        tester.ignore(LinkedListMultimap.class.getMethod("get", Object.class));
        tester.ignore(LinkedListMultimap.class.getMethod("removeAll", Object.class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/net/InetAddressesTest.java

     *
     * @author Erik Kline
     */
    public class InetAddressesTest extends TestCase {
    
      public void testNulls() {
        NullPointerTester tester = new NullPointerTester();
    
        tester.testAllPublicStaticMethods(InetAddresses.class);
      }
    
      public void testForStringBogusInput() {
        ImmutableSet<String> bogusInputs =
            ImmutableSet.of(
                "",
                "016.016.016.016",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicConstructors(MinMaxPriorityQueue.class);
        tester.testAllPublicStaticMethods(MinMaxPriorityQueue.class);
        tester.testAllPublicInstanceMethods(MinMaxPriorityQueue.<String>create());
      }
    
      private static void insertIntoReplica(Map<Integer, AtomicInteger> replica, int newValue) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/net/MediaTypeTest.java

      public void testNullPointer() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicConstructors(MediaType.class);
        tester.testAllPublicStaticMethods(MediaType.class);
        tester.testAllPublicInstanceMethods(MediaType.parse("text/plain"));
      }
    
      public void testToString() {
        assertEquals("text/plain", MediaType.create("text", "plain").toString());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

                "a",
                "c",
                "b",
                "c",
                "A",
                "C");
      }
    
      public void testNullPointers() {
        new NullPointerTester().testAllPublicStaticMethods(ImmutableSortedMultiset.class);
      }
    
      public void testSerialization_empty() {
        Collection<String> c = ImmutableSortedMultiset.of();
        assertSame(c, SerializableTester.reserialize(c));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableMap.class);
        tester.testAllPublicInstanceMethods(new ImmutableMap.Builder<Object, Object>());
        tester.testAllPublicInstanceMethods(ImmutableMap.of());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

          }
        }
      }
    
      /**
       * Runs {@link #testMethod} on every public static method of class {@code c}, including those
       * "inherited" from superclasses of the same package.
       */
      public void testAllPublicStaticMethods(Class<?> c) {
        testStaticMethods(c, Visibility.PUBLIC);
      }
    
      /**
       * Runs {@link #testMethod} on every instance method of the class of {@code instance} with at
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

            .build();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableSetMultimap.class);
        tester.ignore(ImmutableSetMultimap.class.getMethod("get", Object.class));
        tester.testAllPublicInstanceMethods(ImmutableSetMultimap.of());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
Back to top