- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 50 for getStats (0.22 sec)
-
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
} // Should have some state AuthenticationRateLimiter.RateLimiterStats stats = rateLimiter.getStats(); assertTrue(stats.getActiveAccounts() > 0); // Reset rateLimiter.reset(); // State should be cleared stats = rateLimiter.getStats(); assertEquals(0, stats.getTotalBlocked()); assertEquals(0, stats.getAccountsLocked());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/util/ServerResponseValidatorTest.java
}); } @Test public void testStatistics() throws Exception { // Reset stats validator.resetStats(); ServerResponseValidator.ValidationStats stats = validator.getStats(); assertEquals(0, stats.getTotalValidations()); assertEquals(0, stats.getFailedValidations()); // Perform some validations try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
throw new SmbException("Array allocation exceeds limit"); } } /** * Get validation statistics */ public ValidationStats getStats() { return new ValidationStats(totalValidations.get(), failedValidations.get(), bufferOverflowsPrevented.get(), integerOverflowsPrevented.get()); } /** * Reset statistics
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
assertEquals(State.HALF_OPEN, circuitBreaker.getState(), "Circuit should be in HALF_OPEN"); // One more success should close the circuit (threshold is 2) circuitBreaker.executeWithCircuitBreaker(() -> "success2"); assertEquals(State.CLOSED, circuitBreaker.getState(), "Circuit should be CLOSED after success threshold"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/filter/CorsFilterTest.java
assertEquals(origin, handler.getLastOrigin()); assertSame(mockRequest, handler.getLastRequest()); assertSame(mockResponse, handler.getLastResponse()); assertEquals(0, mockResponse.getStatus()); // Status not set for non-OPTIONS } // Test with valid Origin and CorsHandler found (POST request) public void test_doFilter_withCorsHandler_post() throws IOException, ServletException {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 22.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java
boolean isDone() { return (getState() & (COMPLETED | CANCELLED | INTERRUPTED)) != 0; } /** Checks if the state is {@link #CANCELLED} or {@link #INTERRUPTED}. */ boolean isCancelled() { return (getState() & (CANCELLED | INTERRUPTED)) != 0; } /** Checks if the state is {@link #INTERRUPTED}. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jan 30 16:59:10 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
assertEquals(SimpleCircuitBreaker.State.OPEN, circuitBreaker.getState()); // Wait for timeout Thread.sleep(150); // Next call should transition to HALF_OPEN String result = circuitBreaker.call(() -> "success"); assertEquals("success", result); assertEquals(SimpleCircuitBreaker.State.HALF_OPEN, circuitBreaker.getState()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java
assertEquals(address, connection.getRemoteAddress(), "Remote address should match"); assertNotNull(connection.getState(), "Connection state should not be null"); System.out.println("RDMA connection created to: " + address); System.out.println("Connection state: " + connection.getState()); } } @Test public void testRdmaTransportCreationWithMockDelegate() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 13.8K bytes - Viewed (0) -
docs/smb3-features/03-multi-channel-design.md
failover.handleFailure(channel, error); // Verify channel marked as failed assertEquals(ChannelState.FAILED, channel.getState()); // Verify recovery attempted Thread.sleep(2000); assertTrue(channel.getState() == ChannelState.ESTABLISHED || manager.getChannels().isEmpty()); } ``` ### 7.2 Integration Tests ```java @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 39.6K bytes - Viewed (0)