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);
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() {