Search Options

Results per page
Sort
Preferred Languages
Advance

Results 471 - 480 of 574 for mocks (0.05 sec)

  1. src/test/java/org/codelibs/fess/helper/SambaHelperTest.java

                    return type;
                }
    
                @Override
                public <T> T unwrap(Class<T> type) {
                    return null;
                }
            };
        }
    
        // Mock classes
    
        static class MockFessConfig extends FessConfig.SimpleImpl {
            @Override
            public String getSmbAvailableSidTypes() {
                return "1,2,4:2,5:1";
            }
    
            @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/sso/SsoAuthenticatorTest.java

        private TestSsoAuthenticator authenticator;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            authenticator = new TestSsoAuthenticator();
        }
    
        // Mock LoginCredentialResolver for testing
        private static class TestLoginCredentialResolver extends FessLoginAssist.LoginCredentialResolver {
            private boolean resolveCalled = false;
            private Class<?> lastCredentialType;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

          when (code) {
            in 100..199 -> "Informational"
            in 200..299 -> "OK"
            in 300..399 -> "Redirection"
            in 400..499 -> "Client Error"
            in 500..599 -> "Server Error"
            else -> "Mock Response"
          }
        return apply { status = "HTTP/1.1 $code $reason" }
      }
    
      fun clearHeaders() =
        apply {
          headersBuilder = Headers.Builder()
        }
    
      fun addHeader(header: String) =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.Configuration;
    import jcifs.config.BaseConfiguration;
    import jcifs.internal.util.SMBUtil;
    import jcifs.smb.FileEntry;
    
    /**
     * Test class for NetShareEnumResponse
     */
    class NetShareEnumResponseTest {
    
        @Mock
        private Configuration mockConfig;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/CurlHelperTest.java

        private CurlHelper curlHelper;
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            curlHelper = new CurlHelper();
        }
    
        public void test_get() {
            // Mock FessConfig and ResourceUtil
            setupMockConfig("localhost:9200", "", "");
    
            curlHelper.init();
            CurlRequest request = curlHelper.get("/test");
    
            assertNotNull(request);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  6. docs/changelogs/upgrading_to_okhttp_4.md

    in OkHttp 3.x and are final in 4.x. These were made non-final for use with mocking frameworks like
    [Mockito][mockito]. We believe subtyping `OkHttpClient` is the wrong way to test with OkHttp. If
    you must, mock `Call.Factory` which is the interface that `OkHttpClient` implements.
    
    #### Internal API changes
    
    The `okhttp3.internal` package is not a published API and we change it frequently without warning.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Queues.java

        int added = 0;
        while (added < numElements) {
          // we could rely solely on #poll, but #drainTo might be more efficient when there are multiple
          // elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)
          added += q.drainTo(buffer, numElements - added);
          if (added < numElements) { // not enough elements immediately available; will have to poll
            E e = q.poll(deadline - System.nanoTime(), NANOSECONDS);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

          assertLockNotHeld()
    
          connection.updateConnectionFlowControl(read)
        }
    
        /**
         * Accept bytes on the connection's reader thread. This function avoids holding locks while it
         * performs blocking reads for the incoming bytes.
         */
        @Throws(IOException::class)
        internal fun receive(
          source: BufferedSource,
          byteCount: Long,
        ) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/cors/CorsHandlerTest.java

            assertTrue("ACCESS_CONTROL_MAX_AGE should be final", Modifier.isFinal(maxAgeField.getModifiers()));
        }
    
        // Helper method to create mock HttpServletRequest
        private HttpServletRequest createMockRequest() {
            return new HttpServletRequest() {
                @Override
                public String getAuthType() {
                    return null;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

                assertEquals(24, encoded);
                assertEquals(flags, SMBUtil.readInt4(buffer, 16));
            }
    
            @Test
            @DisplayName("Should encode multiple locks sequentially")
            void testSequentialEncoding() {
                Smb2Lock lock1 = new Smb2Lock(100L, 200L, 1);
                Smb2Lock lock2 = new Smb2Lock(300L, 400L, 2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top