- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 457 for NullPointerException (0.08 sec)
-
src/test/java/jcifs/config/PropertyConfigurationTest.java
@DisplayName("Should handle null properties gracefully") void testNullProperties() throws CIFSException { // PropertyConfiguration doesn't handle null properties // It should throw NullPointerException assertThrows(NullPointerException.class, () -> { new PropertyConfiguration(null); }); } @Test @DisplayName("Should handle empty properties")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
} public void testNewReader() throws IOException { File asciiFile = getTestFile("ascii.txt"); assertThrows(NullPointerException.class, () -> Files.newReader(asciiFile, null)); assertThrows(NullPointerException.class, () -> Files.newReader(null, UTF_8)); BufferedReader r = Files.newReader(asciiFile, US_ASCII); try { assertEquals(ASCII, r.readLine());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 22.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/StringsTest.java
assertSame("x", Strings.padStart("x", -1, '-')); } // TODO: could remove if we got NPT working in GWT somehow public void testPadStart_null() { assertThrows(NullPointerException.class, () -> Strings.padStart(null, 5, '0')); } public void testPadEnd_noPadding() { assertSame("", Strings.padEnd("", 0, '-')); assertSame("x", Strings.padEnd("x", 0, '-'));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 27 17:53:41 UTC 2025 - 10.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
} // I guess it's technically a bug that ThrowIfUncheckedKnownUnchecked fires here. @SuppressWarnings("ThrowIfUncheckedKnownUnchecked") public void testThrowIfUnchecked_null() { assertThrows(NullPointerException.class, () -> throwIfUnchecked(null)); } @J2ktIncompatible @GwtIncompatible // propagateIfPossible // I guess it's technically a bug that ThrowIfUncheckedKnownUnchecked fires here.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/ThrowablesTest.java
} // I guess it's technically a bug that ThrowIfUncheckedKnownUnchecked fires here. @SuppressWarnings("ThrowIfUncheckedKnownUnchecked") public void testThrowIfUnchecked_null() { assertThrows(NullPointerException.class, () -> throwIfUnchecked(null)); } @J2ktIncompatible @GwtIncompatible // propagateIfPossible // I guess it's technically a bug that ThrowIfUncheckedKnownUnchecked fires here.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
} public void testNewReader() throws IOException { File asciiFile = getTestFile("ascii.txt"); assertThrows(NullPointerException.class, () -> Files.newReader(asciiFile, null)); assertThrows(NullPointerException.class, () -> Files.newReader(null, UTF_8)); BufferedReader r = Files.newReader(asciiFile, US_ASCII); try { assertEquals(ASCII, r.readLine());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/InvalidQueryExceptionTest.java
final VaMessenger<FessMessages> messageCode = messages -> messages.addErrorsInvalidQueryUnknown(UserMessages.GLOBAL_PROPERTY_KEY); final NullPointerException npeCause = new NullPointerException("Null query parameter"); final IllegalStateException iseCause = new IllegalStateException("Invalid parser state"); final OutOfMemoryError oomCause = new OutOfMemoryError("Query too large");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 15.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
assertEquals(16, hash2.length, "NT hash should be 16 bytes"); } @Test @DisplayName("getNTHash: null password throws NPE with message") void testGetNTHash_null() { NullPointerException ex = assertThrows(NullPointerException.class, () -> NtlmUtil.getNTHash((String) null)); assertEquals("Password parameter is required", ex.getMessage()); } @ParameterizedTest
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (0)