This is an automated email from the ASF dual-hosted git repository. cziegeler pushed a commit to branch appmod/java-upgrade-20250910060318 in repository https://gitbox.apache.org/repos/asf/sling-samples.git
commit 45f1c02e208ef360539aea4f20263b559f87d3b9 Author: Carsten Ziegeler <[email protected]> AuthorDate: Wed Sep 10 09:28:28 2025 +0200 Fix RatingPostServlet test mock configuration --- .../sling/sample/slingshot/ratings/impl/RatingPostServletTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slingshot/src/test/java/org/apache/sling/sample/slingshot/ratings/impl/RatingPostServletTest.java b/slingshot/src/test/java/org/apache/sling/sample/slingshot/ratings/impl/RatingPostServletTest.java index 324b427..c3e553b 100644 --- a/slingshot/src/test/java/org/apache/sling/sample/slingshot/ratings/impl/RatingPostServletTest.java +++ b/slingshot/src/test/java/org/apache/sling/sample/slingshot/ratings/impl/RatingPostServletTest.java @@ -60,7 +60,7 @@ public class RatingPostServletTest { // Create test resource Resource testResource = context.create().resource("/content/slingshot/users/test/entries/entry1"); - when(resourceResolver.getResource(anyString())).thenReturn(testResource); + when(resourceResolver.getResource("/content/slingshot/users/test/entries/entry1")).thenReturn(testResource); // Register services context.registerService(RatingsService.class, ratingsService);
