- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,599 for ints (2.67 sec)
-
src/test/java/jcifs/util/EncdecTest.java
assertEquals(0x56, buffer[2] & 0xFF); assertEquals(0x78, buffer[3] & 0xFF); } @ParameterizedTest @ValueSource(ints = { 0, 1, 255, 256, 65535, 65536, Integer.MAX_VALUE }) @DisplayName("Should handle boundary values") void testBoundaryValues(int value) { // Given byte[] buffer = new byte[4]; // When Encdec.enc_uint32le(value, buffer, 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
} @ParameterizedTest @ValueSource(ints = { FileSystemInformation.SMB_INFO_ALLOCATION, FileSystemInformation.FS_SIZE_INFO, FileSystemInformation.FS_FULL_SIZE_INFO }) void testConstructorWithDifferentInformationLevels(int informationLevel) { // Test constructor with different information levelsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
// When int size = copy.size(); // Then assertEquals(HEADER_SIZE + CHUNK_SIZE, size); } @ParameterizedTest @DisplayName("Should return correct size with multiple chunks") @ValueSource(ints = { 1, 2, 3, 5, 10, 100 }) void testSizeWithMultipleChunks(int chunkCount) { // GivenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
verify(handle, times(1)).ensureDFSResolved(); } @ParameterizedTest @ValueSource(ints = { 0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE }) @DisplayName("hasCapability(cap): returns configured value and captures argument across edge caps") void hasCapability_variousCaps_returnsTrue_andCapturesArgument(int cap) throws Exception { // Arrange: stub to return true regardless of input
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/DosErrorTest.java
void mapsKnownDosCodesToNtStatus(int dosCode, int expectedNtStatus) { // Act int actual = findNtStatusOrMinusOne(dosCode); // Assert assertEquals(expectedNtStatus, actual, "Mapping must match table entry"); } @Test @DisplayName("Edge: zero DOS code maps to zero NTSTATUS") void zeroCodeMapsToZero() { // Act int actual = findNtStatusOrMinusOne(0x00000000);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbExceptionTest.java
} @ParameterizedTest @ValueSource(ints = { NtStatus.NT_STATUS_SUCCESS, NtStatus.NT_STATUS_ACCESS_DENIED, NtStatus.NT_STATUS_OBJECT_NAME_NOT_FOUND, NtStatus.NT_STATUS_SHARING_VIOLATION, NtStatus.NT_STATUS_INVALID_PARAMETER }) @DisplayName("Should handle various NT status codes") void testVariousNTStatusCodes(int ntStatus) { // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java
} } @ParameterizedTest @ValueSource(ints = { NtStatus.NT_STATUS_SUCCESS, NtStatus.NT_STATUS_PENDING, NtStatus.NT_STATUS_ACCESS_DENIED, NtStatus.NT_STATUS_INVALID_PARAMETER }) @DisplayName("Should handle various status codes") void testVariousStatusCodes(int status) { response.setStatusForTest(status); assertEquals(status, response.getErrorCode());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.3K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
void testEncodeWithOffset() { String path = "\\\\test"; int maxReferralLevel = 5; buffer = new DfsReferralRequestBuffer(path, maxReferralLevel); int offset = 10; byte[] dst = new byte[offset + buffer.size()]; int bytesEncoded = buffer.encode(dst, offset); assertEquals(buffer.size(), bytesEncoded);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
for (int i = 0; i < 100; i++) { int bytesRead = response.readBytesWireFormat(buffer, 0); // Then assertEquals(4, bytesRead, "Failed at iteration " + i); } // When - perform multiple write operations for (int i = 0; i < 100; i++) { int bytesWritten = response.writeBytesWireFormat(buffer, 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0)