Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 436 for properly (0.49 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

                    assertNotNull(context, "Context should be created");
                    assertEquals(1, context.getCipherId(), "Cipher ID should match");
                }
            }, "Should properly close with try-with-resources");
        }
    
        @Test
        @DisplayName("Should generate unique nonces for encryption")
        void testNonceGeneration() {
            // Given
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/PreauthIntegrityTest.java

            when(address.getHostName()).thenReturn("testhost");
    
            transport = new SmbTransportImpl(context, address, 445, null, 0, false);
        }
    
        /**
         * Test that pre-auth integrity hash is properly synchronized
         */
        @Test
        @DisplayName("Pre-auth integrity hash should be thread-safe")
        void testPreauthHashThreadSafety() throws Exception {
            // Setup SMB3.1.1 negotiation
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

            }
    
            @Test
            public void testGetTypeForShare() throws Exception {
                SmbFile share = new SmbFile("smb1://server/share/");
                // To test this properly, we would need to mock connect0() and the tree object.
                // This is a limitation of unit testing such a coupled class.
                // We expect an SmbException because it will try to connect.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  4. ADDING_NEW_LANGUAGE.md

    - Clear browser cache
    - Force language with `?browser_lang=[locale]` parameter
    - Check property file encoding (should be UTF-8 or use Unicode escapes `\uXXXX`)
    - Verify property keys match exactly with base English files
    
    ### Build errors after regeneration
    
    - Check property file syntax (no unescaped special characters)
    - Ensure all property values are properly escaped
    - Run `mvn clean` before rebuilding
    
    ## Additional Resources
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 06 11:36:30 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/TestLockingTest.java

        }
    
        @AfterEach
        void restoreStreams() {
            System.setOut(originalOut);
            System.setErr(originalErr);
        }
    
        @Test
        @DisplayName("TestLocking fields are properly initialized")
        void testFieldInitialization() {
            TestLocking t = new TestLocking();
    
            // Check default field values
            assertEquals(1, t.numThreads, "Default numThreads should be 1");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top