Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for isSimulated (0.04 sec)

  1. src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java

        void overlapsThrowsCifsException() throws Exception {
            when(locator.overlaps(any())).thenThrow(new CIFSException("Simulated failure"));
    
            CIFSException ex = assertThrows(CIFSException.class, () -> locator.overlaps(other));
            assertTrue(ex.getMessage().contains("Simulated failure"));
    
            verify(locator).overlaps(other);
            verifyNoMoreInteractions(locator);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

            SearchLogHelper mockSearchLogHelper = new SearchLogHelper() {
                @Override
                public void storeSearchLog() {
                    throw new OutOfMemoryError("Simulated OOM");
                }
            };
            ComponentUtil.register(mockSearchLogHelper, "searchLogHelper");
    
            // Execute the job - Error should NOT be caught since implementation only catches Exception
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                                String result = circuitBreaker.executeWithCircuitBreaker(() -> {
                                    if ((threadId + iteration) % 10 == 0) {
                                        throw new RuntimeException("Simulated failure");
                                    }
                                    return "success";
                                });
                                successCount.incrementAndGet();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/persistent/HandleReconnectorTest.java

            protected boolean performReconnection(HandleInfo info) throws Exception {
                if (shouldSucceed) {
                    return true;
                } else {
                    throw new IOException("Simulated reconnection failure");
                }
            }
    
            public void testCreateReconnectionRequest(HandleInfo handle) {
                createReconnectionRequest(handle);
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java

        }
    
        // Mock class for testing exception scenarios
        private static class MockMultiThreadedHttpConnectionManager {
            public static void shutdownAll() {
                throw new RuntimeException("Simulated exception during shutdown");
            }
        }
    
        // Test to verify the logger field is properly initialized
        public void test_loggerFieldInitialization() throws Exception {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                request.setOffset(1024L);
                request.setRemainingBytes(500);
                request.setWriteFlags(0x01);
    
                byte[] buffer = new byte[1024];
                int headerStart = 64; // Simulated header start
    
                // Execute
                int bytesWritten = request.writeBytesWireFormat(buffer, headerStart);
    
                // Verify structure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
Back to top