Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 554 for iterations (3.05 sec)

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

            executor.shutdown();
    
            // Then - Verify no exceptions occurred
            if (!exceptions.isEmpty()) {
                fail("Concurrent operations caused exceptions: " + exceptions.get(0));
            }
    
            assertEquals(threadCount * opsPerThread, successCount.get(), "All operations should succeed");
        }
    
        /**
         * Test that session release with double-check pattern prevents race conditions.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/SMBSigningDigestTest.java

        @Test
        @DisplayName("Test multiple sign operations in sequence")
        void testMultipleSignOperations() {
            // Arrange
            int iterations = 10;
    
            // Act
            for (int i = 0; i < iterations; i++) {
                signingDigest.sign(testData, i, testData.length - i, request, response);
            }
    
            // Assert
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

            for (int i = 0; i < iterations; i++) {
                auth1.equals(auth2);
            }
            long endTime = System.nanoTime();
    
            return (endTime - startTime) / iterations;
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

            }
    
            assertTrue(latch.await(10, TimeUnit.SECONDS), "Concurrent operations should complete");
            executor.shutdown();
    
            // Circuit breaker should have handled concurrent operations
            assertTrue(successCount.get() > 0, "Should have some successful operations");
            assertTrue(failureCount.get() > 0, "Should have some failed operations");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

            // The iterator returns null when no elements, doesn't throw exception
            assertNull(iterator.next(), "Should return null when no next element");
        }
    
        /**
         * Test multiple iterations with mixed filtering results.
         */
        @Test
        void testMultipleIterationsWithFilter() throws Exception {
            // Given
            when(mockDelegate.hasNext()).thenReturn(true, true, true, false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  8. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/spnego/NegTokenInitTest.java

        class PerformanceTests {
    
            @RepeatedTest(value = 10, name = "Repeated encoding/decoding stability test {currentRepetition}/{totalRepetitions}")
            @DisplayName("Encoding and decoding is stable across multiple iterations")
            void testEncodingDecodingStability() throws Exception {
                ASN1ObjectIdentifier[] mechs = new ASN1ObjectIdentifier[] { OID_KRB, OID_NTLM };
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  10. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
Back to top