Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testThreadSafety (0.6 sec)

  1. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

            assertFalse(fileInfo.matches(1024L, 2000L, 0x20));
    
            // Should not match with different attributes
            assertFalse(fileInfo.matches(1024L, 1000L, 0x10));
        }
    
        @Test
        public void testThreadSafety() throws InterruptedException {
            // Test concurrent updates from multiple threads
            Thread[] threads = new Thread[10];
    
            for (int i = 0; i < threads.length; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

        }
    
        /**
         * Test thread safety of read/write operations
         */
        @Test
        @DisplayName("Test thread safety of operations")
        public void testThreadSafety() throws InterruptedException {
            // Given
            smbComTreeDisconnect = new SmbComTreeDisconnect(config);
            byte[] buffer = new byte[1000];
            int numThreads = 10;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                assertEquals(4, written);
                assertEquals(4, SMBUtil.readInt2(largeBuffer, 5000));
            }
    
            @Test
            @DisplayName("Should maintain thread safety")
            void testThreadSafety() throws InterruptedException {
                int threadCount = 10;
                Thread[] threads = new Thread[threadCount];
                boolean[] success = new boolean[threadCount];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

            assertEquals(SimpleCircuitBreaker.State.CLOSED, circuitBreaker.getState());
        }
    
        @RepeatedTest(10)
        @DisplayName("Test thread safety")
        void testThreadSafety() throws InterruptedException {
            SimpleCircuitBreaker breaker = new SimpleCircuitBreaker("concurrent", 5, 3, 100);
            AtomicInteger successCount = new AtomicInteger(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

            }
        }
    
        @Test
        @DisplayName("Should test thread safety of setFileId")
        void testThreadSafety() throws InterruptedException {
            // Given
            RequestWithFileId request = new Smb2CloseRequest(mockConfig, emptyFileId);
            int threadCount = 10;
            Thread[] threads = new Thread[threadCount];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top