Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,058 for ints (0.08 sec)

  1. src/test/java/jcifs/internal/SMBSigningDigestTest.java

        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 2, 4, 8, 16 })
        @DisplayName("Test verify method with different extra padding values")
        void testVerifyWithDifferentExtraPadding(int extraPad) {
            // Arrange
            int offset = 0;
            int length = testData.length;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            byte[] buffer = new byte[256];
            int bufferIndex = 0;
    
            // Set wordCount to non-zero
            setFieldValue(response, "wordCount", 10);
    
            // Write test data to buffer
            int fileAttributes = 0x0021; // FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_ARCHIVE
            long lastWriteTime = System.currentTimeMillis();
            int fileSize = 12345678;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/FileNotifyInformationTest.java

            }
        }
    
        // Helper methods
        private boolean isPowerOfTwo(int n) {
            return n > 0 && (n & (n - 1)) == 0;
        }
    
        private FileNotifyInformation createImplementation(final int action, final String fileName) {
            return new FileNotifyInformation() {
                @Override
                public int getAction() {
                    return action;
                }
    
                @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            Smb2TreeDisconnectRequest req2 = new Smb2TreeDisconnectRequest(mockConfig);
    
            // Then - all should have same command
            int cmd1 = (int) commandField.get(req1);
            int cmd2 = (int) commandField.get(req2);
    
            assertEquals(cmd1, cmd2);
            assertEquals(SMB2_TREE_DISCONNECT, cmd1);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

        // Security information flag constants for testing
        private static final int OWNER_SECURITY_INFORMATION = 0x00000001;
        private static final int GROUP_SECURITY_INFORMATION = 0x00000002;
        private static final int DACL_SECURITY_INFORMATION = 0x00000004;
        private static final int SACL_SECURITY_INFORMATION = 0x00000008;
        private static final int ALL_SECURITY_INFORMATION = 0x0000000F;
    
        @BeforeEach
        void setUp() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            buffer[6] = 0;
            buffer[7] = 0;
    
            return buffer;
        }
    
        private byte[] createDfsReferralBufferWithMultipleReferrals(int numReferrals) {
            // Each referral structure needs 20 bytes, plus string data
            int referralSize = 20;
            int referralsDataSize = numReferrals * referralSize;
    
            // Add space for string data for each referral
            String testPath = "\\server\\share";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            @DisplayName("Should encode at various buffer positions")
            @ValueSource(ints = { 0, 1, 10, 50, 70 })
            void testEncodeAtDifferentPositions(int position) {
                // Given
                byte[] largeBuffer = new byte[200];
                long sourceOffset = 12345L;
                long targetOffset = 67890L;
                int length = 99999;
                SrvCopychunk chunk = new SrvCopychunk(sourceOffset, targetOffset, length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

            // First entry size: 4 (nextOffset) + 4 (action) + 4 (nameLength) + nameBytes
            int entry1Size = 12 + fileNameBytes1.length;
            int entry1AlignedSize = ((entry1Size + 3) / 4) * 4; // Align to 4 bytes
    
            int entry2Size = 12 + fileNameBytes2.length;
            int entry2AlignedSize = ((entry2Size + 3) / 4) * 4; // Align to 4 bytes
    
            // First notification
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java

                // Verify each is a power of 2
                for (int cap : capabilities) {
                    assertTrue(isPowerOfTwo(cap), "Capability 0x" + Integer.toHexString(cap) + " should be a power of 2");
                }
    
                // Verify no overlapping bits
                for (int i = 0; i < capabilities.length; i++) {
                    for (int j = i + 1; j < capabilities.length; j++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/util/MD4.java

        }
    
        // The basic MD4 atomic functions.
    
        private int FF(final int a, final int b, final int c, final int d, final int x, final int s) {
            final int t = a + (b & c | ~b & d) + x;
            return t << s | t >>> 32 - s;
        }
    
        private int GG(final int a, final int b, final int c, final int d, final int x, final int s) {
            final int t = a + (b & (c | d) | c & d) + x + 0x5A827999;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.6K bytes
    - Viewed (0)
Back to top