- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 426 for NullPointerException (0.09 sec)
-
android/guava-testlib/test/com/google/common/testing/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 Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/SmbTreeTest.java
*/ @Test void testUnwrap_withNullParameter() { when(smbTree.unwrap(null)).thenThrow(new NullPointerException("Type cannot be null")); assertThrows(NullPointerException.class, () -> smbTree.unwrap(null), "Should throw NullPointerException when type is null"); } /** * Test for method interaction. * Verifies that unwrap and close can be used in sequence.Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java
@MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) public void testPutAllNullValueNullLast_unsupported() { int size = getNumElements(); assertThrows( NullPointerException.class, () -> multimap().putAll(k3(), newArrayList(v3(), null))); Collection<V> values = multimap().get(k3()); if (values.size() == 0) { expectUnchanged();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 20:54:16 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
// Close the stream outputStream.close(); // When & Then - after close, tmp is null so write(int) will throw NullPointerException // This is the actual behavior of the implementation assertThrows(NullPointerException.class, () -> outputStream.write(65)); } @Test void testWriteNullArray() throws CIFSException { // GivenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SessionSetupHandlerTest.java
@DisplayName("Invalid: resolving class by null name throws NPE") void testClassForNameWithNull() { // Intent: demonstrate defensive behavior with null when resolving this type by name assertThrows(NullPointerException.class, () -> Class.forName(null)); } @Test @DisplayName("Happy path: class is loadable via fully qualified name") void testClassForName() throws Exception { // ActRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 6.4K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelSource.java
* </ul> * * @param project the path to search for a POM file * @return the path to the located POM file, or null if no POM can be found * @throws NullPointerException if project is null */ @Nullable Path locateExistingPom(@Nonnull Path project); } /** * Resolves a relative path to another POM file using the provided model locator.Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Sep 29 14:45:25 UTC 2025 - 4.4K bytes - Viewed (0) -
android/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 Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/RequestParamTest.java
} // Invalid: null is not allowed for valueOf @ParameterizedTest @NullSource @DisplayName("valueOf(null) throws NullPointerException") void valueOfRejectsNull(String input) { assertThrows(NullPointerException.class, () -> RequestParam.valueOf(input)); } // Sanity: Enum.valueOf(Class, String) behaves identically to RequestParam.valueOf(String) @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java
expectContents(createArrayWithNullKey()); } @MapFeature.Require(absent = ALLOWS_NULL_KEYS) @CollectionSize.Require(absent = ZERO) public void testCreateWithNullKeyUnsupported() { assertThrows(NullPointerException.class, () -> initMapWithNullKey()); } @MapFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO) public void testCreateWithNullValueSupported() { initMapWithNullValue();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.6K bytes - Viewed (0)