Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 429 for properly (0.07 sec)

  1. src/main/java/jcifs/smb/SmbFileHandleImpl.java

         */
        @Override
        protected void finalize() throws Throwable {
            try {
                if (this.usageCount != null && this.usageCount.get() != 0 && this.open) {
                    log.warn("File handle was not properly closed, performing emergency cleanup: " + this);
                    if (this.creationBacktrace != null) {
                        log.warn(Arrays.toString(this.creationBacktrace));
                    }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  2. src/test/java/jcifs/SmbTreeTest.java

            assertEquals(null, result, "Should return null for incompatible type");
        }
    
        /**
         * Test for close() with resource cleanup.
         * Verifies that close properly cleans up resources.
         */
        @Test
        void testClose_withResourceCleanup() {
            // Create a mock that simulates resource cleanup
            doAnswer(invocation -> {
                // Simulate cleanup actions
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            int cmd2 = (int) commandField.get(req2);
    
            assertEquals(cmd1, cmd2);
            assertEquals(SMB2_TREE_DISCONNECT, cmd1);
        }
    
        @Test
        @DisplayName("Should properly implement wire format protocol")
        void testWireFormatProtocol() {
            // Given
            Configuration mockConfig = mock(Configuration.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                assertSame(differentException, thrown);
            }
    
            @Test
            @DisplayName("list wraps non-SmbException CIFSException properly")
            void list_wrapsOtherCIFSException() throws Exception {
                // Arrange
                SmbFile parent = mock(SmbFile.class, RETURNS_DEEP_STUBS);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

            }
    
            @Override
            public int encode(byte[] dst, int dstIndex) {
                // We need to override the parent ServerMessageBlock2's encode
                // to properly simulate setting the length field
                int start = dstIndex;
                dstIndex += writeHeaderWireFormat(dst, dstIndex);
                dstIndex += writeBytesWireFormat(dst, dstIndex);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            assertEquals(filename, actualFilename);
        }
    
        @Test
        void testResetMultipleTimes() {
            // Test multiple resets to ensure state is properly maintained
            trans2FindNext2 = new Trans2FindNext2(config, TEST_SID, TEST_RESUME_KEY, TEST_FILENAME, TEST_BATCH_COUNT, TEST_BATCH_SIZE);
    
            for (int i = 1; i <= 5; i++) {
                int newResumeKey = i * 1000;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacLogonInfoTest.java

            assertThrows(PACDecodingException.class, () -> {
                unicodeString.check("");
            });
    
            // The implementation has a bug - it doesn't handle null properly
            // It throws NullPointerException instead of returning null
            // This is a known issue in the production code
            assertThrows(NullPointerException.class, () -> {
                unicodeString.check(null);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  8. docs/smb3-features/05-rdma-smb-direct-design.md

        // RDMA should be faster than TCP for large transfers
        log.info("RDMA Write: {}ms, Read: {}ms", writeTime, readTime);
    }
    
    @Test
    public void testRdmaFallbackToTcp() throws Exception {
        // Test that we properly fall back to TCP when RDMA is not available
        CIFSContext context = getTestContext();
        context.getConfig().setProperty("jcifs.smb.client.useRDMA", "true");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/http/NtlmSspTest.java

        // User: "user", Domain: "DOMAIN", Workstation: "WORKSTATION"
        // This is a valid Type 3 message with proper structure
        private final String type3MessageBase64 = createValidType3Message();
    
        /**
         * Creates a valid Type 3 NTLM message for testing
         */
        private static String createValidType3Message() {
            // Build a properly formatted Type 3 message
            byte[] message = new byte[200];
    
            // NTLMSSP signature
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (1)
  10. src/test/java/jcifs/SIDTest.java

            // Create a mock RPC SID to simulate a domain SID
            rpc.sid_t rpcSid = new rpc.sid_t();
            rpcSid.revision = 1;
            rpcSid.sub_authority_count = 4; // Fixed: should be 4 to properly represent domain SID
            rpcSid.identifier_authority = new byte[] { 0, 0, 0, 0, 0, 5 };
            rpcSid.sub_authority = new int[] { 21, 123, 456, 789 };
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
Back to top