Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 339 for Iteration (0.31 sec)

  1. src/test/java/jcifs/EmptyIteratorTest.java

                            innerCount++;
                        }
                    }
                    assertEquals(0, innerCount, "Inner iteration should not execute");
                }
                assertEquals(0, outerCount, "Outer iteration should not execute");
            }, "EmptyIterator should work correctly in nested iteration");
        }
    
        @Test
        @DisplayName("EmptyIterator should follow Iterator contract for empty collections")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                            try {
                                // Mix of success and failure
                                final int iteration = i;
                                String result = circuitBreaker.executeWithCircuitBreaker(() -> {
                                    if ((threadId + iteration) % 10 == 0) {
                                        throw new RuntimeException("Simulated failure");
                                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

            // Verify iteration
            assertTrue(iterator.hasNext());
            assertSame(resource, iterator.next());
            assertFalse(iterator.hasNext());
    
            verify(filter, times(2)).accept(resource);
            verify(resource, times(2)).close();
        }
    
        @Test
        @DisplayName("Multiple iterations")
        void multipleIterations() {
            // Setup for three items
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/TestLockingTest.java

            t.url = null; // Null URL
            t.numIter = 0; // No iterations to avoid NPE
    
            // Should not throw exception
            assertDoesNotThrow(() -> t.run(), "run() should handle null URL gracefully");
            assertEquals(1, t.numComplete, "numComplete should still be incremented");
        }
    
        @Test
        @DisplayName("run method handles zero iterations")
        void testRunWithZeroIterations() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableMultimap.java

     * need for a distinct {@code ImmutableBiMultimap} type.
     *
     * <p><a id="iteration"></a>
     *
     * <p><b>Key-grouped iteration.</b> All view collections follow the same iteration order. In all
     * current implementations, the iteration order always keeps multiple entries with the same key
     * together. Any creation method that would customarily respect insertion order (such as {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 28.6K bytes
    - Viewed (0)
  6. cmd/namespace-lock_test.go

    		//    a new entry in lockMap and acquires a lock for the same resource.
    
    		<-lk2ch
    		lk3ok := <-lk3ch
    		lk4ok := <-lk4ch
    
    		if lk3ok && lk4ok {
    			t.Fatalf("multiple locks acquired; iteration=%d, lk3=%t, lk4=%t", i, lk3ok, lk4ok)
    		}
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/NetServerEnumIterator.java

    import jcifs.internal.smb1.net.NetServerEnum2Response;
    import jcifs.internal.smb1.trans.SmbComTransaction;
    
    /**
     * Iterator for enumerating network servers.
     *
     * This class provides iteration over network servers discovered
     * through NetBIOS server enumeration requests.
     */
    public class NetServerEnumIterator implements CloseableIterator<FileEntry> {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/ShareEnumIteratorTest.java

            SmbResource r2 = it.next();
            assertNotNull(r2);
            assertEquals("bar/", r2.getName(), "Second child name should match with trailing slash");
    
            // End of iteration behavior
            assertFalse(it.hasNext(), "No more elements expected");
            assertNull(it.next(), "next() returns null when exhausted in this implementation");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                    assertEquals(4, bytesRead, "Failed at iteration " + i);
                }
    
                // When - perform multiple write operations
                for (int i = 0; i < 100; i++) {
                    int bytesWritten = response.writeBytesWireFormat(buffer, 0);
                    // Then
                    assertEquals(0, bytesWritten, "Failed at iteration " + i);
                }
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

    import jcifs.SmbConstants;
    import jcifs.SmbResource;
    import jcifs.SmbResourceLocator;
    import jcifs.context.SingletonContext;
    
    /**
     * Tests for NetServerFileEntryAdapterIterator.
     *
     * Intent: Validate iteration behavior, filtering, invalid inputs handling,
     * and delegation to the underlying iterator.
     */
    @ExtendWith(MockitoExtension.class)
    class NetServerFileEntryAdapterIteratorTest {
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top