- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 57 for NPE (0.38 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java
assertTrue("Client should be initialized after concurrent access", result); } } public void test_accessTimeout_null_safety() { // Test that accessTimeoutTask null check prevents NPE FileSystemClient client = new FileSystemClient() { @Override protected ResponseData getResponseData(final String uri, final boolean includeContent) {
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Wed Nov 19 08:59:28 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
assertEquals("Not supported", ex.getMessage()); } @Test @DisplayName("Null delegate causes NPE") void nullDelegate() { assertThrows(NullPointerException.class, () -> { new FileEntryAdapterIterator(parent, null, null) { @Override
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TestLockingTest.java
@DisplayName("run method handles null URL gracefully") void testRunWithNullUrl() { TestLocking t = new TestLocking(); t.url = null; // Null URL t.numIter = 0; // No iterations to avoid NPE // Should not throw exception assertDoesNotThrow(() -> t.run(), "run() should handle null URL gracefully"); assertEquals(1, t.numComplete, "numComplete should still be incremented"); }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/internal/dfs/DfsReferralDataInternalTest.java
DfsReferralDataInternal result = mockReferralData.combine(null); assertNotNull(result); // Test with concrete implementation - combine with null throws NPE assertThrows(NullPointerException.class, () -> concreteImplementation.combine(null)); } @Test @DisplayName("Should handle null in append") void testAppendWithNull() {
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/smb/SmbWatchHandleImplTest.java
sut.close(); verify(handle, never()).close(anyLong()); } // Invalid input: constructing with null handle and invoking watch() NPEs @Test @DisplayName("Null handle causes NPE on watch() (invalid input)") void constructor_nullHandle_watch_throwsNPE() { SmbWatchHandleImpl sut = new SmbWatchHandleImpl(null, 0, false); assertThrows(NullPointerException.class, () -> {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
void testToStringWithNullBinding() { // Given: Handle with null binding TestDcerpcHandle handleWithNullBinding = new TestDcerpcHandle(mockContext); // When/Then: Should throw NPE for null binding (expected behavior) assertThrows(NullPointerException.class, () -> handleWithNullBinding.toString()); } @Test @DisplayName("Should handle session key retrieval")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
// The implementation doesn't check for null in constructor buffer = new DfsReferralRequestBuffer(path, maxReferralLevel); assertNotNull(buffer); // Will throw NPE when trying to call size() or encode() assertThrows(NullPointerException.class, () -> { buffer.size(); }); } @ParameterizedTestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
void testConstructorWithNullDelegate() { // When & Then assertDoesNotThrow(() -> { new DelegatingConfiguration(null); }, "Constructor should accept null delegate (though it would cause NPE on use)"); } @Test @DisplayName("Constructor should store delegate reference") void testConstructorStoresDelegate() { // Given Configuration testDelegate = mock(Configuration.class);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
oplockLevelField.setAccessible(true); oplockLevelField.set(notification, (byte) 0x01); // The implementation calls Hexdump.toHexString which throws NPE on null // This test verifies the actual behavior assertThrows(NullPointerException.class, () -> notification.toString()); } @ParameterizedTest
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDCacheImplTest.java
void resolveSids_invalidInputs() throws Exception { SIDCacheImpl cache = new SIDCacheImpl(mock(CIFSContext.class)); CIFSContext ctx = mock(CIFSContext.class); // Null sids array -> NPE assertThrows(NullPointerException.class, () -> cache.resolveSids(ctx, "server", null, 0, 1)); // Bad offset/length leads to ArrayIndexOutOfBoundsException
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14K bytes - Viewed (0)