This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch WW-3476-scoped-constants in repository https://gitbox.apache.org/repos/asf/struts.git
commit 545c5703f95013a990691db98d1d2eb228bb9262 Author: Lukasz Lenart <[email protected]> AuthorDate: Sat Oct 10 17:49:15 2026 +0200 WW-3476 test(config): pin ScopedConstantProvider wiring on the Dispatcher path Co-Authored-By: Claude Opus 5.5 <[email protected]> --- .../config/ScopedConstantProviderWiringTest.java | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/core/src/test/java/org/apache/struts2/config/ScopedConstantProviderWiringTest.java b/core/src/test/java/org/apache/struts2/config/ScopedConstantProviderWiringTest.java new file mode 100644 index 000000000..f24153076 --- /dev/null +++ b/core/src/test/java/org/apache/struts2/config/ScopedConstantProviderWiringTest.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.struts2.config; + +import org.apache.struts2.StrutsInternalTestCase; + +public class ScopedConstantProviderWiringTest extends StrutsInternalTestCase { + + public void testDispatcherResolvesStrutsScopedConstantProvider() { + ScopedConstantProvider provider = dispatcher.getContainer().getInstance(ScopedConstantProvider.class); + + assertTrue(provider instanceof StrutsScopedConstantProvider); + } +}
