Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 256 for 40 (0.01 sec)

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

            byte[] buffer = new byte[64];
            int dstIndex = 8;
    
            // When
            int bytesEncoded = info.encode(buffer, dstIndex);
    
            // Then
            assertEquals(40, bytesEncoded); // Should encode 40 bytes
            // Use SMBUtil to read times back properly
            assertEquals(TEST_CREATE_TIME, SMBUtil.readTime(buffer, dstIndex));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java

            byte[] dst = new byte[42];
    
            // When
            int result = trans2SetFileInformation.writeDataWireFormat(dst, 0);
    
            // Then
            assertEquals(40, result); // Returns 40 bytes written
        }
    
        @Test
        void testReadSetupWireFormat() {
            // When
            int result = trans2SetFileInformation.readSetupWireFormat(new byte[0], 0, 0);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

            buffer.put((byte) 0x01); // SubAuthorityCount
            buffer.put(new byte[] { 0, 0, 0, 0, 0, 1 }); // IdentifierAuthority
            buffer.putInt(0); // SubAuthority
    
            // Group SID at offset 40
            buffer.position(40);
            buffer.put((byte) 0x01); // Revision
            buffer.put((byte) 0x01); // SubAuthorityCount
            buffer.put(new byte[] { 0, 0, 0, 0, 0, 2 }); // IdentifierAuthority
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

            System.arraycopy("Inter-Process Communication".getBytes(StandardCharsets.US_ASCII), 0, data, 60, 27);
    
            int bytesRead = response.readDataWireFormat(data, 0, data.length);
    
            assertEquals(40, bytesRead, "Should read 40 bytes for the two entries.");
            assertNotNull(response.results, "Results should not be null.");
            assertEquals(2, response.results.length, "Should have 2 share entries.");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java

            byte[] customData = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A }; // Longer than 8
            byte[] machineId = new byte[40]; // Longer than 32
            for (int i = 0; i < 40; i++) {
                machineId[i] = (byte) i;
            }
    
            AvSingleHost avSingleHost = new AvSingleHost(customData, machineId);
    
            assertNotNull(avSingleHost);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/util/QueryResponseListTest.java

                public int size() {
                    return 20;
                }
            };
            qrList.allRecordCount = 40;
            qrList.calculatePageInfo();
            assertEquals(20, qrList.getPageSize());
            assertEquals(1, qrList.getCurrentPageNumber());
            assertEquals(40, qrList.getAllRecordCount());
            assertEquals(2, qrList.getAllPageCount());
            assertEquals(false, qrList.isExistPrevPage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 39.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

            assertEquals(0, trans.totalDataCount, "The totalDataCount should be 0.");
            assertEquals(2, trans.maxParameterCount, "The maxParameterCount should be 2.");
            assertEquals(40, trans.maxDataCount, "The maxDataCount should be 40.");
            assertEquals((byte) 0x00, trans.maxSetupCount, "The maxSetupCount should be 0.");
        }
    
        /**
         * Tests the writeSetupWireFormat method.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                long changeTime = creationTime + 3000000L;
                SMBUtil.writeInt8(changeTime, buffer, bufferIndex + 32);
                // Allocation Size (8 bytes)
                SMBUtil.writeInt8(4096, buffer, bufferIndex + 40);
                // End of File (8 bytes)
                SMBUtil.writeInt8(1024, buffer, bufferIndex + 48);
                // File Attributes (4 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  9. tests/prepared_stmt_test.go

    		t.Fatalf("lru should not be empty")
    	}
    	// Wait for 40 seconds to give the statements in the cache enough time to expire.
    	time.Sleep(time.Second * 40)
    	// Assert whether the connection pool of tx is successfully converted to the *gorm.PreparedStmtDB type.
    	AssertEqual(t, ok, true)
    	// Assert whether the number of statement keys stored in the PreparedStmtDB is 0 after 40 seconds.
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

            request = new Smb2QueryInfoRequest(mockConfig);
    
            int size = request.size();
    
            // Expected size calculation: size8(SMB2_HEADER_LENGTH + 40)
            // size8 rounds up to nearest multiple of 8
            int expectedRawSize = Smb2Constants.SMB2_HEADER_LENGTH + 40;
            int expectedSize = (expectedRawSize + 7) & ~7; // Round up to nearest 8
            assertEquals(expectedSize, size);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
Back to top