- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 105 for NullPointerException (0.41 sec)
-
src/test/java/jcifs/SmbResourceTest.java
@Test @DisplayName("renameTo should throw NullPointerException for null destination") void testRenameTo_NullDestination() throws CIFSException { // Given doThrow(new NullPointerException("dest argument is null")).when(mockResource).renameTo(null); // When/Then assertThrows(NullPointerException.class, () -> mockResource.renameTo(null),Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
@Test @DisplayName("null handle throws NPE") void nullHandle() { assertThrows(NullPointerException.class, () -> new SmbPipeInputStream(null, tree)); } @Test @DisplayName("null tree throws NPE") void nullTree() { assertThrows(NullPointerException.class, () -> new SmbPipeInputStream(handle, null)); } }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/HandlerTest.java
} @Test @DisplayName("openConnection with null URL throws NullPointerException") void testOpenConnection_NullInput() { // Arrange Handler handler = newHandlerWith(mockCtx); // Act & Assert assertThrows(NullPointerException.class, () -> handler.openConnection(null), "Null URL should throw NPE");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
OtherPipeHandle result = target.unwrap(OtherPipeHandle.class); }); // Null input: document current behavior (NPE from isAssignableFrom) assertThrows(NullPointerException.class, () -> target.unwrap(null)); } @Test @DisplayName("getPipe, getPipeType, getUncPath delegate to underlying pipe") void testBasicAccessors() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/ShareEnumIteratorTest.java
@DisplayName("Null delegate causes NullPointerException during construction") void nullDelegate_throwsNPE() throws Exception { SmbFile parent = newParent(); assertThrows(NullPointerException.class, () -> new ShareEnumIterator(parent, null, null)); } @Test @DisplayName("Null parent with non-empty iterator causes NullPointerException during adapt")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java
assertTrue(customFilter.accept(file), "Wildcard should be ignored in accept"); } @Test public void testAcceptHandlesNullFile() { assertThrows(NullPointerException.class, () -> filter.accept(null)); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java
method.setAccessible(true); // This should fail because localhost doesn't support SMB multi-channel // but the method should not throw NullPointerException try { method.invoke(multiChannelManager, localhost, loopback); // If it doesn't throw, that's unexpected for localhost
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbNamedPipeTest.java
} @Test @DisplayName("Null context throws NPE (invalid input)") void nullContextThrows() { assertThrows(NullPointerException.class, () -> new SmbNamedPipe("smb://server/IPC$/foo", 0, null)); } @Test @DisplayName("Second constructor sets unshared based on flags")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java
@DisplayName("handleDFSReferral throws NPE on null reqPath") void handleDfsReferralNullPathThrows() { when(locator.handleDFSReferral(any(), isNull())).thenThrow(new NullPointerException("reqPath")); NullPointerException npe = assertThrows(NullPointerException.class, () -> locator.handleDFSReferral(referral, null)); assertTrue(npe.getMessage() == null || npe.getMessage().contains("reqPath"));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0)