Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 128 for EX (0.01 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/main/java/org/codelibs/core/sql/StatementUtil.java

            assertArgumentNotNull("statement", statement);
            assertArgumentNotEmpty("sql", sql);
    
            try {
                return statement.execute(sql);
            } catch (final SQLException ex) {
                throw new SQLRuntimeException(ex);
            }
        }
    
        /**
         * Sets the fetch size.
         *
         * @param statement
         *            {@link Statement}. Must not be {@literal null}.
         * @param fetchSize
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/sql/PreparedStatementUtil.java

            assertArgumentNotNull("ps", ps);
    
            try {
                return ps.executeQuery();
            } catch (final SQLException ex) {
                throw new SQLRuntimeException(ex);
            }
        }
    
        /**
         * Executes the update.
         *
         * @param ps
         *            {@link PreparedStatement}. Must not be {@literal null}.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top