Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 156 for NullPointerTester (0.1 sec)

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

      }
    
      private static class Nested {}
    
    
      public void testNulls() throws IOException {
        new NullPointerTester().testAllPublicStaticMethods(ClassPath.class);
        new NullPointerTester()
            .testAllPublicInstanceMethods(ClassPath.from(getClass().getClassLoader()));
      }
    
      @AndroidIncompatible // ClassPath is documented as not supporting Android
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashingTest.java

              expected,
              func.hashString(input, UTF_8).toString());
        }
      }
    
      public void testNullPointers() {
        NullPointerTester tester =
            new NullPointerTester()
                .setDefault(byte[].class, "secret key".getBytes(UTF_8))
                .setDefault(HashCode.class, HashCode.fromLong(0));
        tester.testAllPublicStaticMethods(Hashing.class);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 17:40:09 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/MediaTypeTest.java

            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // com.google.common.testing.NullPointerTester
      public void testNullPointer() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicConstructors(MediaType.class);
        tester.testAllPublicStaticMethods(MediaType.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(converter.reverse().convert(1e-6f)).isEqualTo("1.0E-6");
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testStringConverter_nullPointerTester() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(Floats.stringConverter());
      }
    
      @GwtIncompatible
      public void testTryParse_withNullNoGwt() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(converter.reverse().convert(0666)).isEqualTo("438");
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testStringConverter_nullPointerTester() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(Ints.stringConverter());
      }
    
      public void testTryParse() {
        tryParseAndAssertEquals(0, "0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(converter.reverse().convert(1e-6)).isEqualTo("1.0E-6");
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testStringConverter_nullPointerTester() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(Doubles.stringConverter());
      }
    
      @GwtIncompatible
      public void testTryParse_withNullNoGwt() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(converter.reverse().convert(1e-6f)).isEqualTo("1.0E-6");
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testStringConverter_nullPointerTester() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(Floats.stringConverter());
      }
    
      @GwtIncompatible
      public void testTryParse_withNullNoGwt() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(converter.reverse().convert(0666L)).isEqualTo("438");
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testStringConverter_nullPointerTester() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(Longs.stringConverter());
      }
    
      public void testTryParse() {
        tryParseAndAssertEquals(0L, "0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableListTest.java

            .expectCollects(ImmutableList.of("a", "b", "c", "d"), "a", "b", "c", "d");
      }
    
      // Basic tests
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableList.class);
        tester.testAllPublicInstanceMethods(ImmutableList.of(1, 2, 3));
      }
    
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/DoubleMathTest.java

        assertThrows(
            IllegalArgumentException.class, () -> DoubleMath.mean(ImmutableList.<Long>of().iterator()));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.setDefault(double.class, 3.0);
        tester.testAllPublicStaticMethods(DoubleMath.class);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 27.3K bytes
    - Viewed (0)
Back to top