Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 187 for issubclass (0.23 seconds)

  1. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

            final TestableGroovyEngine testEngine = new TestableGroovyEngine();
            assertEquals("groovy", testEngine.testGetName());
        }
    
        /**
         * Testable GroovyEngine subclass for testing protected methods
         */
        static class TestableGroovyEngine extends GroovyEngine {
            boolean logScriptExecutionCalled = false;
            String lastLoggedScript = null;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 29.1K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/testing/NullPointerTester.java

           * more information, see the comments in that class.
           *
           * We already know that that's how it behaves, and subclasses of Converter can't change that
           * behavior. So there's no sense in making all subclass authors exclude the method from any
           * NullPointerTester tests that they have.
           */
          ignoredMembers.add(Converter.class.getMethod("apply", Object.class));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/curl/io/IOIntegrationTest.java

            @Override
            public void setReadTimeout(int timeout) {
                this.recordedReadTimeout = timeout;
                super.setReadTimeout(timeout);
            }
        }
    
        /**
         * CurlRequest subclass that overrides only open(URL) to inject a mock connection.
         * This ensures the real connect() code path is exercised (timeout, headers, onConnect, etc.).
         */
        class OpenOverrideCurlRequest extends CurlRequest {
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 12:00:34 GMT 2026
    - 44.1K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/chat/ChatClientTest.java

            final List<Map<String, Object>> result = chatClient.testSearchWithQuery("nonexistent");
            assertTrue(result.isEmpty());
        }
    
        // ========== Testable subclass ==========
    
        static class TestableChatClient extends ChatClient {
    
            private boolean searchDocumentsCalled = false;
            private final List<String> searchedQueries = new ArrayList<>();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 40.6K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

            } catch (Throwable e) {
              // Any Exception is either a RuntimeException or sneaky checked exception.
              //
              // If an exception is thrown by the subclass then we need to make sure that the service
              // notices and transitions to the FAILED state. We do it by calling notifyFailed directly
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 27.7K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/tutorial/response-model.md

    這個簡單情境會由 FastAPI 自動處理,因為回傳型別註解是 `Response` 類別(或其子類別)。
    
    而工具也會滿意,因為 `RedirectResponse` 與 `JSONResponse` 都是 `Response` 的子類別,所以型別註解是正確的。
    
    ### 註解為某個 Response 的子類別 { #annotate-a-response-subclass }
    
    你也可以在型別註解中使用 `Response` 的子類別:
    
    {* ../../docs_src/response_model/tutorial003_03_py310.py hl[8:9] *}
    
    這同樣可行,因為 `RedirectResponse` 是 `Response` 的子類別,而 FastAPI 會自動處理這種簡單情況。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.5K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

         * to be passed to the readXxxWireFormat methods. This is
         * actually purer. However, in the case of smb we know the
         * wordCount and byteCount. And since every subclass of
         * ServerMessageBlock would have to perform the same read
         * operation on the input stream, we might as will pull that
         * common functionality into the superclass and read wordCount
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 38.9K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java

                    + "\"instanceId\":\"node1@host1\",\"status\":\"running\"," + "\"expiredTime\":" + (now + 3600000L) + "}}";
            final CurlResponse mockResponse = createMockResponse(200, opJson);
    
            // Use a subclass to mock both CurlHelper access and getActiveInstances
            final CoordinatorHelper helper = new CoordinatorHelper() {
                @Override
                public List<InstanceInfo> getActiveInstances() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 58.6K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/Iterables.java

        }
    
        @Override
        public void forEach(Consumer<? super T> action) {
          iterable.forEach(action);
        }
    
        @SuppressWarnings("unchecked") // safe upcast, assuming no one has a crazy Spliterator subclass
        @Override
        public Spliterator<T> spliterator() {
          return (Spliterator<T>) iterable.spliterator();
        }
    
        @Override
        public String toString() {
          return iterable.toString();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 43.6K bytes
    - Click Count (0)
  10. TESTING.asciidoc

      might have multiple nodes.
    * **`ESRestTestCase`**: An integration tests that interacts with an external
      cluster via the REST API. This is used for Java based REST tests.
    * **`ESClientYamlSuiteTestCase` **: A subclass of `ESRestTestCase` used to run
      YAML based REST tests.
    
    === Good practices
    
    ==== What kind of tests should I write?
    
    Unit tests are the preferred way to test some functionality: most of the time
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Jun 07 13:55:20 GMT 2021
    - 32.5K bytes
    - Click Count (0)
Back to Top