Merge "System dependent separators"
[aaf/authz.git] / auth / auth-cmd / src / test / java / org / onap / aaf / auth / cmd / test / ns / JU_ListUsersContact.java
index 20a5f2c..536d70f 100644 (file)
@@ -67,7 +67,7 @@ public class JU_ListUsersContact {
        ListUsersContact lUContact;
        
        @Before
-       public void setUp() throws LocatorException, APIException {
+       public void setUp() throws LocatorException, APIException, CadiException {
                prop = new PropAccess();
                aEnv = new AuthzEnv();
                wtr = mock(Writer.class);
@@ -80,20 +80,20 @@ public class JU_ListUsersContact {
                lUsers = new ListUsers(list);
        }
        
-//     @Test
-//     public void testExec() throws APIException, LocatorException, CadiException, URISyntaxException {
-//             lUContact = new ListUsersContact(lUsers);
-//             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);
-//             lUContact._exec(0, "test");
-//             
-//     }
+       @Test
+       public void testExec() throws APIException, LocatorException, CadiException, URISyntaxException {
+               lUContact = new ListUsersContact(lUsers);
+               Item value = mock(Item.class);
+               Locator.Item item = new Locator.Item() {
+               };
+               when(loc.best()).thenReturn(value);
+               URI uri = new URI("http://www.oracle.com/technetwork/java/index.html");
+               when(loc.get(value)).thenReturn(uri);
+               SecuritySetter<HttpURLConnection> secSet = mock(SecuritySetter.class);
+               HRcli hcli = new HRcli(hman, uri, item, secSet);
+               //lUContact._exec(0, "test");
+               
+       }
        
        @Test
        public void testDetailedHelp() {