Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for attemptCount (0.05 seconds)

  1. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

            final AtomicInteger attemptCount = new AtomicInteger(0);
            final ActionFuture<String> mockFuture = mock(ActionFuture.class);
    
            // Fail 5 times, succeed on 6th attempt
            when(mockFuture.actionGet(anyLong(), any(TimeUnit.class))).thenAnswer(invocation -> {
                int count = attemptCount.incrementAndGet();
                if (count <= 5) {
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Mon Jan 12 06:25:38 GMT 2026
    - 16.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/audit/SecurityAuditLoggerTest.java

        @Test
        @DisplayName("Test log security violation")
        void testLogSecurityViolation() {
            Map<String, Object> context = new HashMap<>();
            context.put("sourceIP", "192.168.1.100");
            context.put("attemptCount", 5);
    
            logger.logSecurityViolation("Multiple failed authentication attempts", context);
    
            Map<EventType, Long> stats = logger.getStatistics();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.6K bytes
    - Click Count (0)
Back to Top