Increased coverage auth cmd perm
[aaf/authz.git] / auth / auth-cmd / src / test / java / org / onap / aaf / auth / cmd / test / perm / JU_ListByUser.java
index 751b240..d220d39 100644 (file)
@@ -42,17 +42,17 @@ import org.onap.aaf.misc.env.APIException;
 @RunWith(MockitoJUnitRunner.class)
 public class JU_ListByUser {
        
-//     private static ListByUser lsByName;
-//     
-//     @BeforeClass
-//     public static void setUp () throws NoSuchFieldException, SecurityException, Exception, IllegalAccessException {
-//             AAFcli cli = JU_AAFCli.getAAfCli();
-//             Role role = new Role(cli);
-//             Perm perm = new Perm(role);
-//             List ls = new List(perm);
-//             lsByName = new ListByUser(ls);
-//     }
-//     
+       private static ListByUser lsByName;
+       
+       @BeforeClass
+       public static void setUp () throws NoSuchFieldException, SecurityException, Exception, IllegalAccessException {
+               AAFcli cli = JU_AAFCli.getAAfCli();
+               Role role = new Role(cli);
+               Perm perm = new Perm(role);
+               List ls = new List(perm);
+               lsByName = new ListByUser(ls);
+       }
+       
 //     @Test
 //     public void exec() {
 //             try {
@@ -69,8 +69,9 @@ public class JU_ListByUser {
 //             }
 //     }
        
-       @Test                                           //TODO: Temporary fix AAF-111
-       public void netYetTested() {
-               Assert.assertTrue(true);
+       @Test
+       public void testDetailedHelp() {
+               StringBuilder sb = new StringBuilder();
+               lsByName.detailedHelp(0, sb);
        }
 }