adamcin commented on code in PR #135:
URL: https://github.com/apache/sling-site/pull/135#discussion_r1355897991


##########
src/main/jbake/content/documentation/development/osgi-mock.md:
##########
@@ -231,3 +235,192 @@ More examples:
 [mockito-junit5-extension]: 
https://www.javadoc.io/page/org.mockito/mockito-junit-jupiter/latest/org/mockito/junit/jupiter/MockitoExtension.html
 [caconfig-mock-plugin]: 
https://github.com/apache/sling-org-apache-sling-testing-caconfig-mock-plugin/blob/master/src/main/java/org/apache/sling/testing/mock/caconfig/ContextPlugins.java
 [caconfig-mock-plugin-test]: 
https://github.com/apache/sling-org-apache-sling-testing-caconfig-mock-plugin/blob/master/src/test/java/org/apache/sling/testing/mock/caconfig/ContextPluginsTest.java
+
+## Config Annotations
+
+Since osgi-mock 3.4.0, it is possible to use the provided `@UpdateConfig` and 
`@ApplyConfig` annotations to directly construct component property type 
("Config") annotations for use as first-class values in unit tests. Both 
osgi-mock.junit4 and osgi-mock.junit5 provide different approaches for 
convenient reflection and injection of these annotations.

Review Comment:
   @stefanseifert I decided to rename `@ApplyConfig` to `@ConfigType` after 
spending time on the javadocs and refactoring the related logic out of 
OsgiContextImpl. I've added the guidance to the page. 



-- 
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