- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 211 for aligned (0.09 sec)
-
compat/maven-compat/src/test/java/org/apache/maven/project/path/DefaultPathTranslatorTest.java
String aligned = new DefaultPathTranslator().alignToBaseDirectory("${basedir}", basedir); assertEquals(basedir.getAbsolutePath(), aligned); } @Test void testAlignToBasedirWhereBasedirExpressionIsTheValuePrefix() { File basedir = new File(System.getProperty("java.io.tmpdir"), "test").getAbsoluteFile();
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
// Helper to create a fresh request under test private Smb2LogoffRequest newRequest() { return new Smb2LogoffRequest(configuration); } @Test @DisplayName("size() returns 8-byte aligned value (header + 4)") void size_returnsAlignedValue() { // Arrange Smb2LogoffRequest req = newRequest(); int base = Smb2Constants.SMB2_HEADER_LENGTH + 4; // structure size
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
writeLittleEndianLong(baos, 72); // offset (aligned) // Buffer 2: SERVER_CHECKSUM writeLittleEndianInt(baos, PacConstants.SERVER_CHECKSUM); writeLittleEndianInt(baos, 20); // signature size writeLittleEndianLong(baos, 80); // offset (aligned) // Buffer 3: PRIVSVR_CHECKSUM
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java
setupMockConfig(); Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE); int size = request.size(); // Base size: SMB2_HEADER_LENGTH (64) + 56 = 120, aligned to 8 assertEquals(120, size); } @Test @DisplayName("Test size calculation with input data") void testSizeWithInputData() { setupMockConfig();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
@Test void testAlign() { // Align to 4-byte boundary ndrBuffer.setIndex(1); int alignedBytes = ndrBuffer.align(4); assertEquals(3, alignedBytes); // Should advance by 3 bytes (1 -> 4) assertEquals(4, ndrBuffer.getIndex()); assertEquals(4, ndrBuffer.getLength()); // Length should be updated // Already aligned ndrBuffer.setIndex(4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java
assertEquals(0, transaction.pad(0)); // Already aligned assertEquals(0, transaction.pad(4)); // Already aligned assertEquals(0, transaction.pad(8)); // Already aligned assertEquals(3, transaction.pad(1)); // Need 3 bytes to align to 4 assertEquals(2, transaction.pad(2)); // Need 2 bytes to align to 4 assertEquals(1, transaction.pad(3)); // Need 1 byte to align to 4 } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
assertEquals(0, bytesRead); } @Test @DisplayName("Test decode with non-aligned next entry offset throws exception") void testDecodeNonAlignedNextOffset() { byte[] buffer = new byte[100]; // Write non-aligned next entry offset (not divisible by 4) SMBUtil.writeInt4(7, buffer, 0); // 7 is not aligned to 4 bytes SMBUtil.writeInt4(FileNotifyInformation.FILE_ACTION_ADDED, buffer, 4);
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/smb1/trans/nt/NtTransNotifyChangeResponseTest.java
@Test @DisplayName("Test readParametersWireFormat with non-aligned nextEntryOffset throws exception") void testReadParametersWireFormatNonAlignedOffset() throws Exception { ByteBuffer buffer = ByteBuffer.allocate(100); buffer.order(ByteOrder.LITTLE_ENDIAN); // Create notification with non-aligned nextEntryOffset buffer.putInt(3); // Non-aligned nextEntryOffset (not divisible by 4)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
void testBoundaryConditions() { // Test with exactly aligned data request.setData(new byte[8], 0, 8); // 8-byte aligned assertEquals(((Smb2Constants.SMB2_HEADER_LENGTH + 48 + 8 + 7) / 8) * 8, request.size()); // Test with unaligned data request.setData(new byte[7], 0, 7); // Not 8-byte aligned
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
// When int size = request.size(); // Then - should include context sizes assertTrue(size > 112); // Bigger than without contexts assertEquals(0, size % 8); // Should be 8-byte aligned } @Test @DisplayName("Should write bytes to wire format correctly") void testWriteBytesWireFormat() { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0)