- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 344 for NullPointerException (0.1 sec)
-
android/guava-tests/test/com/google/common/collect/FluentIterableTest.java
.inOrder(); } public void testToMap_nullKey() { assertThrows( NullPointerException.class, () -> fluent(1, null, 2).toMap(Functions.constant("foo"))); } public void testToMap_nullValue() { assertThrows(NullPointerException.class, () -> fluent(1, 2, 3).toMap(Functions.constant(null))); } public void testIndex() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 30.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java
.put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException) .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException) .put(NullPointerException.class, e -> e instanceof NullPointerException) .put(NumberFormatException.class, e -> e instanceof NumberFormatException) .put(RuntimeException.class, e -> e instanceof RuntimeException)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 6.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java
@CollectionFeature.Require(absent = ALLOWS_NULL_VALUES) public void testAddAllAtIndex_nullUnsupported() { List<E> containsNull = singletonList(null); assertThrows(NullPointerException.class, () -> getList().addAll(0, containsNull)); expectUnchanged(); expectNullMissingWhenNullUnsupported( "Should not contain null after unsupported addAll(n, containsNull)"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 6.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ReflectionFreeAssertThrows.java
.put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException) .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException) .put(NullPointerException.class, e -> e instanceof NullPointerException) .put(NumberFormatException.class, e -> e instanceof NumberFormatException) .put(RuntimeException.class, e -> e instanceof RuntimeException)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 19:43:49 UTC 2024 - 6.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/PercentEscaperTest.java
assertEquals("foo%7Cbar", e.escape("foo%7Cbar")); // idempotent } /** Test that giving a null 'safeChars' string causes a {@link NullPointerException}. */ public void testBadArguments_null() { assertThrows(NullPointerException.class, () -> new PercentEscaper(null, false)); } /** * Tests that specifying any alphanumeric characters as 'safe' causes an {@link
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 15:41:36 UTC 2024 - 5.2K bytes - Viewed (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/UrlSourceTest.java
import static org.junit.jupiter.api.Assertions.assertThrows; class UrlSourceTest { @Test void testUrlSource() { NullPointerException e = assertThrows( NullPointerException.class, () -> new UrlSource(null), "Should fail, since you must specify a url"); assertEquals("url cannot be null", e.getMessage()); } @Test
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java
expectContents(expected); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS) public void testPut_nullKeyUnsupported() { assertThrows(NullPointerException.class, () -> put(nullKeyEntry)); expectUnchanged(); expectNullKeyMissingWhenNullKeysUnsupported( "Should not contain null key after unsupported put(null, value)"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 9.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java
this(new TreeMap<K, V>(map)); } private SafeTreeMap(NavigableMap<K, V> delegate) { this.delegate = delegate; if (delegate == null) { throw new NullPointerException(); } for (K k : keySet()) { checkValid(k); } } @Override public @Nullable Entry<K, V> ceilingEntry(K key) { return delegate.ceilingEntry(checkValid(key)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 7.5K bytes - Viewed (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/FileSourceTest.java
import static org.junit.jupiter.api.Assertions.assertThrows; class FileSourceTest { @Test void testFileSource() { NullPointerException e = assertThrows( NullPointerException.class, () -> new FileSource((File) null), "Should fail, since you must specify a file"); assertEquals("file cannot be null", e.getMessage()); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java
super.setUp(); empty = new Target(emptyCollection(), "empty"); /* * We test that nullSingleton.retainAll(disjointList) does NOT throw a * NullPointerException when disjointList does not, so we can't use * MinimalCollection, which throws NullPointerException on calls to * contains(null). */ List<E> disjointList = asList(e3(), e4()); disjoint = new Target(disjointList, "disjoint");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 10.6K bytes - Viewed (0)