- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for testConcurrentAccess (0.29 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/LogStreamTest.java
logStream.close(); // After close, the stream should not accept more writes // but PrintStream doesn't throw exceptions on write after close } @Test void testConcurrentAccess() throws InterruptedException { // Test thread safety of getInstance LogStream.setInstance(testStream); final LogStream[] instances = new LogStream[10];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.3K 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
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/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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
for (int i = 0; i < 3; i++) { assertTrue(rateLimiter.checkAttempt(username, ip)); rateLimiter.recordFailure(username, ip); } } @Test public void testConcurrentAccess() throws Exception { // Test thread safety with concurrent access // Use a separate rate limiter instance with higher limits for this test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.9K bytes - Viewed (0)