Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 81 for testNulls (0.06 sec)

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

      }
    
      private static <T> TypeToken<T[]> arrayOf(Class<T> componentType) {
        return new TypeToken<T[]>() {}.where(new TypeParameter<T>() {}, componentType);
      }
    
      public <T> void testNulls() {
        new NullPointerTester().testAllPublicStaticMethods(TypeToken.class);
        new NullPointerTester()
            .setDefault(TypeParameter.class, new TypeParameter<T>() {})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      private static <T> TypeToken<T[]> arrayOf(Class<T> componentType) {
        return new TypeToken<T[]>() {}.where(new TypeParameter<T>() {}, componentType);
      }
    
      public <T> void testNulls() {
        new NullPointerTester().testAllPublicStaticMethods(TypeToken.class);
        new NullPointerTester()
            .setDefault(TypeParameter.class, new TypeParameter<T>() {})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java

        Integer newValue = map.getInstance(Integer.class);
        assertEquals(7, (int) newValue);
    
        // Won't compile: map.putInstance(Double.class, new Long(42));
      }
    
      public void testNull() {
        assertThrows(NullPointerException.class, () -> map.put(null, new Integer(1)));
        map.putInstance(Integer.class, null);
        assertNull(map.get(Integer.class));
        assertNull(map.getInstance(Integer.class));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        assertEquals(7, (int) newValue);
        assertEquals(7, (int) map.getInstance(TypeToken.of(Integer.class)));
    
        // Won't compile: map.putInstance(Double.class, new Long(42));
      }
    
      public void testNull() {
        assertThrows(
            NullPointerException.class,
            () -> map.putInstance((TypeToken<Integer>) null, Integer.valueOf(1)));
        map.putInstance(Integer.class, null);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java

         * Check most classical urls inheritance: directory structure where parent POM in parent directory
         * and child directory == artifactId
         * @throws IOException Model read problem
         */
        @Test
        void testUrls() throws Exception {
            testInheritance("urls");
        }
    
        /**
         * Flat directory structure: parent &amp; child POMs in sibling directories, child directory == artifactId.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            .build();
      }
    
      private static Iterable<Striped<?>> allImplementations() {
        return concat(strongImplementations(), weakImplementations());
      }
    
      public void testNull() throws Exception {
        for (Striped<?> striped : allImplementations()) {
          new NullPointerTester().testAllPublicInstanceMethods(striped);
        }
      }
    
      public void testSizes() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            .build();
      }
    
      private static Iterable<Striped<?>> allImplementations() {
        return concat(strongImplementations(), weakImplementations());
      }
    
      public void testNull() throws Exception {
        for (Striped<?> striped : allImplementations()) {
          new NullPointerTester().testAllPublicInstanceMethods(striped);
        }
      }
    
      public void testSizes() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        assertCrc(0x8a9136aa, zeros);
      }
    
      public void testZeros100() {
        // Test 100 byte array of 0x00.
        byte[] zeros = new byte[100];
        assertCrc(0x07cb9ff6, zeros);
      }
    
      public void testFull() {
        // Test 32 byte array of 0xFF.
        byte[] fulls = new byte[32];
        Arrays.fill(fulls, (byte) 0xFF);
        assertCrc(0x62a8ab43, fulls);
      }
    
      public void testFull100() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        assertCrc(0x8a9136aa, zeros);
      }
    
      public void testZeros100() {
        // Test 100 byte array of 0x00.
        byte[] zeros = new byte[100];
        assertCrc(0x07cb9ff6, zeros);
      }
    
      public void testFull() {
        // Test 32 byte array of 0xFF.
        byte[] fulls = new byte[32];
        Arrays.fill(fulls, (byte) 0xFF);
        assertCrc(0x62a8ab43, fulls);
      }
    
      public void testFull100() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        doTestEmpty(noneOf("CharMatcher"));
        doTestEmpty(inRange('n', 'q'));
        doTestEmpty(forPredicate(Predicates.equalTo('c')));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNull() throws Exception {
        doTestNull(CharMatcher.any());
        doTestNull(CharMatcher.none());
        doTestNull(is('a'));
        doTestNull(isNot('a'));
        doTestNull(anyOf(""));
        doTestNull(anyOf("x"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
Back to top