From 004851a114cc06933368ffe55fd58f0d010debb0 Mon Sep 17 00:00:00 2001 From: Instrumental Date: Fri, 22 Feb 2019 16:19:44 -0600 Subject: Choose better Concurrency Object Issue-ID: AAF-771: Change-Id: I112120d380f34a86890b83889880337199e21f57 Signed-off-by: Instrumental --- shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shiro/src/test/java/org/onap/aaf/cadi/shiro/test') 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(); -- cgit 1.2.3-korg