- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,601 for ints (2.72 sec)
-
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
// Given int offset = 100; byte[] largeOutputBuffer = new byte[1024]; Smb2ReadResponse offsetResponse = new Smb2ReadResponse(mockConfig, largeOutputBuffer, offset); byte[] buffer = new byte[256]; int bodyStart = 0; int dataLength = 50; int dataOffsetFromHeader = 80; // Write structureRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
private static byte[] buildIoctlResponseBody(int ctlCode, byte[] fileId, int inputCount, byte[] inputBytes, int outputCount, byte[] outputBytes, int ioctlFlags) { final int headerLen = 64; // SMB2 header is 64 bytes final int bodyFixed = 48; // body size minus 1 for structure size field overlap final int payloadStart = headerLen + bodyFixed; final int bodyLen = bodyFixed + inputCount + outputCount;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
lengthField.setAccessible(true); int actualLength = (int) lengthField.get(response); assertEquals(expectedLength, actualLength); } @DisplayName("Test readParametersWireFormat with various lengths") @ParameterizedTest @ValueSource(ints = { 0, 1, 100, 1000, 65535, Integer.MAX_VALUE }) void testReadParametersWireFormatWithVariousLengths(int expectedLength) throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java
} @ParameterizedTest @DisplayName("Should calculate size for various lock counts") @ValueSource(ints = { 0, 1, 2, 5, 10, 20, 50, 100 }) void testSizeWithVariousLockCounts(int lockCount) { Smb2Lock[] locks = new Smb2Lock[lockCount]; for (int i = 0; i < lockCount; i++) { locks[i] = new Smb2Lock(i * 100L, 100L, Smb2Lock.SMB2_LOCKFLAG_EXCLUSIVE_LOCK); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/util/StringUtilTest.java
} @ParameterizedTest @DisplayName("Should handle various element counts") @ValueSource(ints = { 1, 2, 5, 10, 20, 50, 100 }) void testJoinWithVariousElementCounts(int count) { CharSequence[] elements = new CharSequence[count]; for (int i = 0; i < count; i++) { elements[i] = String.valueOf(i); } String result = StringUtil.join(",", elements);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java
// Test with different buffer sizes and indices int[][] configs = { { 100, 0 }, { 1024, 50 }, { 4096, 2000 }, { 65536, 32768 } }; for (int[] config : configs) { byte[] dst = new byte[config[0]]; int dstIndex = config[1]; int result = response.writeBytesWireFormat(dst, dstIndex);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java
* - Positive values not in DOS_ERROR_CODES map to NT_STATUS_UNSUCCESSFUL */ @ParameterizedTest @ValueSource(ints = { 0, 1, 123, -7 }) void testGetNtStatusVariousCodes(int errcode) { SmbException ex = new SmbException(errcode, false); int expected; if (errcode == 0) { expected = 0; } else if ((errcode & 0xC0000000) != 0) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/NetbiosNameTest.java
// Given int testType = 0x20; // Server service when(mockNetbiosName.getNameType()).thenReturn(testType); // When int nameType = mockNetbiosName.getNameType(); // Then assertEquals(testType, nameType); verify(mockNetbiosName).getNameType(); } @ParameterizedTest @ValueSource(ints = { 0x00, 0x03, 0x06, 0x1B, 0x1C, 0x1D, 0x1E, 0x20 })Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
verify(tree, times(1)).close(); } @ParameterizedTest @ValueSource(ints = { TransPeekNamedPipeResponse.STATUS_DISCONNECTED, TransPeekNamedPipeResponse.STATUS_SERVER_END_CLOSED }) @DisplayName("available() on SMB1 returns 0 and marks closed on disconnected statuses") void available_smb1_disconnectedStatuses(int status) throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
Smb2LogoffRequest req = newRequest(); int base = Smb2Constants.SMB2_HEADER_LENGTH + 4; // structure size int expected = ((base + 7) / 8) * 8; // expected 8-byte alignment // Act int actual = req.size(); // Assert assertEquals(expected, actual, "size() must be 8-byte aligned"); } @ParameterizedTest @ValueSource(ints = { 0, 1, 5 })
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0)