- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 426 for NullPointerException (1.8 sec)
-
src/test/java/jcifs/smb/CredentialsInternalTest.java
void unwrap_null_type_throws() { TestCredentials creds = new TestCredentials("DOM", false, false, new Subject(), false); // Act & Assert NullPointerException npe = assertThrows(NullPointerException.class, () -> creds.unwrap(null)); assertEquals("type", npe.getMessage()); } @Test @DisplayName("clone returns a distinct copy with same properties")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
throw new NullPointerException("dir and name must be non-null"); } return true; }; NullPointerException npe1 = assertThrows(NullPointerException.class, () -> filter.accept(null, "x")); assertTrue(npe1.getMessage().contains("non-null")); NullPointerException npe2 = assertThrows(NullPointerException.class, () -> filter.accept(mockDir, null));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/exception/SIllegalStateExceptionTest.java
final ClIllegalStateException clIllegalStateException = new ClIllegalStateException("hoge", new NullPointerException()); assertThat(clIllegalStateException.getMessage(), is("hoge")); assertThat(clIllegalStateException.getCause(), instanceOf(NullPointerException.class)); } /** * Test method for
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMultiset.java
* * @throws NullPointerException if the element is null * @since 6.0 (source-compatible since 2.0) */ public static <E> ImmutableMultiset<E> of(E e1) { return copyFromElements(e1); } /** * Returns an immutable multiset containing the given elements, in order. * * @throws NullPointerException if any element is null
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 21:07:18 UTC 2025 - 20.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
assertThrows(NullPointerException.class, () -> builder.put(null, 1)); assertThrows(NullPointerException.class, () -> builder.putAll(null, Arrays.asList(1, 2, 3))); assertThrows(NullPointerException.class, () -> builder.putAll(null, 1, 2, 3)); assertThrows( NullPointerException.class, () -> builder.putAll((Multimap<String, Integer>) toPut)); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 25.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
@Test @DisplayName("Null handle triggers NullPointerException") void ctor_nullHandle_throwsNPE() { // Act + Assert assertThrows(NullPointerException.class, () -> new SmbPipeOutputStream(null, tree)); } @Test @DisplayName("Null tree handle triggers NullPointerException") void ctor_nullTree_throwsNPE() { // ArrangeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/JoinerTest.java
checkResult(J, OVERREPORTING_SIZE_LIST, "1-2-3"); assertThrows(NullPointerException.class, () -> J.join(iterableNull)); assertThrows(NullPointerException.class, () -> J.join(iterable1Null2)); assertThrows(NullPointerException.class, () -> J.join(iterableNull.iterator())); assertThrows(NullPointerException.class, () -> J.join(iterable1Null2.iterator())); } public void testOnCharOverride() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 12.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
assertThrows(NullPointerException.class, () -> builder.add((String) null)); } public void testBuilderAddAllHandlesNullsCorrectly() { { ImmutableSortedMultiset.Builder<String> builder = ImmutableSortedMultiset.naturalOrder(); assertThrows(NullPointerException.class, () -> builder.addAll((Collection<String>) null)); } {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 22.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java
} @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testReplaceEntry_presentNullValueUnsupported() { assertThrows(NullPointerException.class, () -> getMap().replace(k0(), v0(), null)); expectUnchanged(); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES) @CollectionSize.Require(absent = ZERO)
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 5.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/features/MapFeature.java
public enum MapFeature implements Feature<Map> { /** * The map does not throw {@code NullPointerException} on calls such as {@code containsKey(null)}, * {@code get(null)}, {@code keySet().contains(null)} or {@code remove(null)}. */ ALLOWS_NULL_KEY_QUERIES, ALLOWS_NULL_KEYS(ALLOWS_NULL_KEY_QUERIES), /** * The map does not throw {@code NullPointerException} on calls such as {@code
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Jan 30 16:59:10 UTC 2025 - 3K bytes - Viewed (0)