Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 347 for directly (0.08 sec)

  1. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            // Decode
            FileBasicInfo decoded = new FileBasicInfo();
            decoded.decode(buffer, 0, 36); // decode reads 36 bytes
    
            // Note: When encoding time 0, SMBUtil.writeTime writes 0 directly,
            // but SMBUtil.readTime interprets 0 as Jan 1, 1601 in Unix time (-11644473600000)
            // This is the expected behavior for Windows FILETIME
            long expectedTime = -11644473600000L; // Jan 1, 1601 in Unix time
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

            update(sequence, 0, sequence.length);
            index += 8;
            if (msg.getCommand() == ServerMessageBlock.SMB_COM_READ_ANDX) {
                /*
                 * SmbComReadAndXResponse reads directly from the stream into separate byte[] b.
                 */
                final SmbComReadAndXResponse raxr = (SmbComReadAndXResponse) msg;
                final int length = msg.getLength() - raxr.getDataLength();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbFileTest.java

            void testDeleteDirectory() throws SmbException, CIFSException {
                // Arrange
                // Mock that it exists and is a directory
                doReturn(true).when(smbFile).exists();
                doReturn(true).when(smbFile).isDirectory();
    
                // Mock listFiles to return empty array (directory is empty)
                doReturn(new SmbFile[0]).when(smbFile).listFiles();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

            // Verify that the constructor correctly sets the delegate (inherited from CIFSContextWrapper)
            // and the credentials. The delegate is tested implicitly by calling super's methods.
            // We can directly test getCredentials() to ensure it returns the initial credentials.
            assertEquals(mockCredentials, wrapper.getCredentials(), "Initial credentials should be set by constructor");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

            assertNotNull(constantTimeMethod, "constantTimeEquals method should exist");
            constantTimeMethod.setAccessible(true);
    
            // Test the method directly
            char[] password1 = "testpassword".toCharArray();
            char[] password2 = "testpassword".toCharArray();
            char[] password3 = "testpassworX".toCharArray();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/util/SMBUtilTest.java

            }
    
            // Test zero time separately - it's handled specially
            SMBUtil.writeTime(0L, buffer, 0);
            long readTime = SMBUtil.readTime(buffer, 0);
            // When writing 0, it writes 0 directly, and when reading 0, it returns negative offset
            assertEquals(-SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601, readTime);
        }
    
        @Test
        void testUTimeConversionRoundTrip() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

                SMBUtil.writeInt8(456L, buffer, 40); // session ID
    
                customMessage.setBytesRead(10);
                customMessage.decode(buffer, 0);
    
                // Can't directly test protected method, but decode should work without exception
                assertTrue(customMessage.getLength() > 0);
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

                super(config, command, subcommand);
            }
    
            // Expose errorCode setter for testing - access protected field directly
            public void setTestErrorCode(int code) {
                this.errorCode = code;
            }
    
            @Override
            protected int writeSetupWireFormat(byte[] dst, int dstIndex) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/util/DES.java

    // PERFORMANCE, SUCH AS IN THE OPERATION OF NUCLEAR FACILITIES, AIRCRAFT
    // NAVIGATION OR COMMUNICATION SYSTEMS, AIR TRAFFIC CONTROL, DIRECT LIFE
    // SUPPORT MACHINES, OR WEAPONS SYSTEMS, IN WHICH THE FAILURE OF THE
    // SOFTWARE COULD LEAD DIRECTLY TO DEATH, PERSONAL INJURY, OR SEVERE
    // PHYSICAL OR ENVIRONMENTAL DAMAGE ("HIGH RISK ACTIVITIES").  WIDGET WORKSHOP
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NtlmSspTest.java

            // Execute
            NtlmPasswordAuthentication result = ntlmSsp.doAuthentication(mockCifsContext, mockRequest, mockResponse, challenge);
    
            // Verify that the behavior is the same as calling the static method directly
            assertNull(result, "Authentication result should be null");
            verify(mockResponse).setHeader("WWW-Authenticate", "NTLM");
            verify(mockResponse).setStatus(HttpServletResponse.SC_UNAUTHORIZED);
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (1)
Back to top