Fix Class Compare 81/79381/1 2.1.13
authorInstrumental <jonathan.gathman@att.com>
Thu, 28 Feb 2019 16:32:39 +0000 (10:32 -0600)
committerInstrumental <jonathan.gathman@att.com>
Thu, 28 Feb 2019 16:32:59 +0000 (10:32 -0600)
Issue-ID: AAF-771
Change-Id: I4ae41def8830939651d64954c1479f2f5dece82d
Signed-off-by: Instrumental <jonathan.gathman@att.com>
pom.xml
shiro/src/main/java/org/onap/aaf/cadi/shiro/AAFRealm.java
shiro/src/test/java/org/onap/aaf/cadi/shiro/test/JU_AAFRealm.java
version.properties

diff --git a/pom.xml b/pom.xml
index d385804..80a8fce 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                <version>1.3.2</version>
                        </dependency>
                
-                       
+                       <dependency>
+                       <groupId>ch.qos.logback</groupId>
+                           <artifactId>logback-classic</artifactId>
+                           <version>1.2.3</version>
+                       <scope>test</scope>
+                       </dependency>
                        
                        <!-- 
 
index c455a4d..eb8bc60 100644 (file)
@@ -297,7 +297,7 @@ public class AAFRealm extends AuthorizingRealm {
        @Override
        public boolean supports(AuthenticationToken token) {
                // Only one was being loaded.  If more are needed uncomment the multi-class mode
-               return UsernamePasswordToken.class.equals(token);
+               return token instanceof UsernamePasswordToken;
 //             return singleton.supports.contains(token.getClass());
        }
 
index f159a8f..9b9c295 100644 (file)
@@ -38,6 +38,7 @@ import org.onap.aaf.cadi.shiro.AAFShiroPermission;
 
 public class JU_AAFRealm {
 
+//@Test
  public void test() {
        // NOTE This is a live test.  This JUnit needs to be built with "Mock" before it can be 
        // an official JUNIT
index cb8a88f..9b2b66e 100644 (file)
@@ -25,7 +25,7 @@
 # Note that these variables cannot be structured (e.g. : version.release or version.snapshot etc... )
 # because they are used in Jenkins, whose plug-in doesn't support
 
-# This TAG 2.1.13 is here to help remember to change this file.  Keep it up to date with the following "real" entries:
+# This TAG <version>2.1.13</version> is here to help remember to change this file.  Keep it up to date with the following "real" entries:
 major=2
 minor=1
 patch=13