- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 107 for 22 (0.02 sec)
-
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
fileStandardInfo.decode(buffer, 0, buffer.length); assertEquals(expectedEndOfFile, fileStandardInfo.getSize()); } @Test @DisplayName("Test size method returns 22") void testSize() { assertEquals(22, fileStandardInfo.size()); } @Test @DisplayName("Test decode with valid data") void testDecodeWithValidData() throws SMBProtocolDecodingException { // Prepare test data
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/ReferralTest.java
bb.putShort((short) 300); // ttl bb.putShort((short) 22); // pathOffset (relative to start of referral) bb.putShort((short) 54); // altPathOffset bb.putShort((short) 76); // nodeOffset // Path string at offset 22 (relative to start of referral at position 0) bb.position(22); String path = "\\\\server\\share"; bb.put(path.getBytes(StandardCharsets.UTF_16LE));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 22K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
byte[] dst = new byte[1024]; int result = setupAndX.writeParameterWordsWireFormat(dst, 0); // Verify that data was written (should write 22 bytes based on implementation) assertEquals(22, result, "writeParameterWordsWireFormat should write 22 bytes"); } @Test void testWriteBytesWireFormat() { byte[] dst = new byte[1024]; int result = setupAndX.writeBytesWireFormat(dst, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
} @Test @DisplayName("Test decode with typical values") void testDecodeWithTypicalValues() throws SMBProtocolDecodingException { // Prepare test data byte[] buffer = new byte[22]; int idFileSystem = 0x12345678; int sectPerAlloc = 8; long alloc = 1000000L; long free = 500000L; int bytesPerSect = 512; // Encode test data int offset = 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java
assertEquals(DEFAULT_SECURITY_MODE, SMBUtil.readInt2(buffer, 20)); // Verify dialect count (2 bytes) assertEquals(defaultDialects.length, SMBUtil.readInt2(buffer, 22)); // Verify dialects int dialectOffset = 24; for (int i = 0; i < defaultDialects.length; i++) { assertEquals(defaultDialects[i], SMBUtil.readInt2(buffer, dialectOffset + i * 2));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
ImmutableMap.builder().put(1, 1).put(2, 2).buildOrThrow(), ImmutableMap.ofEntries(entry(1, 1), entry(2, 2)), map(1, 1, 2, 2)) .addEqualityGroup( ImmutableMap.of(1, 1, 2, 2, 3, 3), ImmutableMap.builder().put(1, 1).put(2, 2).put(3, 3).buildOrThrow(), ImmutableMap.ofEntries(entry(1, 1), entry(2, 2), entry(3, 3)), map(1, 1, 2, 2, 3, 3))
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 36.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java
SMBUtil.writeInt2(testSecurityMode, buffer, bufferIndex + 20); // Set dialect (2 bytes) int testDialect = 0x0311; SMBUtil.writeInt2(testDialect, buffer, bufferIndex + 22); // Execute decode int bytesDecoded = response.decode(buffer, bufferIndex, 24); // Verify results assertEquals(24, bytesDecoded, "Should decode exactly 24 bytes");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
smb.useUnicode = true; String testString = "Hello Unicode World"; byte[] buffer = new byte[testString.length() * 2 + 2]; int len = smb.writeString(testString, buffer, 0); assertEquals(testString.length() * 2 + 2, len); String readString = smb.readString(buffer, 0); assertEquals(testString, readString); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/Configuration.java
* @return preferred encryption cipher list in order of preference for SMB3 encryption * @since 2.2 */ String getPreferredCiphers(); /** * Property {@code jcifs.smb.client.aes256Enabled} (boolean, default true) * * @return whether AES-256 encryption ciphers are enabled for SMB3.x * @since 2.2 */ boolean isAES256Enabled(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 25.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
} EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, ciphers); int bytesWritten = context.encode(buffer, 0); assertEquals(2 + (2 * cipherCount), bytesWritten); assertEquals(cipherCount, SMBUtil.readInt2(buffer, 0)); for (int i = 0; i < cipherCount; i++) { assertEquals(i + 1, SMBUtil.readInt2(buffer, 2 + (i * 2)));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0)