Configuration and Auto-Certificates
[aaf/authz.git] / cadi / core / src / test / java / org / onap / aaf / cadi / test / JU_AbsUserCache.java
index b2739b9..b34e90a 100644 (file)
@@ -113,7 +113,7 @@ public class JU_AbsUserCache {
                expected.append(String.valueOf(cleanInterval));
                expected.append(" ms and max objects of ");
                expected.append(String.valueOf(maxInterval));
-               expected.append("\n");
+               expected.append(System.lineSeparator());
                assertThat(output, is(expected.toString()));
 
                outStream.reset();
@@ -124,7 +124,7 @@ public class JU_AbsUserCache {
                expected.append(String.valueOf(cleanInterval));
                expected.append(" ms and max objects of ");
                expected.append(String.valueOf(maxInterval));
-               expected.append("\n");
+               expected.append(System.lineSeparator());
                assertThat(output, is(expected.toString()));
 
                AbsUserCacheStub<Permission> aucs3 = new AbsUserCacheStub<Permission>(access, 0, 0, Integer.MAX_VALUE);
@@ -284,10 +284,10 @@ public class JU_AbsUserCache {
                assertThat(dumpInfo.size(), is(2));
 
                // Utility lists
-               List<String> names = new ArrayList<String>();
+               List<String> names = new ArrayList<>();
                names.add(name1);
                names.add(name2);
-               List<String> permissions = new ArrayList<String>();
+               List<String> permissions = new ArrayList<>();
                permissions.add("NewKey1");
                permissions.add("NewKey2");
 
@@ -350,7 +350,7 @@ public class JU_AbsUserCache {
        class AbsUserCacheCLStub<PERM extends Permission> extends AbsUserCache<PERM> implements CachingLur<PERM> {
                public AbsUserCacheCLStub(AbsUserCache<PERM> cache) { super(cache); }
                @Override public Permission createPerm(String p) { return null; }
-               @Override public boolean fish(Principal bait, Permission pond) { return false; }
+               @Override public boolean fish(Principal bait, Permission ... pond) { return false; }
                @Override public void fishAll(Principal bait, List<Permission> permissions) { }
                @Override public boolean handles(Principal principal) { return false; }
                @Override public Resp reload(User<PERM> user) { return null; }