- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 1,330 for overrides (0.56 seconds)
-
src/main/java/org/codelibs/fess/crawler/helper/FessMimeTypeHelper.java
} /** * Initializes the extension override map by loading configuration from FessConfig. * The mappings are loaded from the crawler.document.mimetype.extension.overrides property, * where each line contains a mapping in the format ".ext=mime/type". */ @PostConstruct public void init() { final String overrides = ComponentUtil.getFessConfig().getCrawlerDocumentMimetypeExtensionOverrides();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Jan 24 09:06:33 GMT 2026 - 2.7K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/testing-dependencies.md
# 用覆寫測試相依 { #testing-dependencies-with-overrides } ## 在測試期間覆寫相依 { #overriding-dependencies-during-testing } 有些情境你可能想在測試時覆寫(override)某個相依(dependency)。 你不希望執行原本的相依(以及它可能具有的任何子相依)。 相反地,你想提供一個只在測試期間使用的不同相依(可能只在特定測試中),並回傳一個可以在原本相依值被使用之處使用的值。 ### 使用情境:外部服務 { #use-cases-external-service } 例如你有一個需要呼叫的外部驗證提供者。 你傳送一個 token,它會回傳一個已驗證的使用者。 這個提供者可能按每個請求收費,而且呼叫它可能比在測試中使用固定的模擬使用者多花一些時間。 你大概只想對外部提供者測試一次,而不需要在每個測試都呼叫它。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 2.1K bytes - Click Count (0) -
docs/zh/docs/advanced/testing-dependencies.md
# 使用覆盖测试依赖项 { #testing-dependencies-with-overrides } ## 测试时覆盖依赖项 { #overriding-dependencies-during-testing } 有些场景下,您可能需要在测试时覆盖依赖项。 即不希望运行原有依赖项(及其子依赖项)。 反之,要在测试期间(或只是为某些特定测试)提供只用于测试的依赖项,并使用此依赖项的值替换原有依赖项的值。 ### 用例:外部服务 { #use-cases-external-service } 常见实例是调用外部第三方身份验证应用。 向第三方应用发送令牌,然后返回经验证的用户。 但第三方服务商处理每次请求都可能会收费,并且耗时通常也比调用写死的模拟测试用户更长。 一般只要测试一次外部验证应用就够了,不必每次测试都去调用。 此时,最好覆盖调用外部验证应用的依赖项,使用返回模拟测试用户的自定义依赖项就可以了。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 2K bytes - Click Count (0) -
tests/test_strict_content_type_nested.py
from fastapi import APIRouter, FastAPI from fastapi.testclient import TestClient # Lax app with nested routers, inner overrides to strict app_nested = FastAPI(strict_content_type=False) # lax app outer_router = APIRouter(prefix="/outer") # inherits lax from app inner_strict = APIRouter(prefix="/strict", strict_content_type=True) inner_default = APIRouter(prefix="/default") @inner_strict.post("/items/") async def inner_strict_post(data: dict):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Feb 23 17:45:20 GMT 2026 - 2.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/exception/UserRoleLoginException.java
public Class<? extends RootAction> getActionClass() { return actionClass; } /** * Overrides fillInStackTrace to return null for performance optimization. * This prevents stack trace generation for this exception type. * * @return null to skip stack trace generation */ @Override public synchronized Throwable fillInStackTrace() { return null; }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Nov 19 08:04:23 GMT 2025 - 2K bytes - Click Count (0) -
tests/test_schema_extra_examples.py
assert response.status_code == 200, response.text def test_openapi_schema(): """ Test that example overrides work: * pydantic model schema_extra is included * Body(example={}) overrides schema_extra in pydantic model * Body(examples{}) overrides Body(example={}) and schema_extra in pydantic model """ app = create_app() client = TestClient(app)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 34.7K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java
true, false, null, true, "Should enable plugins when --all=true (overrides --plugins=false)"), Arguments.of(null, false, null, false, "Should disable plugins when --plugins=false"),Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 13.7K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeStrategy.java
*/ default boolean isOptionEnabled( UpgradeOptions options, Optional<Boolean> specificOption, boolean defaultWhenNoOptionsSpecified) { // Handle --all option (overrides individual options) boolean useAll = options.all().orElse(false); if (useAll) { return true; } // Check specific option if (specificOption.isPresent()) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 3.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableCollection.java
/** Returns an unmodifiable iterator across the elements in this collection. */ @Override public abstract UnmodifiableIterator<E> iterator(); @Override public Spliterator<E> spliterator() { return Spliterators.spliterator(this, SPLITERATOR_CHARACTERISTICS); } private static final Object[] EMPTY_ARRAY = {}; @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 18.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableCollection.java
ImmutableCollection() {} /** Returns an unmodifiable iterator across the elements in this collection. */ @Override public abstract UnmodifiableIterator<E> iterator(); @Override @IgnoreJRERequirement // used only from APIs with Java 8 types in them // (not used within guava-android as of this writing, but we include it in the jar as a test)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 21.4K bytes - Click Count (0)