steinarb commented on code in PR #2869:
URL: https://github.com/apache/shiro/pull/2869#discussion_r3835273320


##########
support/aspectj/src/test/java/org/apache/shiro/aspectj/DummyServiceTest.java:
##########
@@ -203,4 +203,11 @@ void testRetrieveRestricted_asAdmin() throws Exception {
         restrictedService.retrieve();
     }
 
+    @Test
+    void testStaticMethodOnClassLevelRequiresRoles_asUser() throws Exception {
+        assertThatExceptionOfType(UnauthorizedException.class).isThrownBy(() 
-> {

Review Comment:
   (FWIW I am an AssertJ fan, but I have ended up on using JUnit5 assertThrows 
instead of the AssertJ variant, because they feel more compact and readable. I 
use AssertJ for everything else though)



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