Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 240 for InterruptedException (2.81 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            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)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/UrlFilterTest.java

            assertFalse(urlFilter.match("mailto:******@****.***"));
        }
    
        /**
         * Test concurrent pattern additions
         */
        public void test_concurrentPatternAdditions() throws InterruptedException {
            String sessionId = "test-session-023";
            urlFilter.init(sessionId);
    
            // Create multiple threads adding patterns
            Thread thread1 = new Thread(() -> {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19K bytes
    - Viewed (0)
  3. src/test/java/jcifs/context/BaseContextTest.java

        }
    
        @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];
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueServiceTest.java

                                }
                            }
                        }
                        totalPolled.addAndGet(count);
                    } catch (final InterruptedException e) {
                        Thread.currentThread().interrupt();
                    } finally {
                        doneLatch.countDown();
                    }
                }).start();
            }
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:40:57 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/SmbSessionTest.java

                verify(mockSession, times(10)).getConfig();
            }
    
            @Test
            @DisplayName("Should handle concurrent access patterns")
            void shouldHandleConcurrentAccessPatterns() throws InterruptedException {
                SmbSession mockSession = mock(SmbSession.class);
                Configuration mockConfig = mock(Configuration.class);
                when(mockSession.getConfig()).thenReturn(mockConfig);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

            @DisplayName("seToIoe maps Interrupted cause to InterruptedIOException")
            void seToIoeInterruptedMapping() {
                SmbException se = new SmbException("x", new jcifs.util.transport.TransportException(new InterruptedException("boom")));
                IOException ioe = SmbFileInputStream.seToIoe(se);
                assertTrue(ioe instanceof InterruptedIOException);
                assertTrue(ioe.getMessage().contains("boom"));
            }
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                // Then
                assertEquals(4, bytesRead);
            }
    
            @Test
            @DisplayName("Should handle concurrent access safely")
            void testConcurrentAccess() throws InterruptedException {
                // Given
                int threadCount = 10;
                Thread[] threads = new Thread[threadCount];
                boolean[] success = new boolean[threadCount];
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  8. docs/smb3-features/06-witness-protocol-design.md

            
            // Wait briefly for witness notification before retrying
            try {
                Thread.sleep(2000);  // 2 second grace period
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
            }
        }
        
        // Proceed with normal error handling/retry
        super.handleConnectionLoss(error);
    }
    ```
    
    ## 6. Configuration
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  9. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

       * response is ready.
       */
      @Test
      fun dispatchBlocksWaitingForEnqueue() {
        Thread {
          try {
            Thread.sleep(1000)
          } catch (ignored: InterruptedException) {
          }
          server.enqueue(MockResponse().setBody("enqueued in the background"))
        }.start()
        val connection = server.url("/").toUrl().openConnection()
        val inputStream = connection.getInputStream()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                }
            }
    
            @Test
            @DisplayName("Should handle concurrent size calculations")
            void testConcurrentSizeCalculations() throws InterruptedException {
                String path = "\\\\server\\share\\test";
                buffer = new DfsReferralRequestBuffer(path, 3);
    
                int expectedSize = buffer.size();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
Back to top