- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 95 for EX (0.28 sec)
-
src/test/java/jcifs/smb/SMBProtocolDowngradeExceptionTest.java
SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException(cause); // Assert - cause preserved, message derived from cause assertSame(cause, ex.getCause()); assertEquals(expectedMessage, ex.getMessage()); // toString should include the derived message assertEquals(SMBProtocolDowngradeException.class.getName() + ": " + expectedMessage, ex.toString()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
// When SpnegoException ex = new SpnegoException(); // Then assertNotNull(ex, "Exception should be created"); assertNull(ex.getMessage(), "Default message should be null"); assertNull(ex.getCause(), "Default cause should be null"); assertTrue(ex instanceof CIFSException, "Should be a CIFSException"); assertTrue(ex instanceof IOException, "Should be an IOException"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbAuthExceptionTest.java
SmbAuthException ex = new SmbAuthException(errCode); // Assert: type, message derived from code, status mapping, and no cause assertNotNull(ex); assertTrue(ex instanceof SmbException); assertEquals(SmbException.getMessageByCode(errCode), ex.getMessage(), "message should reflect error code mapping"); assertEquals(expectedStatus, ex.getNtStatus(), "status should map based on code");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
// Arrange & Act SmbUnsupportedOperationException ex = new SmbUnsupportedOperationException(); // Assert assertEquals("Operation is not supported with the negotiated capabilities", ex.getMessage(), "Default message should match the class contract"); assertNull(ex.getCause(), "No cause expected from default constructor"); assertTrue(ex instanceof SmbException, "Should be an SmbException");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java
void testConstructorWithZeroCode() { SmbException ex = new SmbException(0, false); assertEquals("NT_STATUS_SUCCESS", ex.getMessage()); assertEquals(0, ex.getNtStatus()); assertNull(ex.getRootCause(), "root cause should be null for this ctor"); assertEquals("jcifs.smb1.smb1.SmbException: NT_STATUS_SUCCESS", ex.toString()); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java
return connection.getDate(); } @Override public long getLastModified() { try { handshake(); } catch (final IOException ex) {} return connection.getLastModified(); } @Override public String getHeaderField(final String header) { try { handshake(); } catch (final IOException ex) {}
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 22.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SigningDigest.java
try { digest = MessageDigest.getInstance("MD5"); } catch (final NoSuchAlgorithmException ex) { if (LogStream.level > 0) { ex.printStackTrace(log); } throw new SmbException("MD5", ex); } this.macSigningKey = macSigningKey; this.bypass = bypass; this.updates = 0; this.signSequence = 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java
// Arrange & Act SMBSignatureValidationException ex = new SMBSignatureValidationException(); // Assert assertNull(ex.getMessage(), "Default ctor should not set a message"); assertNull(ex.getCause(), "Default ctor should not set a cause"); assertTrue(ex instanceof SmbException, "Should be an SmbException subtype");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
// Arrange & Act SMBProtocolDecodingException ex = new SMBProtocolDecodingException(); // Assert state assertNull(ex.getMessage(), "Default constructor should have null message"); assertNull(ex.getCause(), "Default constructor should have null cause"); assertTrue(ex instanceof CIFSException, "Should be a CIFSException subtype");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java
SmbEndOfFileException ex = new SmbEndOfFileException(); // Assert assertEquals("Unexpectedly reached end of file", ex.getMessage(), "Default message must match"); assertEquals(NtStatus.NT_STATUS_UNSUCCESSFUL, ex.getNtStatus(), "Default NT status should be UNSUCCESSFUL"); assertNull(ex.getCause(), "Cause should be null by default");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0)