- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 253 for zeroed (1.21 sec)
-
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
} @Test @DisplayName("release() below zero usage throws RuntimeCIFSException") void release_withoutAcquire_throwsRuntimeCIFSException() { // Arrange CIFSContext ctx = mock(CIFSContext.class); SmbTreeConnectionTrace trace = new SmbTreeConnectionTrace(ctx); // Act & Assert: calling release without prior acquire drops usage below zeroRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java
for (int i = 0; i < 24; i++) { assertEquals((byte) (i + 1), resumeKey[i], "Resume key byte " + i + " should match"); } } @Test @DisplayName("Test decode with non-zero buffer offset") void testDecodeWithOffset() throws SMBProtocolDecodingException { // Prepare test data with offset byte[] buffer = new byte[100]; int offset = 50;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
@DisplayName("Should handle zero times correctly") void testZeroTimes() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[60]; SMBUtil.writeInt2(60, buffer, 0); // All times remain zero in buffer // When response.readBytesWireFormat(buffer, 0); // Then - zero Windows FileTime converts to negative Unix timeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java
len += 2; if (len > 256) { throw new RuntimeException("zero termination not found"); } } server.oemDomainName = new String(buffer, bufferIndex, len, UNI_ENCODING); } else {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java
response = new SmbComQueryInformationResponse(mockConfig, 0L); // Prepare test data 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
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
assertEquals(action, notifyInfo.getAction()); assertEquals(fileName, notifyInfo.getFileName()); } @Test @DisplayName("Test decode with multiple entries (non-zero next offset)") void testDecodeWithNextEntry() throws SMBProtocolDecodingException { String fileName = "test.txt"; int action = FileNotifyInformation.FILE_ACTION_REMOVED;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/UUIDTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SecurityBlobTest.java
} // Verifies that toString() formats bytes as lower-case hex with zero-padding @ParameterizedTest(name = "toString renders hex for {0}") @MethodSource("hexCases") @DisplayName("toString() renders lower-case hex with zero-padding") void toString_rendersHex(byte[] input, String expected) { // Arrange SecurityBlob blob = new SecurityBlob(input);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/util/ServerResponseValidatorTest.java
}); } @Test public void testValidArrayAllocation() throws Exception { validator.validateArrayAllocation(100, 10, 1000); validator.validateArrayAllocation(0, 10, 1000); // Zero size should be allowed } @Test public void testArrayAllocationNegativeSize() throws Exception { assertThrows(SmbException.class, () -> {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0)