- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 497 for succeeds (0.12 seconds)
-
android/guava/src/com/google/common/util/concurrent/FluentFuture.java
* Future} fails with the given {@code exceptionType}, from the result provided by the {@code * fallback}. {@link Function#apply} is not invoked until the primary input has failed, so if the * primary input succeeds, it is never invoked. If, during the invocation of {@code fallback}, an * exception is thrown, this exception is used as the result of the output {@code Future}. * * <p>Usage example: * * {@snippet :Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 19.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/JobHelperTest.java
jobLog.setJobName("Test Job"); jobLog.setEndTime(null); MonitorTarget target = new MonitorTarget(jobLog); try { target.expired(); // If it succeeds, check that lastUpdated is set assertNotNull(jobLog.getLastUpdated()); } catch (Exception e) { // Expected in test environment due to missing client
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 6.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt
import okhttp3.internal.okHttpName /** * Speculatively connects to each IP address of a target address, returning as soon as one of them * connects successfully. This kicks off new attempts every 250 ms until a connect succeeds. */ internal class FastFallbackExchangeFinder( override val routePlanner: RoutePlanner, private val taskRunner: TaskRunner, ) : ExchangeFinder { private val connectDelayNanos = TimeUnit.MILLISECONDS.toNanos(250L)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 5.8K bytes - Click Count (0) -
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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 10.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RouteSelector.kt
val uri = url.toUri() if (uri.host == null) return immutableListOf(Proxy.NO_PROXY) // Try each of the ProxySelector choices until one connection succeeds. val proxiesOrNull = address.proxySelector.select(uri) if (proxiesOrNull.isNullOrEmpty()) return immutableListOf(Proxy.NO_PROXY) return proxiesOrNull.toImmutableList() }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Oct 08 03:50:05 GMT 2025 - 7.3K bytes - Click Count (2) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java
static final int COMPLETED = 2; static final int CANCELLED = 4; static final int INTERRUPTED = 8; private V value; private Throwable exception; /* * Acquisition succeeds if the future is done, otherwise it fails. */ @Override protected int tryAcquireShared(int ignored) { if (isDone()) { return 1; } return -1; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 13.8K bytes - Click Count (0) -
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();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
void testGetBatchLimitDefault() { DummyAndXBlock block = new DummyAndXBlock(); assertEquals(0, block.getBatchLimit((byte) 0x25)); } @Test @DisplayName("encode without andx succeeds and signs when digest present") void testEncodeNoAndxWithSigning() throws Exception { DummyAndXBlock block = new DummyAndXBlock(); TestSigningDigest digest = new TestSigningDigest();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java
Path tempDir = Files.createTempDirectory("concurrent_test"); try { Path targetFile = tempDir.resolve("target.tmp"); Files.createFile(targetFile); // First delete succeeds assertTrue(Files.deleteIfExists(targetFile)); // Second delete returns false (file already gone) assertFalse(Files.deleteIfExists(targetFile)); } finally {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 20.4K bytes - Click Count (0) -
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();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 19.2K bytes - Click Count (0)