- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 431 for ints (0.06 sec)
-
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
void testSizeCalculation(int hashAlgoCount) { // Arrange int[] hashAlgos = new int[hashAlgoCount]; byte[] salt = new byte[16]; context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt); // Act int size = context.size(); // Assert assertEquals(4 + (2 * hashAlgoCount) + 16, size);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.4K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/FileNotifyInformationTest.java
} } // Helper methods private boolean isPowerOfTwo(int n) { return n > 0 && (n & (n - 1)) == 0; } private FileNotifyInformation createImplementation(final int action, final String fileName) { return new FileNotifyInformation() { @Override public int getAction() { return action; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
Smb2TreeDisconnectRequest req2 = new Smb2TreeDisconnectRequest(mockConfig); // Then - all should have same command int cmd1 = (int) commandField.get(req1); int cmd2 = (int) commandField.get(req2); assertEquals(cmd1, cmd2); assertEquals(SMB2_TREE_DISCONNECT, cmd1); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java
// Security information flag constants for testing private static final int OWNER_SECURITY_INFORMATION = 0x00000001; private static final int GROUP_SECURITY_INFORMATION = 0x00000002; private static final int DACL_SECURITY_INFORMATION = 0x00000004; private static final int SACL_SECURITY_INFORMATION = 0x00000008; private static final int ALL_SECURITY_INFORMATION = 0x0000000F; @BeforeEach void setUp() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
// Given - large buffer with many notifications byte[] buffer = new byte[65536]; int offset = 0; setHeaderStart(response, 64); // Calculate space for notifications int notificationSize = 32; // Each notification int notificationCount = 100; int totalSize = notificationSize * notificationCount; // Write structure
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
byte[] buffer = new byte[256]; int result = request.readBytesWireFormat(buffer, 0); assertEquals(0, result); } @ParameterizedTest @ValueSource(ints = { 0, 10, 50, 100 }) @DisplayName("writeBytesWireFormat should work at different offsets") void testWriteBytesWireFormatAtDifferentOffsets(int offset) { byte[] buffer = new byte[512];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java
assertTrue(namesObj instanceof lsarpc.LsarTransNameArray); } @ParameterizedTest @ValueSource(ints = { 1, 5, 10, 20, 50 }) void constructor_shouldHandleVariousSidArraySizes(int size) { // Arrange testSids = new jcifs.SID[size]; for (int i = 0; i < size; i++) { testSids[i] = mock(jcifs.SID.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java
void testWriteSetupWireFormatWithVariousFids(int fid, byte expectedLow, byte expectedHigh) { // Arrange transPeekNamedPipe = new TransPeekNamedPipe(mockConfig, TEST_PIPE_NAME, fid); byte[] buffer = new byte[10]; int offset = 0; // Act int bytesWritten = transPeekNamedPipe.writeSetupWireFormat(buffer, offset); // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0)