}
// Create when only have Access
- public AAFcli(Access access, Writer wtr, HMangr hman, SecurityInfoC<HttpURLConnection> si, SecuritySetter<HttpURLConnection> ss) throws APIException {
+ public AAFcli(Access access, Writer wtr, HMangr hman, SecurityInfoC<HttpURLConnection> si, SecuritySetter<HttpURLConnection> ss) throws APIException, CadiException {
this(access,new AuthzEnv(access.getProperties()),wtr,hman, si,ss);
}
- public AAFcli(Access access, AuthzEnv env, Writer wtr, HMangr hman, SecurityInfoC<HttpURLConnection> si, SecuritySetter<HttpURLConnection> ss) throws APIException {
+ public AAFcli(Access access, AuthzEnv env, Writer wtr, HMangr hman, SecurityInfoC<HttpURLConnection> si, SecuritySetter<HttpURLConnection> ss) throws APIException, CadiException {
this.env = env;
this.access = access;
this.ss = ss;
close = true;
}
-
/*
* Create Cmd Tree
*/
assertTrue(cli.eval("Some random string @#&*& to check complete 100 coverage"));
}
- public static AAFcli getAAfCli() throws APIException, LocatorException, GeneralSecurityException, IOException {
+ public static AAFcli getAAfCli() throws APIException, LocatorException, GeneralSecurityException, IOException, CadiException {
final AuthzEnv env = new AuthzEnv(System.getProperties());
String aafUrl = "https://DME2RESOLVE";
SecurityInfoC<HttpURLConnection> si = mock(SecurityInfoC.class);
private static BaseCmd bCmd;
@BeforeClass
- public static void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException {
+ public static void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException, CadiException {
cli = JU_AAFCli.getAAfCli();
bCmd = new BaseCmd<>(cli, "testString");
}
}
@Before
- public void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException {
+ public void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException, CadiException {
cli = JU_AAFCli.getAAfCli();
Param[] param = new Param[] {new Param("name",true)};
private static List<Cmd> cmds;
@Before
- public void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException {
+ public void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException, CadiException {
cli = JU_AAFCli.getAAfCli();
cmds = new ArrayList<>();
Param[] param = new Param[] {new Param("name",true)};
private static Version version;
@BeforeClass
- public static void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException {
+ public static void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException, CadiException {
cli = JU_AAFCli.getAAfCli();
version = new Version(cli);
}
AAFcli aafcli;
@Before
- public void setUp() throws APIException, LocatorException {
+ public void setUp() throws APIException, LocatorException, CadiException {
prop = new PropAccess();
aEnv = new AuthzEnv();
wtr = mock(Writer.class);
AAFcli aafcli;
@Before
- public void setUp() throws LocatorException, APIException {
+ public void setUp() throws LocatorException, APIException, CadiException {
prop = new PropAccess();
aEnv = new AuthzEnv();
wtr = mock(Writer.class);
AAFcli aafcli;
@Before
- public void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException {
+ public void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException, CadiException {
prop = new PropAccess();
aEnv = new AuthzEnv();
wtr = mock(Writer.class);
import org.onap.aaf.auth.cmd.ns.List;
import org.onap.aaf.auth.cmd.ns.NS;
import org.onap.aaf.auth.env.AuthzEnv;
+import org.onap.aaf.cadi.CadiException;
import org.onap.aaf.cadi.Locator;
import org.onap.aaf.cadi.LocatorException;
import org.onap.aaf.cadi.PropAccess;
@Before
- public void setUp() throws APIException, LocatorException {
+ public void setUp() throws APIException, LocatorException, CadiException {
PropAccess prop = new PropAccess();
AuthzEnv aEnv = new AuthzEnv();
Writer wtr = mock(Writer.class);
import org.onap.aaf.auth.cmd.ns.ListUsers;
import org.onap.aaf.auth.cmd.ns.NS;
import org.onap.aaf.auth.cmd.test.JU_AAFCli;
+import org.onap.aaf.cadi.CadiException;
import org.onap.aaf.cadi.LocatorException;
import org.onap.aaf.misc.env.APIException;
ListUsers lUsers;
@Before
- public void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException {
+ public void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException, CadiException {
cli = JU_AAFCli.getAAfCli();
ns = new NS(cli);
list = new List(ns);
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);
}
@Before
- public void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException{
+ public void setUp() throws APIException, LocatorException, GeneralSecurityException, IOException, CadiException{
prop = new PropAccess();
aEnv = new AuthzEnv();
wtr = mock(Writer.class);
AAFcli aafcli;
@Before
- public void setUp() throws FileNotFoundException, APIException, LocatorException {
+ public void setUp() throws FileNotFoundException, APIException, LocatorException, CadiException {
prop = new PropAccess();
aEnv = new AuthzEnv();
wtr = mock(Writer.class);
AAFcli aafcli;
@Before
- public void setUp() throws FileNotFoundException, APIException, LocatorException {
+ public void setUp() throws FileNotFoundException, APIException, LocatorException, CadiException {
prop = new PropAccess();
aEnv = new AuthzEnv();
wtr = mock(Writer.class);
if(ok.length()>0) {
return Result.err(Status.ERR_BadData,ok);
}
-
} else {
to.type=0;
}