Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 170 for CIFSException (0.07 sec)

  1. src/test/java/jcifs/SmbTransportPoolTest.java

            @Test
            @DisplayName("Should handle exception during close")
            void testClosePoolException() throws CIFSException {
                // Given
                when(transportPool.close()).thenThrow(new CIFSException("Close failed"));
    
                // When & Then
                assertThrows(CIFSException.class, () -> transportPool.close());
            }
    
            @Test
            @DisplayName("Should close pool multiple times")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/config/SecurityConfigurationTest.java

    package jcifs.config;
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertTrue;
    
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    import jcifs.CIFSException;
    import jcifs.DialectVersion;
    
    /**
     * Security configuration tests
     *
     * Verifies that default security settings are properly configured
     * according to SMB security best practices.
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                    });
                } catch (CIFSException e) {
                    // Expected
                }
            }
    
            assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should be OPEN");
    
            // Try to execute - should be blocked with CIFSException
            CIFSException exception = assertThrows(CIFSException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

            assertThrows(CIFSException.class, () -> {
                compressionService.compress(testData, CompressionService.COMPRESSION_LZNT1);
            });
        }
    
        @Test
        @DisplayName("Test unsupported algorithm decompression")
        public void testUnsupportedAlgorithmDecompression() {
            assertThrows(CIFSException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java

                // If it doesn't throw, that's unexpected for localhost
                fail("Expected CIFSException for localhost multi-channel attempt");
            } catch (java.lang.reflect.InvocationTargetException e) {
                // We expect this to fail, but it should be a CIFSException, not a NullPointerException
                assertTrue(e.getCause() instanceof CIFSException);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbSessionInternalTest.java

        }
    
        // Error propagation: getSessionKey throws CIFSException
        @Test
        @DisplayName("getSessionKey throws CIFSException on failure")
        void getSessionKey_throws() throws CIFSException {
            doThrow(new CIFSException("session key failure")).when(session).getSessionKey();
    
            CIFSException ex = assertThrows(CIFSException.class, () -> session.getSessionKey());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/PreauthIntegrityService.java

         * @return the created context
         * @throws CIFSException if initialization fails
         */
        public PreauthIntegrityContext initializeSession(String sessionId, byte[] salt, int hashAlgorithm) throws CIFSException {
            if (sessionId == null || sessionId.isEmpty()) {
                throw new CIFSException("Session ID cannot be null or empty");
            }
            if (salt == null || salt.length < 16) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

        @DisplayName("ensureTreeConnected propagates CIFSException from handle")
        void ensureTreeConnected_propagatesException() throws Exception {
            // Arrange
            SmbPipeOutputStream out = newStream();
            CIFSException boom = new CIFSException("tree-fail");
            when(handle.ensureTreeConnected()).thenThrow(boom);
    
            // Act + Assert
            CIFSException ex = assertThrows(CIFSException.class, out::ensureTreeConnected);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbSessionImpl.java

            }
        }
    
        /**
         * @return the sessionKey
         * @throws CIFSException
         */
        @Override
        public byte[] getSessionKey() throws CIFSException {
            if (this.sessionKey == null) {
                throw new CIFSException("No session key available");
            }
            return this.sessionKey;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/SmbTransportPool.java

        /**
         * Closes the pool and all connections in it
         *
         * @return whether any transport was still in use
         *
         * @throws CIFSException if an error occurs during authentication
         *
         */
        boolean close() throws CIFSException;
    
        /**
         * Authenticate arbitrary credentials represented by the
         * <code>NtlmPasswordAuthentication</code> object against the domain controller
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.5K bytes
    - Viewed (0)
Back to top