Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 182 for succeeds (0.07 sec)

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

            assertEquals(alsoRead, hasReadData, "FILE_READ_DATA flag presence should match alsoRead");
        }
    
        @Test
        @DisplayName("openCopyTargetFile retries after removing READONLY and succeeds")
        void openCopyTargetFile_retryOnReadonly_thenSuccess() throws Exception {
            // Arrange
            SmbFile dest = mock(SmbFile.class);
            SmbFileHandleImpl handle = mock(SmbFileHandleImpl.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

                // Verify that no renewal happened
                assertFalse(renewed, "renewCredentials should return false if no renewal mechanism succeeds");
                assertEquals(mockCredentials, wrapper.getCredentials(), "Credentials should remain unchanged if no renewal mechanism succeeds");
                // Note: Credentials interface does not have renew() method
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

                            throw new RuntimeException("Even call error");
                        }
                        // Odd calls succeed
                    }
                }
            };
            ComponentUtil.register(mockSearchLogHelper, "searchLogHelper");
    
            // First call (odd) should succeed
            String result1 = aggregateLogJob.execute();
            assertEquals("", result1);
    
            // Second call (even) should fail
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  4. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSource.kt

       */
      fun cancel()
    
      fun interface Factory {
        /**
         * Creates a new event source and immediately returns it. Creating an event source initiates an
         * asynchronous process to connect the socket. Once that succeeds or fails, `listener` will be
         * notified. The caller must cancel the returned event source when it is no longer in use.
         */
        fun newEventSource(
          request: Request,
          listener: EventSourceListener,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/persistent/HandleReconnectorTest.java

        }
    
        @Test
        public void testReconnectHandleSuccess() throws Exception {
            when(mockManager.getHandleForReconnect("/test/file.txt")).thenReturn(testHandle);
    
            // Create a test reconnector that succeeds
            TestHandleReconnector testReconnector = new TestHandleReconnector(mockManager, true);
    
            CompletableFuture<HandleInfo> future = testReconnector.reconnectHandle("/test/file.txt", new IOException("Network error"));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/CredentialsInternalTest.java

                TestCredentials creds = new TestCredentials("X", false, false, null, false);
                assertNull(creds.getSubject());
            }
        }
    
        @Test
        @DisplayName("refresh succeeds when not configured to fail")
        void refresh_success() throws Exception {
            TestCredentials creds = new TestCredentials("Z", false, false, new Subject(), false);
            // Should not throw
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

        }
    
        @Test
        @DisplayName("Iterator with filter throwing exception")
        void iteratorWithFilterException() throws Exception {
            // Setup: first attempt throws, second succeeds
            FileEntry entry1 = mock(FileEntry.class);
            FileEntry entry2 = mock(FileEntry.class);
    
            when(delegate.hasNext()).thenReturn(true, true, false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java

            verify(handle, times(1)).release();
            verifyNoMoreInteractions(handle);
        }
    
        @Test
        @DisplayName("ensureDFSResolved(): no exception when underlying call succeeds")
        void ensureDFSResolved_success() throws Exception {
            // Arrange: default mock does nothing
    
            // Act: call method under test
            handle.ensureDFSResolved();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Mock transports
            SmbTransportImpl trans1 = mock(SmbTransportImpl.class);
            SmbTransportImpl trans2 = mock(SmbTransportImpl.class);
    
            // trans2 fails first (lower fail count, tried first), trans1 succeeds
            when(trans2.unwrap(SmbTransportImpl.class)).thenReturn(trans2);
            when(trans2.ensureConnected()).thenThrow(new IOException("Connection failed"));
            doNothing().when(trans2).close();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                                response.writeBytesWireFormat(buffer, 0);
                            }
                            success[index] = true;
                        } catch (Exception e) {
                            success[index] = false;
                        }
                    });
                }
    
                // When
                for (Thread thread : threads) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
Back to top