arturobernalg commented on code in PR #13539:
URL: https://github.com/apache/maven/pull/13539#discussion_r4295883051
##########
impl/maven-core/src/test/java/org/apache/maven/internal/impl/EventSpyImplTest.java:
##########
@@ -128,6 +141,94 @@ public void sessionStarted(ExecutionEvent event) {
assertEquals(1, calls.get());
}
+ @Test
+ void forwardsSuccessfulDependencyResolution() throws Exception {
+ TestContext context = new TestContext(lookup());
+ RecordingResolutionListener listener = new
RecordingResolutionListener();
+ context.session.registerListener(listener);
+ Dependency dependency = new Dependency(new DefaultArtifact("g:a:1"),
"compile");
+ DependencyResolutionResult result = result(List.of(dependency),
List.of(), List.of());
+
+ EventSpyImpl spy = new EventSpyImpl();
+ DependencyResolutionRequest request = context.resolution();
Review Comment:
Added a Javadoc on the test in 922162f saying it only pins the request
pairing and does not exercise the weak reference.
--
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]