You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by gp...@apache.org on 2012/02/27 22:50:47 UTC

git commit: DELTASPIKE-74 tests for @Secured

Updated Branches:
  refs/heads/master a820478fc -> 2b0b87739


DELTASPIKE-74 tests for @Secured


Project: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/commit/2b0b8773
Tree: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/tree/2b0b8773
Diff: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/diff/2b0b8773

Branch: refs/heads/master
Commit: 2b0b87739702c0ad1ab310e78f2cf5579b1c1304
Parents: a820478
Author: gpetracek <gp...@apache.org>
Authored: Mon Feb 27 22:50:06 2012 +0100
Committer: gpetracek <gp...@apache.org>
Committed: Mon Feb 27 22:50:06 2012 +0100

----------------------------------------------------------------------
 .../impl/secured/SecuredAnnotationTest.java        |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/2b0b8773/deltaspike/modules/security/impl/src/test/java/org/apache/deltaspike/test/security/impl/secured/SecuredAnnotationTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/security/impl/src/test/java/org/apache/deltaspike/test/security/impl/secured/SecuredAnnotationTest.java b/deltaspike/modules/security/impl/src/test/java/org/apache/deltaspike/test/security/impl/secured/SecuredAnnotationTest.java
index c0979d3..9e62870 100644
--- a/deltaspike/modules/security/impl/src/test/java/org/apache/deltaspike/test/security/impl/secured/SecuredAnnotationTest.java
+++ b/deltaspike/modules/security/impl/src/test/java/org/apache/deltaspike/test/security/impl/secured/SecuredAnnotationTest.java
@@ -27,7 +27,6 @@ import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.shrinkwrap.api.ShrinkWrap;
 import org.jboss.shrinkwrap.api.asset.Asset;
-import org.jboss.shrinkwrap.api.asset.EmptyAsset;
 import org.jboss.shrinkwrap.api.asset.StringAsset;
 import org.jboss.shrinkwrap.api.spec.WebArchive;
 import org.junit.Assert;
@@ -46,6 +45,7 @@ public class SecuredAnnotationTest
     @Deployment
     public static WebArchive deploy()
     {
+        //X TODO remove this workaround
         boolean isOwbAvailable = ClassUtils.tryToLoadClassForName("org.apache.webbeans.spi.ContainerLifecycle") != null;
 
         String[] excludedFiles;
@@ -94,7 +94,7 @@ public class SecuredAnnotationTest
         }
     }
 
-    //@Test
+    @Test
     public void interceptorTestWithStereotype()
     {
         SecuredBean2 testBean = BeanProvider.getContextualReference(SecuredBean2.class, false);
@@ -112,7 +112,7 @@ public class SecuredAnnotationTest
         }
     }
 
-    //@Test
+    @Test
     public void simpleInterceptorTestOnMethods()
     {
         SecuredBean3 testBean = BeanProvider.getContextualReference(SecuredBean3.class, false);