- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for testConcurrentAccess (0.64 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
assertNotNull(customResponse); assertEquals(SmbComTransaction.TRANS2_SET_FILE_INFORMATION, customResponse.getSubCommand()); } @Test @DisplayName("Test concurrent access") void testConcurrentAccess() throws InterruptedException { // Test thread safety - multiple threads accessing the same response final int THREAD_COUNT = 10; Thread[] threads = new Thread[THREAD_COUNT];
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java
// Expected in test environment without proper server setup } assertDoesNotThrow(() -> channelManager.shutdown()); } @Test void testConcurrentAccess() throws InterruptedException { // Test thread safety Thread[] threads = new Thread[10]; for (int i = 0; i < threads.length; i++) { threads[i] = new Thread(() -> {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
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/EmptyIteratorTest.java
}, "EmptyIterator should work with manual iteration"); } @Test @DisplayName("EmptyIterator should handle concurrent access safely") void testConcurrentAccess() throws InterruptedException, CIFSException { // Given final int threadCount = 10; final Thread[] threads = new Thread[threadCount]; final boolean[] results = new boolean[threadCount];
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
assertArrayEquals(context.getLeaseKey().getKey(), decodedContext.getLeaseKey().getKey()); } @Test public void testConcurrentAccess() throws Exception { String directoryPath = "/test/concurrent"; directoryLeaseManager.requestDirectoryLease(directoryPath, DirectoryLeaseState.DIRECTORY_READ_HANDLE,
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/context/BaseContextTest.java
assertTrue(context instanceof AbstractCIFSContext, "BaseContext should extend AbstractCIFSContext"); } @Test @DisplayName("Context should handle concurrent access safely") void testConcurrentAccess() throws InterruptedException { // Given final int threadCount = 10; final Thread[] threads = new Thread[threadCount]; final boolean[] results = new boolean[threadCount];
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java
assertNotNull(trans2QueryFSInfo); } @Test @DisplayName("Test concurrent access") void testConcurrentAccess() throws InterruptedException { trans2QueryFSInfo = new Trans2QueryFSInformation(config, FileSystemInformation.SMB_INFO_ALLOCATION); final int THREAD_COUNT = 10;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
// But we can verify the object is created successfully with these values assertNotNull(trans2SetFileInfo); } @Test @DisplayName("Test concurrent access") void testConcurrentAccess() throws InterruptedException { // Setup mock before creating the object when(mockFileInfo.getFileInformationLevel()).thenReturn((byte) FileInformation.FILE_BASIC_INFO);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0)