- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for NullPointerException (0.29 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.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: 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/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
} @Test @DisplayName("Should throw NullPointerException with null configuration") void testConstructorWithNullConfig() { // The parent class requires a non-null configuration for getPid() assertThrows(NullPointerException.class, () -> { new Trans2GetDfsReferralResponse(null); }); } }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 28.2K bytes - Viewed (0) -
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/SmbComTreeDisconnectTest.java
*/ @Test @DisplayName("Test constructor throws NullPointerException with null configuration") public void testConstructorWithNullConfig() { // When & Then - should throw NullPointerException since ServerMessageBlock calls config.getPid() NullPointerException exception = assertThrows(NullPointerException.class, () -> { smbComTreeDisconnect = new SmbComTreeDisconnect(null); });Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcBindTest.java
DcerpcBind bindWithNullBinding = new DcerpcBind(null, mockHandle); // When/Then assertThrows(NullPointerException.class, () -> { bindWithNullBinding.encode_in(mockBuffer); }, "Should throw NullPointerException when binding is null"); } @Test @DisplayName("encode_in should use default constructor values")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java
// Then assertNotNull(cancel); assertEquals(mid, cancel.getMid()); } @Test @DisplayName("Should throw NullPointerException when config is null") void testNullConfigurationThrowsException() throws Exception { // GivenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java
}); } @Test void constructor_shouldThrowExceptionWithNullSids() { // Act & Assert - Null SID array causes NPE when accessing length assertThrows(NullPointerException.class, () -> { new MsrpcLookupSids(mockPolicyHandle, null); }); } @Test void constructor_shouldSetCorrectSuperclassParameters() throws Exception { // ArrangeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.6K bytes - Viewed (0)