- Sort Score
- Num 10 results
- Language All
Results 201 - 210 of 325 for immediate (0.31 seconds)
-
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
assertTrue(it.hasNext()); assertEquals("x", it.next().getName()); } @Test @DisplayName("Empty initial results with end-of-search -> closes immediately") void emptyInitialResultsEndOfSearchCloses() throws Exception { when(tree.send(any(Trans2FindFirst2.class), any(Trans2FindFirst2Response.class))).thenAnswer((InvocationOnMock inv) -> {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.7K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
assertFalse(cos.done); assertFalse(cos.getFile().exists()); } @Test public void testThresholdZero() throws IOException { // With threshold 0, everything should go to file immediately ContentOutputStream cos = new ContentOutputStream(0, Curl.tmpDir); cos.write(new byte[] { 1 }); assertFalse(cos.done); assertFalse(cos.isInMemory()); File file = cos.getFile();
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 11.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt
* Returns true if new reads and writes should be attempted on this. * * Unfortunately Java's networking APIs don't offer a good health check, so we go on our own by * attempting to read with a short timeout. If the fails immediately we know the socket is * unhealthy. * * @param source the source used to read bytes from the socket. */ internal fun Socket.isHealthy(source: BufferedSource): Boolean = try {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 10.3K bytes - Click Count (1) -
android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java
* executor. Each event can be added and dispatched as separate phases. * * <p>This class is very similar to {@link SequentialExecutor} with the exception that events can * be added without necessarily executing immediately. */ private static final class PerListenerQueue<L> implements Runnable { final L listener; final Executor executor; @GuardedBy("this")Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 8.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java
import jcifs.SmbResource; /** * Tests for {@link DirFileEntryAdapterIterator}. * * This test class verifies the basic functionality of DirFileEntryAdapterIterator. * Due to the iterator's constructor calling advance() immediately, which requires * the adapt() method to be functional, we test the behavior using simple mock * scenarios that don't require complex filter setups. */ @ExtendWith(MockitoExtension.class)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/Multiset.java
// Views /** * Returns the set of distinct elements contained in this multiset. The element set is backed by * the same data as the multiset, so any change to either is immediately reflected in the other. * The order of the elements in the element set is unspecified. * * <p>If the element set supports any removal operations, these necessarily cause <b>all</b>
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 20.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java
try { String result = purgeDocJob.execute(); // The job should handle the exception internally but since QueryBuilders.rangeQuery // throws immediately with empty field name, we need to catch it here fail("Expected an exception for empty field name"); } catch (IllegalArgumentException e) { // Expected exception for empty field nameCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 16.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
// Make the cache entry expired DirectoryCacheEntry entry = directoryLeaseManager.getCacheEntry(directoryPath); entry.setMaxAge(1); // 1ms to expire immediately try { Thread.sleep(10); } catch (InterruptedException e) { // Ignore } // When lease is lost, cache entry should be removedCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 15.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheEvictionTest.java
// Should we pepper more of these calls throughout the above? Where? CacheTesting.checkValidState(cache); } /** * Tests that when a single entry exceeds the segment's max weight, the new entry is immediately * evicted and nothing else. */ public void testEviction_maxWeight_entryTooBig() { CountingRemovalListener<Integer, Integer> removalListener = countingRemovalListener();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 15K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
assertSame(parent, it.getParent()); verify(tree, times(1)).acquire(); } @Test @DisplayName("Constructor with open() returning null closes immediately and hasNext=false") void constructorOpenNullCloses() throws Exception { // Arrange stubAcquireReturnsSelf(); List<FileEntry[]> pages = List.of(new FileEntry[][] { new FileEntry[] {} });
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.5K bytes - Click Count (0)