hosea commented on code in PR #1312:
URL: https://github.com/apache/wicket/pull/1312#discussion_r2570142494
##########
wicket-spring/src/test/java/org/apache/wicket/spring/injection/annot/AnnotProxyFieldValueFactoryDefaultCandidateTest.java:
##########
@@ -61,37 +150,47 @@ public void
shouldCreateProxyForUniqueDefaultCandidate_beanNameAmbiguous(final O
assertSame(defaultCandidate,
beanByClassLocator.locateProxyTarget());
}
-
private static Stream<Object> beans() {
return Stream.of(new SpringBeanInjectable(), new
JakartaInjectInjectable());
}
+
/**
- * Test creation fails with null springcontextlocator
+ * Mock for an object with some Jakarta-Inject annotations
*/
- @Test
- public void testNullContextLocator()
- {
- Assertions.assertThrows(IllegalArgumentException.class, () ->
new AnnotProxyFieldValueFactory(null));
- }
-
Review Comment:
This test will be added later again when migrating corresponding test from
AnnotProxyFieldFactoryTest...
--
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]