Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for decrement (0.12 sec)

  1. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

            SmbComNtCancel cancelRequest = mock(SmbComNtCancel.class);
    
            digest.sign(data, 0, data.length, cancelRequest, null);
    
            verify(cancelRequest).setSignSeq(10);
            // Sequence should increment by 1 for cancel requests
        }
    
        @Test
        @DisplayName("Test sign method with null response")
        void testSignWithNullResponse() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

        }
    
        @Test
        @DisplayName("checkRelease(): when connected and usage>0 performs check without throwing")
        void checkRelease_connectedAndInUse_doesNotThrow() {
            // Arrange: spy isConnected() to return true; increment usage via acquire()
            CIFSContext ctx = mock(CIFSContext.class);
            SmbTreeConnectionTrace trace = Mockito.spy(new SmbTreeConnectionTrace(ctx));
            doReturn(true).when(trace).isConnected();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

        /**
         * Checks if the cache has pending changes
         * @return true if cache has changes
         */
        public boolean hasChanges() {
            return hasChanges;
        }
    
        /**
         * Get and increment inconsistency count
         *
         * @return the current inconsistency count
         */
        public int getInconsistencyCount() {
            return inconsistencyCount.getAndIncrement();
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

             *
             * @return true if should retry
             */
            public boolean shouldRetry() {
                return retryCount < 3;
            }
    
            /**
             * Increment retry count and update next retry time
             */
            public void incrementRetry() {
                retryCount++;
                // Exponential backoff: 1s, 2s, 4s
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            verify(tree, times(1)).release();
        }
    
        @Test
        @DisplayName("release() decrements usage; closes only when count reaches zero")
        void release_decrementsAndClosesOnZero() throws CIFSException {
            when(cfg.isTraceResourceUsage()).thenReturn(false);
            stubValidTree(8L, true, true);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            assertSame(response, out);
            verify(treeConnection).send(resourceLoc, request, response, params);
        }
    
        @Test
        @DisplayName("close calls release and decrements usage; double release throws")
        void closeAndReleaseBehavior() {
            // Validates usage counting and that an extra release() throws RuntimeCIFSException
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerThread.java

         */
        protected void startCrawling() {
            synchronized (crawlerContext.activeThreadCountLock) {
                crawlerContext.activeThreadCount++;
            }
        }
    
        /**
         * Decrements the active thread count.
         */
        protected void finishCrawling() {
            synchronized (crawlerContext.activeThreadCountLock) {
                crawlerContext.activeThreadCount--;
            }
        }
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

            }
    
            /* The message provided to batch has a batchLimit that is
             * higher than the current batchLevel so we will now encode
             * that chained message. Before doing so we must increment
             * the batchLevel of the andx message in case it itself is an
             * andx message and needs to perform the same check as above.
             */
    
            andx.batchLevel = batchLevel + 1;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

            assertNotNull(component1);
            assertNotNull(component2);
    
            // Should be same instance for singleton
            assertSame(component1, component2);
            // The first creation should increment the counter
            assertTrue("Instance count should be at least 1", SingletonTestComponent.getInstanceCount() >= 1);
        }
    
        /**
         * Test wrap method
         */
        public void test_wrap_basic() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 13:07:01 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

         */
        private int getFailureCount(ChangeNotificationHandle handle) {
            return failureCounts.getOrDefault(handle.getDirectoryPath(), 0);
        }
    
        /**
         * Increment failure count for a handle
         *
         * @param handle notification handle
         */
        private void incrementFailureCount(ChangeNotificationHandle handle) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
Back to top