reschke commented on code in PR #155:
URL: 
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/155#discussion_r1975853056


##########
src/test/java/org/apache/sling/resourceresolver/impl/mapping/VanityPathMapEntriesTest.java:
##########
@@ -1271,16 +1272,35 @@ public void test_bg_init_fallback_while_no_ready() {
         assertNotNull(mit);
         assertEquals(1, queryCounter.get());
 
+        // send a change event; this will be queud while init is running
+        // and then processed later on
+        Resource eventTest = mock(Resource.class, "eventTest");
+        when(eventTest.getName()).thenReturn("eventTest");
+        when(eventTest.getPath()).thenReturn("/eventTest");
+        
when(eventTest.getValueMap()).thenReturn(buildValueMap("sling:vanityPath", 
"/baa"));
+        Resource eventTestTarget = mock(Resource.class, "eventTestTarget");
+        when(eventTestTarget.getName()).thenReturn("baa");
+        when(eventTestTarget.getPath()).thenReturn("/baa");
+        
when(eventTestTarget.getValueMap()).thenReturn(buildValueMap("sling:vanityPath",
 "/baa"));

Review Comment:
   yes



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@sling.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to