You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by lh...@apache.org on 2010/03/19 03:06:13 UTC

svn commit: r925079 - in /incubator/shiro/trunk/core/src/test/java/org/apache/shiro/authz/aop: PermissionAnnotationHandlerTest.java RoleAnnotationHandlerTest.java

Author: lhazlewood
Date: Fri Mar 19 02:06:13 2010
New Revision: 925079

URL: http://svn.apache.org/viewvc?rev=925079&view=rev
Log:
SHIRO-146: added quick comments linking the tests back to the target Jira issue

Modified:
    incubator/shiro/trunk/core/src/test/java/org/apache/shiro/authz/aop/PermissionAnnotationHandlerTest.java
    incubator/shiro/trunk/core/src/test/java/org/apache/shiro/authz/aop/RoleAnnotationHandlerTest.java

Modified: incubator/shiro/trunk/core/src/test/java/org/apache/shiro/authz/aop/PermissionAnnotationHandlerTest.java
URL: http://svn.apache.org/viewvc/incubator/shiro/trunk/core/src/test/java/org/apache/shiro/authz/aop/PermissionAnnotationHandlerTest.java?rev=925079&r1=925078&r2=925079&view=diff
==============================================================================
--- incubator/shiro/trunk/core/src/test/java/org/apache/shiro/authz/aop/PermissionAnnotationHandlerTest.java (original)
+++ incubator/shiro/trunk/core/src/test/java/org/apache/shiro/authz/aop/PermissionAnnotationHandlerTest.java Fri Mar 19 02:06:13 2010
@@ -30,6 +30,8 @@ import java.lang.annotation.Annotation;
  */
 public class PermissionAnnotationHandlerTest extends SecurityManagerTestSupport {
 
+    //Added to satisfy SHIRO-146
+
     @Test(expected = UnauthenticatedException.class)
     public void testGuestSinglePermissionAssertion() throws Throwable {
         PermissionAnnotationHandler handler = new PermissionAnnotationHandler();
@@ -47,6 +49,8 @@ public class PermissionAnnotationHandler
         handler.assertAuthorized(requiresPermissionAnnotation);
     }
 
+    //Added to satisfy SHIRO-146
+
     @Test(expected = UnauthenticatedException.class)
     public void testGuestMultiplePermissionAssertion() throws Throwable {
         PermissionAnnotationHandler handler = new PermissionAnnotationHandler();

Modified: incubator/shiro/trunk/core/src/test/java/org/apache/shiro/authz/aop/RoleAnnotationHandlerTest.java
URL: http://svn.apache.org/viewvc/incubator/shiro/trunk/core/src/test/java/org/apache/shiro/authz/aop/RoleAnnotationHandlerTest.java?rev=925079&r1=925078&r2=925079&view=diff
==============================================================================
--- incubator/shiro/trunk/core/src/test/java/org/apache/shiro/authz/aop/RoleAnnotationHandlerTest.java (original)
+++ incubator/shiro/trunk/core/src/test/java/org/apache/shiro/authz/aop/RoleAnnotationHandlerTest.java Fri Mar 19 02:06:13 2010
@@ -27,6 +27,8 @@ import java.lang.annotation.Annotation;
  */
 public class RoleAnnotationHandlerTest extends SecurityManagerTestSupport {
 
+    //Added to satisfy SHIRO-146
+
     @Test(expected = UnauthenticatedException.class)
     public void testGuestSingleRoleAssertion() throws Throwable {
         RoleAnnotationHandler handler = new RoleAnnotationHandler();
@@ -44,6 +46,8 @@ public class RoleAnnotationHandlerTest e
         handler.assertAuthorized(requiresRolesAnnotation);
     }
 
+    //Added to satisfy SHIRO-146
+
     @Test(expected = UnauthenticatedException.class)
     public void testGuestMultipleRolesAssertion() throws Throwable {
         RoleAnnotationHandler handler = new RoleAnnotationHandler();