Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 99 for lenient (0.08 sec)

  1. src/main/java/jcifs/util/SmbCircuitBreaker.java

                int currentThreshold = this.failureThreshold;
                int newThreshold = currentThreshold;
    
                // If failure rate is high but response time is normal, be more lenient
                if (failureRate > 0.5 && avgResponseTime < 5000) {
                    newThreshold = Math.min(currentThreshold + 2, 15);
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbSessionImplTest.java

    import jcifs.internal.SMBSigningDigest;
    import jcifs.internal.smb2.Smb2EncryptionContext;
    import jcifs.internal.smb2.session.Smb2SessionSetupResponse;
    
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    class SmbSessionImplTest {
    
        @Mock
        private CIFSContext cifsContext;
        @Mock
        private Configuration configuration;
        @Mock
        private Credentials credentials;
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

    /**
     * Tests for the NtlmHttpURLConnection class.
     * This class uses Mockito to simulate the behavior of HttpURLConnection and other dependencies.
     */
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    class NtlmHttpURLConnectionTest {
    
        @Mock
        private HttpURLConnection mockConnection;
    
        private URL mockUrl;
    
        @Mock
        private CIFSContext mockCifsContext;
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

            lenient().when(mockNdrBuffer.derive(anyInt())).thenReturn(mockDeferredNdrBuffer);
            lenient().when(mockDeferredNdrBuffer.derive(anyInt())).thenReturn(mockDeferredNdrBuffer);
    
            // Set up lenient stubs for common operations to avoid unnecessary stubbing exceptions
            lenient().when(mockNdrBuffer.getIndex()).thenReturn(0);
            lenient().when(mockDeferredNdrBuffer.getIndex()).thenReturn(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 60.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

    import jcifs.internal.util.SMBUtil;
    
    /**
     * Test class for Smb2SetInfoResponse functionality
     */
    @DisplayName("Smb2SetInfoResponse Tests")
    @MockitoSettings(strictness = Strictness.LENIENT)
    class Smb2SetInfoResponseTest {
    
        private Configuration mockConfig;
        private Smb2SetInfoResponse response;
    
        @BeforeEach
        void setUp() {
            mockConfig = mock(Configuration.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

    import jcifs.smb.NtStatus;
    
    /**
     * Tests for Smb2SessionSetupResponse decoding and behavior.
     */
    @ExtendWith(MockitoExtension.class)
    @DisplayName("Smb2SessionSetupResponse Tests")
    @MockitoSettings(strictness = Strictness.LENIENT)
    class Smb2SessionSetupResponseTest extends BaseTest {
    
        private Smb2SessionSetupResponse newResponse() {
            // Configuration is not used during decode when no signing digest is set
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt

                  parameter.groups[3]!!.value
                }
                token.startsWith('\'') && token.endsWith('\'') && token.length > 2 -> {
                  // If the token is 'single-quoted' it's invalid! But we're lenient and strip the quotes.
                  token.substring(1, token.length - 1)
                }
                else -> token
              }
    
            parameterNamesAndValues += name
            parameterNamesAndValues += value
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:08 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

    import jcifs.SmbPipeResource;
    import jcifs.internal.smb2.ioctl.Smb2IoctlRequest;
    import jcifs.internal.smb2.ioctl.Smb2IoctlResponse;
    
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    class SmbPipeHandleImplTest {
    
        @Mock
        SmbNamedPipe pipe;
    
        @Mock
        SmbTreeHandleImpl tree;
    
        @Mock
        SmbFileHandleImpl fileHandle;
    
        @Mock
        Configuration config;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/PreauthIntegrityTest.java

    import jcifs.DialectVersion;
    import jcifs.internal.smb2.nego.Smb2NegotiateResponse;
    
    /**
     * Test Pre-Authentication Integrity improvements
     */
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    public class PreauthIntegrityTest {
    
        @Mock
        private CIFSContext context;
    
        @Mock
        private Configuration config;
    
        @Mock
        private Address address;
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java

            // Directly set the deferred field on the mock
            mockNdrBuffer.deferred = mockDeferredBuffer;
    
            // Configure mocks for NdrBuffer interactions
            lenient().when(mockDeferredBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer);
            lenient().doNothing().when(mockDeferredBuffer).advance(anyInt());
            // Set up index field for derive operations
            mockDeferredBuffer.index = 0;
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.6K bytes
    - Viewed (0)
Back to top