Failing JUs
[aaf/authz.git] / auth / auth-batch / src / test / java / org / onap / aaf / auth / batch / reports / bodies / JU_AbsCredBodyTest.java
 
 package org.onap.aaf.auth.batch.reports.bodies;
 
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
 import org.junit.Assert;
 import org.junit.Test;
 import org.onap.aaf.auth.batch.reports.Notify;
 import org.onap.aaf.auth.env.AuthzTrans;
 
-import java.util.Collections;
-import java.util.List;
-
-import static org.junit.Assert.*;
-
-public class AbsCredBodyTest {
+public class JU_AbsCredBodyTest {
 
     @Test
     public void testUserWithValue() {
-        String testStr = "test";
-        List<String> row = Collections.singletonList(testStr);
+        List<String> row = new ArrayList<>();
+        row.add("test");
+        row.add("user");
         AbsCredBody absCredBody = new AbsCredBody("") {
             @Override
             public String body(AuthzTrans trans, Notify n, String id) {
                 return null;
             }
         };
-        Assert.assertEquals(testStr, absCredBody.user(row));
+        Assert.assertEquals("user", absCredBody.user(row));
     }
 
     @Test
     public void testUserWithoutValue() {
         //String testStr = "test";
-        List<String> row = Collections.EMPTY_LIST;
+        List<String> row = Collections.emptyList();
         AbsCredBody absCredBody = new AbsCredBody("") {
             @Override
             public String body(AuthzTrans trans, Notify n, String id) {