Search Options

Results per page
Sort
Preferred Languages
Advance

Results 411 - 420 of 470 for mockk (0.02 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

    import okhttp3.WebSocketListener
    import okhttp3.internal.addHeaderLenient
    import okhttp3.internal.http2.ErrorCode
    import okhttp3.internal.http2.Settings
    import okio.Buffer
    
    /** A scripted response to be replayed by the mock web server. */
    public class MockResponse {
      /** Returns the HTTP response line, such as "HTTP/1.1 200 OK". */
      public val status: String
    
      public val code: Int
        get() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  2. 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)
  3. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java

                fail("Failed to access servername field: " + e.getMessage());
            }
        }
    
        @Test
        void testGetEntriesWithMultipleShares() throws Exception {
            // Create real ShareInfo1 objects instead of mocks
            srvsvc.ShareInfo1 shareInfo1 = new srvsvc.ShareInfo1();
            shareInfo1.netname = "Share1";
            shareInfo1.type = 0;
            shareInfo1.remark = "Remark for Share1";
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. 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 (1)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/test/java/org/codelibs/fess/api/WebApiRequestTest.java

            // Third call without SAStruts.method again
            mockRequest.setQueryString("page=1");
            assertEquals(customPath, webApiRequest.getServletPath());
        }
    
        // Simple mock implementation of HttpServletRequest for testing
        private static class MockHttpServletRequest implements HttpServletRequest {
            private String queryString;
            private String servletPath;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  10. 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)
Back to top