Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 834 for onerror (0.06 sec)

  1. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

            // Test initial state
            assertTrue(response.hasMoreElements());
    
            // Test after setting error code (not status)
            response.setTestErrorCode(1); // Non-zero errorCode indicates error
            assertFalse(response.hasMoreElements());
    
            // Reset error and test hasMore flag
            response.setTestErrorCode(0);
            response.hasMore = false;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

            ChannelInfo channel = new ChannelInfo("test-channel", mockTransport, localInterface, remoteInterface);
    
            IOException error = new IOException("Test error");
    
            // Should not throw exception
            assertDoesNotThrow(() -> channelManager.handleChannelFailure(channel, error));
        }
    
        @Test
        void testEstablishReplacementChannel() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java

                rpc.retval = errorCode; // Simulate RPC error
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarOpenPolicy2.class));
    
            // Act & Assert
            SmbException thrown = assertThrows(SmbException.class, () -> {
                new LsaPolicyHandle(mockDcerpcHandle, server, access);
            });
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/http/NtlmSsp.java

         * @param resp The response.
         * @param challenge The domain controller challenge.
         * @throws IOException If an IO error occurs.
         * @return the authenticated NtlmPasswordAuthentication object
         * @throws IOException If an IO error occurs.
         * @throws ServletException If an error occurs.
         */
        public static NtlmPasswordAuthentication authenticate(final HttpServletRequest req, final HttpServletResponse resp,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/exception/StorageException.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.exception;
    
    /**
     * This exception is thrown when a storage-related error occurs.
     * It can be used to wrap underlying storage exceptions, providing a
     * consistent error handling mechanism for storage operations.
     */
    public class StorageException extends FessSystemException {
        private static final long serialVersionUID = 1L;
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/script/ScriptEngineTest.java

                return null;
            }
        }
    
        // ScriptEngine implementation with error handling
        private static class ErrorHandlingScriptEngine implements ScriptEngine {
            @Override
            public Object evaluate(String template, Map<String, Object> paramMap) {
                if ("error".equals(template)) {
                    // Simulate error by returning null
                    return null;
                }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                } catch (Exception e) {
                    log.debug("Error closing connection: {}", e.getMessage());
                }
            });
            connections.clear();
    
            nonPooledConnections.forEach(conn -> {
                try {
                    conn.disconnect(true, true);
                } catch (Exception e) {
                    log.debug("Error closing non-pooled connection: {}", e.getMessage());
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java

            // Arrange
            int access = 0x01;
            int errorCode = 0xC0000022; // Example error code (STATUS_ACCESS_DENIED)
            // Simulate RPC error
            doAnswer(invocation -> {
                MsrpcSamrOpenDomain rpc = invocation.getArgument(0);
                rpc.retval = errorCode; // Simulate error
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenDomain.class));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java

    /**
     * Tests for KerberosEncData.
     */
    class KerberosEncDataTest {
    
        /**
         * Test constructor with a valid token.
         *
         * @throws IOException if an I/O error occurs
         * @throws PACDecodingException if a PAC decoding error occurs
         * @throws UnknownHostException if the IP address is not found
         */
        @Test
        void testConstructor() throws IOException, PACDecodingException, UnknownHostException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbAuthExceptionTest.java

     * {@link SmbException#getMessageByCode(int)} and
     * {@link SmbException#getStatusByCode(int)}.
     */
    @DisplayName("SmbAuthException Tests")
    class SmbAuthExceptionTest {
    
        /**
         * Provides a set of error codes covering normal, edge and unknown cases.
         */
        static Stream<Arguments> errorCodes() {
            return Stream.of(
                    // Known NT status code - NT_STATUS_UNSUCCESSFUL
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
Back to top