bkkothari2255 commented on PR #69: URL: https://github.com/apache/sling-org-apache-sling-models-impl/pull/69#issuecomment-3735874728
> Alternatively, you can satisfy the sonar check by declaring that no exceptions are expected with something like this in the Test annotation: > > ` @Test(expected = org.junit.Test.None.class)` Thank you for the suggestion! I’m a bit hesitant to use the annotation since it adds redundancy (it’s the default) and might slightly complicate the future JUnit 5 migration. Would adding an explicit assertion be an acceptable alternative to satisfy Sonar? -- 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]
