Increased coverage auth cmd perm
[aaf/authz.git] / auth / auth-cmd / src / test / java / org / onap / aaf / auth / cmd / test / perm / JU_ListByRole.java
index d2d8978..c9302aa 100644 (file)
@@ -21,6 +21,7 @@
  ******************************************************************************/
 package org.onap.aaf.auth.cmd.test.perm;
 
+import org.junit.Assert;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.fail;
 
@@ -41,17 +42,17 @@ import org.onap.aaf.misc.env.APIException;
 @RunWith(MockitoJUnitRunner.class)
 public class JU_ListByRole {
        
-//     private static ListByRole lsByRole;
-//     
-//     @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);
-//             lsByRole = new ListByRole(ls);
-//     }
-//     
+       private static ListByRole lsByRole;
+       
+       @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);
+               lsByRole = new ListByRole(ls);
+       }
+       
 //     @Test
 //     public void exec() {
 //             try {
@@ -68,8 +69,9 @@ public class JU_ListByRole {
 //             }
 //     }
        
-       @Test                                           //TODO: Temporary fix AAF-111
-       public void netYetTested() {
-               fail("Tests not yet implemented");
+       @Test
+       public void testDetailedHelp() {
+               StringBuilder sb = new StringBuilder();
+               lsByRole.detailedHelp(0, sb);
        }
 }