Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 145 for 500 (0.02 seconds)

  1. src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java

            WebApiException exception2 = new WebApiException(401, "Unauthorized");
            WebApiException exception3 = new WebApiException(500, "Internal Error");
    
            assertEquals(400, exception1.getStatusCode());
            assertEquals(401, exception2.getStatusCode());
            assertEquals(500, exception3.getStatusCode());
    
            assertTrue(exception1.getStatusCode() != exception2.getStatusCode());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/it/admin/StorageTests.java

            // Storage may not be enabled, so accept various responses
            int statusCode = response.getStatusCode();
            assertTrue(statusCode == 200 || statusCode == 400 || statusCode == 500,
                    "Status code should be 200, 400 or 500, but was " + statusCode);
        }
    
        @Test
        void testDownload_notFound() {
            // Try to download a non-existent file
            Response response =
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/util/DocListTest.java

            docList.addContentSize(500);
            docList.addProcessingTime(250);
    
            assertEquals(500, docList.getContentSize());
            assertEquals(250, docList.getProcessingTime());
    
            docList.remove(0);
            assertEquals(1, docList.size());
            assertEquals(doc2, docList.get(0));
    
            assertEquals(500, docList.getContentSize());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        Stopwatch stopwatch = Stopwatch.createStarted();
        Condition condition = TestCondition.create();
    
        boolean returnedBeforeTimeout = awaitUninterruptibly(condition, 500, MILLISECONDS);
    
        assertFalse(returnedBeforeTimeout);
        assertAtLeastTimePassed(stopwatch, 500);
        assertNotInterrupted();
      }
    
      @SuppressWarnings("WaitNotInLoop") // see comment above
      public void testConditionAwaitTimeoutNotExceeded() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/chat/ChatClientTest.java

            assertEquals(content, result);
        }
    
        @Test
        public void test_smartSummary_headTailRatio() {
            // Use 1000-char content with summaryMaxChars=500, no sources
            // omitMarker="\n...[omitted]...\n" (17 chars), suffix="", bodyBudget=500-0-17=483
            // headChars = (int)(483 * 0.6) = 289, tailChars = 483 - 289 = 194
            final String content = "A".repeat(1000);
    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)
  6. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

      }
    
      @Test
      public void expireAfterWriteAndAccess() {
        Cache<Integer, Integer> cache =
            CacheBuilder.newBuilder()
                .expireAfterWrite(1000, MILLISECONDS)
                .expireAfterAccess(500, MILLISECONDS)
                .ticker(fakeTicker)
                .build();
    
        cache.put(10, 100);
        cache.put(20, 200);
        cache.put(4, 2);
    
        fakeTicker.advance(499, MILLISECONDS);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        Stopwatch stopwatch = Stopwatch.createStarted();
        Condition condition = TestCondition.create();
    
        boolean returnedBeforeTimeout = awaitUninterruptibly(condition, 500, MILLISECONDS);
    
        assertFalse(returnedBeforeTimeout);
        assertAtLeastTimePassed(stopwatch, 500);
        assertNotInterrupted();
      }
    
      @SuppressWarnings("WaitNotInLoop") // see comment above
      public void testConditionAwaitTimeoutNotExceeded() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  8. tests/test_response_model_invalid.py

            app = FastAPI()
    
            @app.get("/", responses={"500": {"model": NonPydanticModel}})
            def read_root():
                pass  # pragma: nocover
    
    
    def test_invalid_response_model_sub_type_in_responses_raises():
        with pytest.raises(FastAPIError):
            app = FastAPI()
    
            @app.get("/", responses={"500": {"model": list[NonPydanticModel]}})
            def read_root():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  9. tests/test_include_router_defaults_overrides.py

                                            }
                                        }
                                    },
                                },
                                "500": {"description": "Server error level 0"},
                                "501": {"description": "Server error level 1"},
                            },
                            "callbacks": {
                                "callback0": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 385.6K bytes
    - Click Count (0)
  10. tests/test_dependency_contextmanager.py

        errors.clear()
    
    
    def test_async_raise_server_error():
        client = TestClient(app, raise_server_exceptions=False)
        response = client.get("/async_raise")
        assert response.status_code == 500, response.text
        assert state["/async_raise"] == "asyncgen raise finalized"
        assert "/async_raise" in errors
        errors.clear()
    
    
    def test_context_b():
        response = client.get("/context_b")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 11.5K bytes
    - Click Count (0)
Back to Top