X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fauth-cmd%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Faaf%2Fauth%2Fcmd%2Ftest%2Fns%2FJU_Attrib.java;h=181b45261e12af15c53919af4c6e4c8265b7391d;hb=3aca33c5bb9af1ba4df574ceb90435f54d14ccf5;hp=3dd338fec97d8b4efd891672a7bd79b57f3c4650;hpb=06e9aa2931545ac8e193e4404af78a83a8ba794f;p=aaf%2Fauthz.git diff --git a/auth/auth-cmd/src/test/java/org/onap/aaf/auth/cmd/test/ns/JU_Attrib.java b/auth/auth-cmd/src/test/java/org/onap/aaf/auth/cmd/test/ns/JU_Attrib.java index 3dd338fe..181b4526 100644 --- a/auth/auth-cmd/src/test/java/org/onap/aaf/auth/cmd/test/ns/JU_Attrib.java +++ b/auth/auth-cmd/src/test/java/org/onap/aaf/auth/cmd/test/ns/JU_Attrib.java @@ -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 secSet = mock(SecuritySetter.class); + @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://www.oracle.com/technetwork/java/index.html"); + when(loc.get(value)).thenReturn(uri); + SecuritySetter 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() {