Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 448 for reset (0.04 sec)

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

        @Test
        @DisplayName("Test reset() method resets transaction state")
        void testReset() {
            // Modify state
            transaction.nextElement();
    
            // Reset
            transaction.reset();
    
            // Verify state is reset
            assertTrue(transaction.hasMoreElements(), "hasMoreElements should be true after reset");
        }
    
        @Test
        @DisplayName("Test reset(int, String) method")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/AuthenticationRateLimiter.java

                        throw new SmbException("Account '" + username + "' is locked out until " + account.getLockoutExpiry());
                    } else {
                        // Lockout expired, reset
                        account.reset();
                    }
                }
            }
    
            // Check per-IP limit
            if (sourceIp != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

            assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should be OPEN");
    
            // Manually reset
            circuitBreaker.reset();
            assertEquals(State.CLOSED, circuitBreaker.getState(), "Circuit should be CLOSED after reset");
            assertEquals(0, circuitBreaker.getFailureCount(), "Failure count should be reset");
        }
    
        @Test
        public void testCustomFailureDetection() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/StopwatchTest.java

        assertEquals("9.999 \u03bcs", stopwatch.toString());
        stopwatch.reset();
        stopwatch.start();
        ticker.advance(1234567);
        assertEquals("1.235 ms", stopwatch.toString());
        stopwatch.reset();
        stopwatch.start();
        ticker.advance(5000000000L);
        assertEquals("5.000 s", stopwatch.toString());
        stopwatch.reset();
        stopwatch.start();
        ticker.advance((long) (1.5 * 60 * 1000000000L));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/HMACT64Test.java

                HMACT64 hmac = new HMACT64(TEST_KEY);
                hmac.engineReset();
                verify(mockMd5, times(2)).reset(); // Once in constructor, once in reset
                verify(mockMd5, times(2)).update(any(byte[].class)); // Once in constructor, once in reset
            }
        }
    
        @Test
        void testEngineGetDigestLength() throws NoSuchAlgorithmException {
            // Test engineGetDigestLength()
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

            }
        }
    
        @Test
        @DisplayName("Test reset method")
        void testReset() {
            // Given
            doNothing().when(messageBlock).reset();
    
            // When
            messageBlock.reset();
    
            // Then
            verify(messageBlock).reset();
        }
    
        @Test
        @DisplayName("Test multiple operations in sequence")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

            NdrHyper hyper = new NdrHyper(original);
            // Create buffer with extra space for alignment
            NdrBuffer buf = new NdrBuffer(new byte[16], 0);
            hyper.encode(buf);
            // Reset buffer position for decoding
            buf.reset();
            NdrHyper decoded = new NdrHyper(0);
            decoded.decode(buf);
            assertEquals(original, decoded.value, "Decoded value should match encoded value");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/LongAdder.java

       * example during quiescent points between multithreaded computations. If there are updates
       * concurrent with this method, the returned value is not guaranteed to be the final
       * value occurring before the reset.
       *
       * @return the sum
       */
      public long sumThenReset() {
        long sum = base;
        Cell[] as = cells;
        base = 0L;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

            // Reset error and test hasMore flag
            response.setTestErrorCode(0);
            response.hasMore = false;
            assertFalse(response.hasMoreElements());
        }
    
        @Test
        @DisplayName("Test reset functionality")
        void testReset() {
            // Reset should not throw exception
            assertDoesNotThrow(() -> response.reset());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

            buf.reset();
            ns.encode(buf); // should not throw
    
            // After encoding, check how many bytes were used
            int bytesUsed = buf.getIndex();
            // Should be 2 bytes for the short value (alignment may add padding)
            assertTrue(bytesUsed >= 2, "Should use at least 2 bytes for short");
    
            // Reset index to read back
            buf.reset();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top