Increased auth cmd to 53 percent
[aaf/authz.git] / auth / auth-cmd / src / test / java / org / onap / aaf / auth / cmd / test / ns / JU_Attrib.java
index 3dd338f..2a8200d 100644 (file)
@@ -82,20 +82,26 @@ public class JU_Attrib {
                attrib = new Attrib(ns);
        }
 
-//     @Test
-//     public void testExec() throws APIException, LocatorException, CadiException, URISyntaxException {
-//             Item value = mock(Item.class);
-//             Locator.Item item = new Locator.Item() {
-//             };
-//             when(loc.best()).thenReturn(value);
-//             URI uri = new URI("http://java.sun.com/j2se/1.3/");
-//             when(loc.get(value)).thenReturn(uri);
-//             SecuritySetter<HttpURLConnection> secSet = mock(SecuritySetter.class);
-//             HRcli hcli = new HRcli(hman, uri, item, secSet);
-//             String[] strArr = {"add","upd","del","add","upd","del"};
-//             attrib._exec(0, strArr);
-//             
-//     }
+       @Test
+       public void testExec() throws APIException, LocatorException, CadiException, URISyntaxException {
+               Item value = mock(Item.class);
+               Locator.Item item = new Locator.Item() {
+               };
+               when(loc.best()).thenReturn(value);
+               URI uri = new URI("http://java.sun.com/j2se/1.3/");
+               when(loc.get(value)).thenReturn(uri);
+               SecuritySetter<HttpURLConnection> secSet = mock(SecuritySetter.class);
+               HRcli hcli = new HRcli(hman, uri, item, secSet);
+               String[] strArr = {"add","upd","del","add","upd","del"};
+               attrib._exec(0, strArr);
+               
+               String[] strArr1 = {"upd","del","add","upd","del","add"};
+               attrib._exec(0, strArr1);
+               
+               String[] strArr2 = {"del","add","upd","del","add","upd"};
+               attrib._exec(0, strArr2);
+               
+       }
 
        @Test
        public void detailedHelp() {