This is an automated email from the ASF dual-hosted git repository. reschke pushed a commit to branch SLING-12894 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-resourceresolver.git
commit 2296b7a77dade1ddcaf6508f5cf6dc2cb876286b Author: Julian Reschke <resc...@apache.org> AuthorDate: Thu Aug 21 09:10:54 2025 +0100 SLING-12894: alias refactoring - support observation events while bg init not finished - wip --- .../sling/resourceresolver/impl/mapping/MapEntriesTest.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/apache/sling/resourceresolver/impl/mapping/MapEntriesTest.java b/src/test/java/org/apache/sling/resourceresolver/impl/mapping/MapEntriesTest.java index dbe7acf5..a9617bbb 100644 --- a/src/test/java/org/apache/sling/resourceresolver/impl/mapping/MapEntriesTest.java +++ b/src/test/java/org/apache/sling/resourceresolver/impl/mapping/MapEntriesTest.java @@ -125,10 +125,11 @@ public class MapEntriesTest extends AbstractMappingMapEntriesTest { @Test // SLING-4847 public void test_doNodeAdded1() throws Exception { - final Method addResource = MapEntries.class.getDeclaredMethod("addResource", String.class, AtomicBoolean.class); + final Method addResource = MapEntries.class.getDeclaredMethod( + "addResource", String.class, boolean.class, boolean.class, AtomicBoolean.class); addResource.setAccessible(true); final AtomicBoolean refreshed = new AtomicBoolean(false); - addResource.invoke(mapEntries, "/node", refreshed); + addResource.invoke(mapEntries, "/node", true, true, refreshed); assertTrue(refreshed.get()); } @@ -138,8 +139,8 @@ public class MapEntriesTest extends AbstractMappingMapEntriesTest { final Method addResource = MapEntries.class.getDeclaredMethod( "addResource", String.class, boolean.class, boolean.class, AtomicBoolean.class); addResource.setAccessible(true); - final Method updateResource = - MapEntries.class.getDeclaredMethod("updateResource", String.class, true, true, tomicBoolean.class); + final Method updateResource = MapEntries.class.getDeclaredMethod( + "updateResource", String.class, boolean.class, boolean.class, AtomicBoolean.class); updateResource.setAccessible(true); final Method handleConfigurationUpdate = MapEntries.class.getDeclaredMethod( "handleConfigurationUpdate", String.class, AtomicBoolean.class, AtomicBoolean.class, boolean.class); @@ -175,8 +176,8 @@ public class MapEntriesTest extends AbstractMappingMapEntriesTest { try { Thread.sleep(randomWait); for (int i1 = 0; i1 < 3; i1++) { - addResource.invoke(mapEntries, "/node", new AtomicBoolean()); - updateResource.invoke(mapEntries, "/node", new AtomicBoolean()); + addResource.invoke(mapEntries, "/node", true, true, new AtomicBoolean()); + updateResource.invoke(mapEntries, "/node", true, true, new AtomicBoolean()); handleConfigurationUpdate.invoke( mapEntries, "/node", new AtomicBoolean(), new AtomicBoolean(), false); }