You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2026/10/17 12:42:29 UTC
(tapestry-5) 06/07: Fix ContextAssetRequestHandlerTest after asset resolution reordering
This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a commit to branch javax
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
commit 3919b9a1ef89e343d4ce9f4a7520b7c6674f18c9
Author: Ben Weidig <be...@netzgut.net>
AuthorDate: Wed Oct 7 16:46:16 2026 +0200
Fix ContextAssetRequestHandlerTest after asset resolution reordering
We need an actual root to resolve against now.
---
.../internal/services/assets/ContextAssetRequestHandlerTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/assets/ContextAssetRequestHandlerTest.java b/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/assets/ContextAssetRequestHandlerTest.java
index 8b9dc54b8..34a3a41d4 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/assets/ContextAssetRequestHandlerTest.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/assets/ContextAssetRequestHandlerTest.java
@@ -66,7 +66,7 @@ class ContextAssetRequestHandlerTest
void ensureAssetsAreRejected(String path) throws IOException
{
// ARRANGE
- ContextAssetRequestHandler handler = new ContextAssetRequestHandler(null, null, NEVER_BLOCK);
+ ContextAssetRequestHandler handler = new ContextAssetRequestHandler(null, CONTEXT_ROOT, NEVER_BLOCK);
// ACT
boolean providedResponse = handler.handleAssetRequest(null, null, "fake-checksum/" + path);
@@ -79,7 +79,7 @@ class ContextAssetRequestHandlerTest
void contextAssetProtectionRuleIsConsulted() throws IOException
{
// ARRANGE
- ContextAssetRequestHandler handler = new ContextAssetRequestHandler(null, null, BLOCK_MAP_FILES);
+ ContextAssetRequestHandler handler = new ContextAssetRequestHandler(null, CONTEXT_ROOT, BLOCK_MAP_FILES);
// ACT
boolean providedResponse = handler.handleAssetRequest(null, null, "fake-checksum/app.js.map");