summaryrefslogtreecommitdiffstats
path: root/shiro/src/test
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2019-02-22 16:19:44 -0600
committerInstrumental <jonathan.gathman@att.com>2019-02-22 17:28:05 -0600
commit004851a114cc06933368ffe55fd58f0d010debb0 (patch)
tree87d8df95dba8c038e11f6d59b82205d6cdd5427d /shiro/src/test
parent4a698c2e3d926fd69673eea8b15a78bc7770a29c (diff)
Choose better Concurrency Object
Issue-ID: AAF-771: Change-Id: I112120d380f34a86890b83889880337199e21f57 Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'shiro/src/test')
-rw-r--r--shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java b/shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java
index f49ecb4..f159a8f 100644
--- a/shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java
+++ b/shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java
@@ -27,13 +27,14 @@ import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.authz.Permission;
import org.apache.shiro.subject.PrincipalCollection;
+import org.junit.Assert;
import org.junit.Test;
import org.onap.aaf.cadi.aaf.AAFPermission;
import org.onap.aaf.cadi.config.Config;
import org.onap.aaf.cadi.shiro.AAFRealm;
import org.onap.aaf.cadi.shiro.AAFShiroPermission;
-import junit.framework.Assert;
+
public class JU_AAFRealm {
@@ -58,6 +59,8 @@ public class JU_AAFRealm {
testAPerm(false,azi,"org.osaaf.nons","resources","something","get");
// testAPerm(true,azi,"name","org.access","something","*");
// testAPerm(false,azi,"org.accessX","something","*");
+
+ Assert.assertEquals(true,ar.supports(upt));
} catch (Throwable t) {
t.printStackTrace();
Assert.fail();