Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 227 for succeed (0.24 sec)

  1. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

            executor.shutdown();
    
            // Then - All operations should succeed
            assertTrue(exceptions.isEmpty(), "No exceptions should occur");
            assertEquals(threadCount * opsPerThread, successCount.get(), "All operations should succeed");
        }
    
        /**
         * Test that buffer cache handles allocation when cache is full.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java

                    return DcerpcError.DCERPC_FAULT_OP_RNG_ERROR;
                }
            }).when(mockHandle).sendrecv(any(MsrpcSamrConnect4.class));
            // Subsequent call for MsrpcSamrConnect2 should succeed
            doNothing().when(mockHandle).sendrecv(any(MsrpcSamrConnect2.class));
    
            try (SamrPolicyHandle handle = new SamrPolicyHandle(mockHandle, server, access)) {
                assertNotNull(handle);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java

         */
        public void setOffset(final long offset) {
            this.offset = offset;
        }
    
        /**
         * Sets the minimum number of bytes that must be read for the operation to succeed
         *
         * @param minimumCount
         *            the minimumCount to set
         */
        public void setMinimumCount(final int minimumCount) {
            this.minimumCount = minimumCount;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. 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)
  7. src/main/java/jcifs/SmbException.java

        /**
         * Error severity levels
         */
        public enum Severity {
            RECOVERABLE, // Can retry the operation
            TRANSIENT, // Temporary error, retry after delay
            PERMANENT, // Operation cannot succeed
            FATAL // Connection or session must be terminated
        }
    
        /**
         * Error categories
         */
        public enum Category {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  8. 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");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/dtyp/ACE.java

     * <code>FILE_WRITE_DATA</code> bit on (bit <code>0x00000002</code>). Actually, this isn't quite correct. If
     * <code>WNET\alice</code> is in the local <code>Administrators</code> group the access check
     * will succeed because the inherited ACE allows local <code>Administrators</code>
     * both <code>FILE_READ_DATA</code> and <code>FILE_WRITE_DATA</code> access.
     *
     */
    public class ACE implements jcifs.ACE, Decodable {
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. 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)
Back to top