Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 13 for testToArray_withNull (0.1 seconds)

  1. guava-tests/test/com/google/common/primitives/BytesTest.java

            for (int j = 0; j < i; j++) {
              assertThat(arr[j]).isEqualTo(VALUES[j]);
            }
          }
        }
      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testToArray_withNull() {
        List<@Nullable Byte> list = Arrays.asList((byte) 0, (byte) 1, null);
        assertThrows(NullPointerException.class, () -> Bytes.toArray(list));
      }
    
      public void testToArray_withConversion() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 17.5K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/primitives/BytesTest.java

            for (int j = 0; j < i; j++) {
              assertThat(arr[j]).isEqualTo(VALUES[j]);
            }
          }
        }
      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testToArray_withNull() {
        List<@Nullable Byte> list = Arrays.asList((byte) 0, (byte) 1, null);
        assertThrows(NullPointerException.class, () -> Bytes.toArray(list));
      }
    
      public void testToArray_withConversion() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 17.5K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/primitives/CharsTest.java

            for (int j = 0; j < i; j++) {
              assertThat(arr[j]).isEqualTo(VALUES[j]);
            }
          }
        }
      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testToArray_withNull() {
        List<@Nullable Character> list = Arrays.asList((char) 0, (char) 1, null);
        assertThrows(NullPointerException.class, () -> Chars.toArray(list));
      }
    
      @J2ktIncompatible // b/285319375
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 26K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/primitives/CharsTest.java

            for (int j = 0; j < i; j++) {
              assertThat(arr[j]).isEqualTo(VALUES[j]);
            }
          }
        }
      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testToArray_withNull() {
        List<@Nullable Character> list = Arrays.asList((char) 0, (char) 1, null);
        assertThrows(NullPointerException.class, () -> Chars.toArray(list));
      }
    
      @J2ktIncompatible // b/285319375
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 26K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

            for (int j = 0; j < i; j++) {
              assertThat(arr[j]).isEqualTo(VALUES[j]);
            }
          }
        }
      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testToArray_withNull() {
        List<@Nullable Double> list = Arrays.asList(0.0, 1.0, null);
        assertThrows(NullPointerException.class, () -> Doubles.toArray(list));
      }
    
      public void testToArray_withConversion() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 30.9K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/primitives/IntsTest.java

            for (int j = 0; j < i; j++) {
              assertThat(arr[j]).isEqualTo(VALUES[j]);
            }
          }
        }
      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testToArray_withNull() {
        List<@Nullable Integer> list = Arrays.asList((int) 0, (int) 1, null);
        assertThrows(NullPointerException.class, () -> Ints.toArray(list));
      }
    
      public void testToArray_withConversion() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 29.4K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/primitives/BooleansTest.java

            for (int j = 0; j < i; j++) {
              assertThat(arr[j]).isEqualTo(VALUES[j]);
            }
          }
        }
      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testToArray_withNull() {
        List<@Nullable Boolean> list = Arrays.asList(false, true, null);
        assertThrows(NullPointerException.class, () -> Booleans.toArray(list));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 25.3K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/primitives/LongsTest.java

            for (int j = 0; j < i; j++) {
              assertThat(arr[j]).isEqualTo(VALUES[j]);
            }
          }
        }
      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testToArray_withNull() {
        List<@Nullable Long> list = Arrays.asList(0L, 1L, null);
        assertThrows(NullPointerException.class, () -> Longs.toArray(list));
      }
    
      public void testToArray_withConversion() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/primitives/ShortsTest.java

            for (int j = 0; j < i; j++) {
              assertThat(arr[j]).isEqualTo(VALUES[j]);
            }
          }
        }
      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testToArray_withNull() {
        List<@Nullable Short> list = Arrays.asList((short) 0, (short) 1, null);
        assertThrows(NullPointerException.class, () -> Shorts.toArray(list));
      }
    
      public void testToArray_withConversion() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 27.6K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/primitives/DoublesTest.java

            for (int j = 0; j < i; j++) {
              assertThat(arr[j]).isEqualTo(VALUES[j]);
            }
          }
        }
      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testToArray_withNull() {
        List<@Nullable Double> list = Arrays.asList(0.0, 1.0, null);
        assertThrows(NullPointerException.class, () -> Doubles.toArray(list));
      }
    
      public void testToArray_withConversion() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 30.9K bytes
    - Click Count (0)
Back to Top