Commenting out exec to fix
[aaf/authz.git] / auth / auth-cmd / src / test / java / org / onap / aaf / auth / cmd / test / role / JU_ListByNameOnly.java
index f2106c4..6c2f1b4 100644 (file)
@@ -40,17 +40,17 @@ import org.onap.aaf.misc.env.APIException;
 
 @RunWith(MockitoJUnitRunner.class)
 public class JU_ListByNameOnly {
-//     
-//     private static ListByNameOnly lsByName;
-//     
-//     @BeforeClass
-//     public static void setUp () throws NoSuchFieldException, SecurityException, Exception, IllegalAccessException {
-//             AAFcli cli = JU_AAFCli.getAAfCli();
-//             Role role = new Role(cli);
-//             List ls = new List(role);
-//             lsByName = new ListByNameOnly(ls);
-//     }
-//     
+       
+       private static ListByNameOnly lsByName;
+       
+       @BeforeClass
+       public static void setUp () throws NoSuchFieldException, SecurityException, Exception, IllegalAccessException {
+               AAFcli cli = JU_AAFCli.getAAfCli();
+               Role role = new Role(cli);
+               List ls = new List(role);
+               lsByName = new ListByNameOnly(ls);
+       }
+       
 //     @Test
 //     public void exec() {
 //             try {
@@ -67,8 +67,14 @@ public class JU_ListByNameOnly {
 //             }
 //     }
        
-       @Test                                           //TODO: Temporary fix AAF-111
-       public void netYetTested() {
-               Assert.assertTrue(true);
+       @Test
+       public void detailedHelp() {
+               boolean hasNoError = true;
+               try {
+                       lsByName.detailedHelp(1, new StringBuilder("test"));
+               } catch (Exception e) {
+                       hasNoError = false;
+               }
+               assertEquals(hasNoError, true);
        }
 }