- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for NPE (0.01 sec)
-
src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java
@Test @DisplayName("toString with null challenge throws NPE") void testToStringWithNullChallengeThrowsNPE() { UniAddress dc = mock(UniAddress.class); when(dc.toString()).thenReturn("ANYSERVER"); NtlmChallenge nc = new NtlmChallenge(null, dc); // Hexdump.toHexString will throw NPE when accessing challenge.lengthRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/smb/CredentialsInternalTest.java
TestCredentials creds = new TestCredentials("DOM", false, false, new Subject(), false); // Act & Assert NullPointerException npe = assertThrows(NullPointerException.class, () -> creds.unwrap(null)); assertEquals("type", npe.getMessage()); } @Test @DisplayName("clone returns a distinct copy with same properties") void clone_returns_copy() { // Arrange
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/smb1/dcerpc/ndr/NdrHyperTest.java
} /** * Ensure encode throws NPE when passed a null buffer. */ @Test @DisplayName("Encode with null buffer throws NullPointerException") public void testEncodeNullBuffer() throws NdrException { NdrHyper hyper = new NdrHyper(5L); assertThrows(NullPointerException.class, () -> hyper.encode(null)); } /** * Ensure decode throws NPE when passed a null buffer. */ @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFilenameFilterTest.java
verify(mockDir, times(3)).getPath(); verifyNoMoreInteractions(mockDir); } /** * Defensive behavior: implementation throws NPE on null inputs by design. */ @Test @DisplayName("implementation explicitly rejects nulls with NPE") void implementationRejectsNulls() { SmbFilenameFilter filter = (dir, name) -> { if (dir == null || name == null) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java
} // Invalid input: null reqPath leads to NPE from implementation @Test @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));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
assertTrue(ex.getMessage().contains("Failed to calculate MIC")); } @Test @DisplayName("calculateMIC with null data throws NPE") void calculateMIC_nullData() { assertThrows(NullPointerException.class, () -> ctx.calculateMIC(null)); } @Test @DisplayName("verifyMIC delegates to GSS and succeeds")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java
} @Test @DisplayName("Test write operations") void testWriteOperations() { byte[] dst = new byte[1024]; // Initialize transaction buffer to avoid NPE transaction.setBuffer(new byte[SmbComTransaction.TRANSACTION_BUF_SIZE]); // Test parameter words wire format int paramWords = transaction.writeParameterWordsWireFormat(dst, 0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
class CtorValidation { @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/SmbPipeHandleImplTest.java
} } assertThrows(ClassCastException.class, () -> { 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")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0)