Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testNullIp (0.04 seconds)

  1. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            rateLimiter.recordFailure(null, "192.168.1.8");
            assertTrue(rateLimiter.checkAttempt("realuser", "192.168.1.8"), "Should still track IP");
        }
    
        @Test
        public void testNullIp() throws Exception {
            // Null IP should be handled gracefully
            assertTrue(rateLimiter.checkAttempt("user1", null), "Null IP should be allowed");
    
            // Should not affect account limiting
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.8K bytes
    - Click Count (0)
Back to Top