- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,601 for ints (0.79 sec)
-
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
} @ParameterizedTest @ValueSource(ints = { 0, 1, 2, 3, 5, 6, 100, 255, 65535 }) @DisplayName("Should throw exception for various invalid structure sizes") void testReadBytesWireFormatVariousInvalidSizes(int invalidSize) { // Given byte[] buffer = new byte[10]; int bufferIndex = 0; SMBUtil.writeInt2(invalidSize, buffer, bufferIndex);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/internal/smb2/create/Smb2CloseResponseTest.java
// Given byte[] dst = new byte[100]; int dstIndex = 0; // When int result = response.writeBytesWireFormat(dst, dstIndex); // Then assertEquals(0, result); } @ParameterizedTest @ValueSource(ints = { 0, 10, 50, 99 }) @DisplayName("Should return 0 regardless of destination index")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
byte[] dst = new byte[100]; int dstIndex = 50; // Act int result = response.writeSetupWireFormat(dst, dstIndex); // Assert assertEquals(0, result); } @Test @DisplayName("writeParametersWireFormat should return 0") void testWriteParametersWireFormat() { // Arrange byte[] dst = new byte[100]; int dstIndex = 0; // Act
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/ACETest.java
ACE.GENERIC_READ }; int[] flagConstants = { ACE.FLAGS_OBJECT_INHERIT, ACE.FLAGS_CONTAINER_INHERIT, ACE.FLAGS_NO_PROPAGATE, ACE.FLAGS_INHERIT_ONLY, ACE.FLAGS_INHERITED }; // Check access constants are unique for (int i = 0; i < accessConstants.length; i++) { for (int j = i + 1; j < accessConstants.length; j++) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
@ValueSource(ints = { 0, 1, 15, 127, 255 }) void testVariousPadding(int padding) { assertDoesNotThrow(() -> request.setPadding((byte) padding)); } @ParameterizedTest @DisplayName("Should handle various read lengths") @ValueSource(ints = { 0, 1, 512, 1024, 4096, 65536, 1048576 }) void testVariousReadLengths(int length) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java
@ParameterizedTest @DisplayName("Test search attributes masking") @ValueSource(ints = { 0x00, 0x16, 0x37, 0xFF }) void testSearchAttributesMasking(int searchAttributes) { trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test", "*.*", searchAttributes, 10, 1024); // Verify attributes are masked with 0x37 int expectedAttributes = searchAttributes & 0x37;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/session/Smb2SessionSetupRequestTest.java
Method pad8Method = ServerMessageBlock2.class.getDeclaredMethod("pad8", int.class); pad8Method.setAccessible(true); // Test various positions int[] positions = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 16 }; for (int pos : positions) { int padding = (int) pad8Method.invoke(req, pos); // Verify padding makes position 8-byte aligned
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
@ParameterizedTest @ValueSource(ints = { 24, 32, 100, 1000, 10000 }) @DisplayName("Should handle various buffer sizes correctly") void testVariousBufferSizes(int bufferSize) throws SMBProtocolDecodingException { byte[] buffer = new byte[bufferSize]; FileFsSizeInformation info = new FileFsSizeInformation(); int decoded = info.decode(buffer, 0, Math.min(bufferSize, 24));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java
@DisplayName("Should encode at various buffer positions") @ValueSource(ints = { 0, 1, 10, 50, 70 }) void testEncodeAtDifferentPositions(int position) { // Given byte[] largeBuffer = new byte[200]; long sourceOffset = 12345L; long targetOffset = 67890L; int length = 99999; SrvCopychunk chunk = new SrvCopychunk(sourceOffset, targetOffset, length);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java
@ParameterizedTest @DisplayName("Should encode consistently with various flag values") @ValueSource(ints = { 0, 1, 2, 4, 16, 0xFF, 0xFFFF, 0xFFFFFF, 0x7FFFFFFF, -1 }) void testEncodingWithVariousFlags(int flags) { lock = new Smb2Lock(1024L, 2048L, flags); int encoded = lock.encode(buffer, 0); assertEquals(24, encoded);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0)