adamcin commented on PR #31:
URL: 
https://github.com/apache/sling-org-apache-sling-testing-osgi-mock/pull/31#issuecomment-1759690025

   > i like the `@AutoConfig(MyService.class)` proposal. do you have to apply 
this annotation on test class level, or is it alternatively also possible to 
apply it on single test methods, in case you want more control?
   > 
   > which brings me to another question: consider you have the use case to 
apply a certain osgi config to all tests in a test class. can you apply the 
config annotations or ConfigType/UpdateConfig also on class level? (but that 
makes it more complicated to handle cases when there are used both on class 
level and method level, with different config values)
   
   @stefanseifert My thinking is that would only make sense for one 
`@AutoConfig` annotation to apply to any test, but annotating a `@Test` with 
one would take precedence over a class annotation.


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