- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 111 for succeed (1.78 sec)
-
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
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 public void testSessionReleaseDoubleCheckPattern() throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
// Prepare a minimal locator SmbResourceLocatorImpl loc = new SmbResourceLocatorImpl(ctx, smbUrl("smb://srv/share/path")); // Setup a tree that will fail with transport error first, then succeed SmbTreeImpl tree = mock(SmbTreeImpl.class); when(tree.acquire(false)).thenReturn(tree); CommonServerMessageBlockRequest req = mock(CommonServerMessageBlockRequest.class);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
// Second success should close the circuit (threshold is 2) result = circuitBreaker.executeWithCircuitBreaker(() -> "success 1"); assertEquals("success 1", result, "Should execute second success"); assertEquals(State.CLOSED, circuitBreaker.getState(), "Circuit should be CLOSED after success threshold"); // Test max attempts in half-open with failure scenario circuitBreaker.trip(); // Open again
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
} @Test void testTreeConnectAndDisconnect() throws Exception { SmbTree tree = new SmbTree(session, "testShare", "testService"); // Mock transport.connect() to succeed doNothing().when(transport).connect(); // Setup response for tree connect doAnswer(invocation -> { ServerMessageBlock request = invocation.getArgument(0);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
assertTrue(rateLimiter.checkAttempt("user1", "192.168.1.1"), "First attempt should be allowed"); // Record success rateLimiter.recordSuccess("user1", "192.168.1.1"); // Should still be allowed assertTrue(rateLimiter.checkAttempt("user1", "192.168.1.1"), "After success should be allowed"); } @Test public void testAccountLockout() throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
.thenReturn(sfd); // openCopyTargetFile should be called by serverSideCopy, so dest.openUnshared must succeed SmbFileHandleImpl dfd = mock(SmbFileHandleImpl.class); when(dest.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(dfd);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/JAASAuthenticatorTest.java
// Refresh should clear the cache auth.refresh(); Subject afterRefresh = auth.getSubject(); // After refresh, may succeed or fail depending on JAAS configuration // Just verify that refresh doesn't break the authenticator assertNotNull(auth, "Authenticator should remain usable after refresh"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/http/HandlerTest.java
URLStreamHandlerFactory mockFactory2 = mock(URLStreamHandlerFactory.class); Handler.setURLStreamHandlerFactory(mockFactory1); // First call, should succeed. assertThrows(IllegalStateException.class, () -> { Handler.setURLStreamHandlerFactory(mockFactory2); // Second call, should fail.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbOperationException.java
PROTOCOL, /** Resource errors (out of memory, disk space, etc.) */ RESOURCE, /** Configuration errors */ CONFIGURATION, /** Transient errors that may succeed on retry */ TRANSIENT, /** Unknown or unclassified errors */ UNKNOWN } /** * Standard SMB error codes */ public enum ErrorCode { // Network errorsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
response.writeBytesWireFormat(buffer, 0); } success[index] = true; } catch (Exception e) { success[index] = false; } }); } // When for (Thread thread : threads) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0)