Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for isClosed (0.04 sec)

  1. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            assertFalse(auth.isClosed());
    
            // Close multiple times
            auth.close();
            assertTrue(auth.isClosed());
    
            auth.close(); // Should not throw
            assertTrue(auth.isClosed());
    
            auth.close(); // Should still not throw
            assertTrue(auth.isClosed());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTransportImplTest.java

            Socket s = mock(Socket.class);
            when(s.isClosed()).thenReturn(false);
            setField(transport, "socket", s);
    
            // Act & Assert
            assertFalse(transport.isDisconnected());
            assertFalse(transport.isFailed());
    
            // Close socket -> both should be true
            when(s.isClosed()).thenReturn(true);
            assertTrue(transport.isDisconnected());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

                    new Smb2EncryptionContext(EncryptionNegotiateContext.CIPHER_AES128_CCM, DialectVersion.SMB302, encKey, decKey, keyManager);
    
            assertFalse(context.isClosed());
    
            // When
            context.close();
    
            // Then
            assertTrue(context.isClosed());
    
            // Should be idempotent
            assertDoesNotThrow(() -> context.close());
    
            // Cleanup
            keyManager.close();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                closed = true;
            }
        }
    
        /**
         * Check if this authenticator has been closed
         *
         * @return true if closed, false otherwise
         */
        public boolean isClosed() {
            return closed;
        }
    
        private void checkNotClosed() {
            if (closed) {
                throw new IllegalStateException("Authenticator has been closed");
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            } finally {
                closed = true;
            }
        }
    
        /**
         * Check if this context is closed
         *
         * @return true if closed, false otherwise
         */
        public boolean isClosed() {
            return closed;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top