- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 356 for NullPointerException (0.16 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java
} @MapFeature.Require(absent = ALLOWS_NULL_KEY_QUERIES) public void testGet_nullNotContainedAndUnsupported() { try { assertNull("get(null) should return null or throw", get(null)); } catch (NullPointerException tolerated) { } } @MapFeature.Require(ALLOWS_NULL_KEYS) @CollectionSize.Require(absent = ZERO) public void testGet_nonNullWhenNullContained() { initMapWithNullKey();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java
public void testFind_nullNotContainedAndUnsupported() { try { assertEquals(getMethodName() + "(nullNotPresent) should return -1 or throw", -1, find(null)); } catch (NullPointerException tolerated) { } } @CollectionFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testFind_nonNullWhenNullContained() { initCollectionWithNullElement();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
* set is serializable. * * @param elements the elements that the set should contain * @return a new thread-safe set containing those elements (minus duplicates) * @throws NullPointerException if {@code elements} or any of its contents is null * @since 15.0 */ public static <E> Set<E> newConcurrentHashSet(Iterable<? extends E> elements) { Set<E> set = newConcurrentHashSet();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 81.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/validation/CustomSizeValidatorTest.java
try { final boolean result = validator.isValid("test", null); assertNotNull("isValid should return a boolean result", Boolean.valueOf(result)); } catch (final NullPointerException e) { // This is expected if the implementation requires a non-null context assertTrue("NPE is acceptable for null context in this implementation", true); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 5.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClusterException.java
* java.util.List} or some other collection that preserves the order in which the exceptions got * added. * * @throws NullPointerException if {@code exceptions} is null * @throws IllegalArgumentException if {@code exceptions} is empty */ static RuntimeException create(Collection<? extends Throwable> exceptions) { if (exceptions.size() == 0) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
* This reduces the expense of habitually making defensive copies at API boundaries. However, the * precise conditions for skipping the copy operation are undefined. * * @throws NullPointerException if any of {@code elements} is null * @since 7.0 (source-compatible since 2.0) */ // This the best we could do to get copyOfEnumSet to compile in the mainline.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/DocumentUtilTest.java
public void test_encodeUrl_empty_and_null() { assertEquals("", DocumentUtil.encodeUrl("")); try { DocumentUtil.encodeUrl(null); fail("Should throw NullPointerException"); } catch (NullPointerException e) { // Expected } } public void test_encodeUrl_unicode() { assertEquals("%3F", DocumentUtil.encodeUrl("あ"));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 11.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java
} @CollectionFeature.Require(absent = ALLOWS_NULL_QUERIES) public void testContainsAll_nullNotAllowed() { try { assertFalse(collection.containsAll(MinimalCollection.of((E) null))); } catch (NullPointerException tolerated) { } } @CollectionFeature.Require(ALLOWS_NULL_QUERIES) public void testContainsAll_nullAllowed() { assertFalse(collection.containsAll(MinimalCollection.of((E) null))); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/UrlEscaperTesting.java
// URL escapers should throw null pointer exceptions for null input try { e.escape((String) null); fail("Escaping null string should throw exception"); } catch (NullPointerException x) { // pass } // All URL escapers should leave 0-9, A-Z, a-z unescaped assertUnescaped(e, 'a'); assertUnescaped(e, 'z'); assertUnescaped(e, 'A'); assertUnescaped(e, 'Z');
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java
assertFalse(multimap().containsKey(null)); } @MapFeature.Require(absent = ALLOWS_NULL_KEY_QUERIES) public void testContainsKeyNullDisallowed() { assertThrows(NullPointerException.class, () -> multimap().containsKey(null)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.1K bytes - Viewed (0)