- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 275 for NullPointerException (0.21 sec)
-
src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java
assertEquals(illegalArgException, exception2.getCause()); // Test with NullPointerException Exception nullPointerException = new NullPointerException("SSO context is null"); SsoProcessException exception3 = new SsoProcessException(message, nullPointerException); assertEquals(nullPointerException, exception3.getCause()); } public void test_getMessage_withEmptyString() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbEnumerationUtilTest.java
@Test @DisplayName("list with null root throws NullPointerException") void list_withNullRoot_throwsNpe() { // Intent: null root is invalid input assertThrows(NullPointerException.class, () -> SmbEnumerationUtil.list(null, "*", 0, null, null)); } @Test @DisplayName("listFiles with null root throws NullPointerException") void listFiles_withNullRoot_throwsNpe() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/Base64Test.java
@Test @DisplayName("encode should throw NPE on null input") void testEncodeNull() { assertThrows(NullPointerException.class, () -> Base64.encode(null)); } @Test @DisplayName("decode should throw NPE on null input") void testDecodeNull() { assertThrows(NullPointerException.class, () -> Base64.decode(null)); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/score/ScoreUpdaterTest.java
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
*/ @Test @DisplayName("Test constructor with null configuration throws NullPointerException") public void testConstructorWithNullConfig() { // Given String oldFileName = "old.txt"; String newFileName = "new.txt"; // When & Then - should throw NullPointerException assertThrows(NullPointerException.class, () -> { new SmbComRename(null, oldFileName, newFileName);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/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/collect/ImmutableListTest.java
ImmutableList.Builder<String> builder = ImmutableList.builder(); assertThrows(NullPointerException.class, () -> builder.add((String) null)); assertThrows(NullPointerException.class, () -> builder.add((String[]) null)); assertThrows(NullPointerException.class, () -> builder.add("a", null, "b")); } public void testBuilderAddAllHandlesNullsCorrectly() { {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 23.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableList.java
* preferable mainly for consistency and maintainability of your code. * * @throws NullPointerException if the element is null */ public static <E> ImmutableList<E> of(E e1) { return construct(e1); } /** * Returns an immutable list containing the given elements, in order. * * @throws NullPointerException if any element is null */ public static <E> ImmutableList<E> of(E e1, E e2) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 27.5K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacUnicodeStringTest.java
String testString = null; // Expect a NullPointerException due to null string assertThrows(NullPointerException.class, () -> { pacString.check(testString); }, "A NullPointerException should be thrown for a null string with non-zero pointer."); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/util/ByteEncodableTest.java
ByteEncodable encodable = new ByteEncodable(null, 0, 0); byte[] dest = new byte[1]; // Expect NullPointerException from System.arraycopy assertThrows(NullPointerException.class, () -> { encodable.encode(dest, 0); }, "Should throw NullPointerException if source array is null"); } @Test void testEncodeNullDestinationArray() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0)