Improve code coverage for aaf authz modules
[aaf/authz.git] / authz-cmd / src / test / java / org / onap / aaf / cmd / JU_Help.java
index c51246b..f48d71e 100644 (file)
@@ -62,10 +62,31 @@ public class JU_Help {
        @Test\r
        public void exec_HTTP_200() {\r
                try {\r
-                       assertEquals(help._exec(0, "helps"), HttpStatus.OK_200);\r
+                       assertEquals(help._exec(1, "helps"), HttpStatus.OK_200);\r
                } catch (CadiException | APIException | LocatorException e) {\r
                        // TODO Auto-generated catch block\r
                        e.printStackTrace();\r
                }\r
        }\r
+       \r
+       @Test\r
+       public void exec_HTTP_200_1() {\r
+               try {\r
+                       assertEquals(help._exec(1, "helps","help"), HttpStatus.OK_200);\r
+               } catch (CadiException | APIException | LocatorException e) {\r
+                       // TODO Auto-generated catch block\r
+                       e.printStackTrace();\r
+               }\r
+       }\r
+       \r
+       @Test\r
+       public void detailhelp() {\r
+               boolean hasError=false;\r
+               try {\r
+                       help.detailedHelp(2, new StringBuilder("detail help test"));\r
+               } catch (Exception e) {\r
+                       hasError=true;\r
+               }\r
+               assertEquals(hasError,false);\r
+       }\r
 }\r