Pankraz76 commented on code in PR #2373:
URL: https://github.com/apache/maven/pull/2373#discussion_r2132002038


##########
impl/maven-impl/src/test/java/org/apache/maven/impl/model/DefaultModelInterpolatorTest.java:
##########
@@ -484,16 +505,16 @@ public void 
shouldInterpolateSourceDirectoryReferencedFromResourceDirectoryCorre
                                 .build()))
                         .build())
                 .build();
-
-        final SimpleProblemCollector collector = new SimpleProblemCollector();
-        Model out = interpolator.interpolateModel(
-                model, null, createModelBuildingRequest(context).build(), 
collector);
+        String sourceDirectory = interpolator
+                .interpolateModel(
+                        model, null, 
createModelBuildingRequest(context).build(), collector)
+                .getBuild()
+                .getResources()
+                .iterator()
+                .next()
+                .getDirectory();
+        assertEquals(model.getBuild().getSourceDirectory(), sourceDirectory);
         assertCollectorState(0, 0, 0, collector);

Review Comment:
   this is now actually second assertion. Why does not change after test 
ramp-up?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to