HandleException(ex);
Assert.fail("unexpected failure");
}
int found1 = 0;
FindService fb = new FindService();
fb.setAuthInfo(authInfoJoe);
n = new Name();
n.setValue("%");
fb.getName().add(n);
fb.setFindQualifiers(new FindQualifiers());
fb.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
try {
ServiceList findBusiness = inquiry.findService(fb);
if (findBusiness.getServiceInfos() != null) {
for (int i = 0; i < findBusiness.getServiceInfos().getServiceInfo().size(); i++) {
if (targetServiceKeys.contains(findBusiness.getServiceInfos().getServiceInfo().get(i).getServiceKey())) {
found1++;
}
}
}
} catch (Exception ex) {
HandleException(ex);
Assert.fail("unexpected failure");
}
if (found1 != 2) {
failuremsg += "No lang defined, " + found1 + " records found instead of 2";
}
found1 = 0;
fb = new FindService();
fb.setAuthInfo(authInfoJoe);
n = new Name();
n.setLang("en");
n.setValue("%");
fb.getName().add(n);
fb.setFindQualifiers(new FindQualifiers());
fb.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
try {
ServiceList findBusiness = inquiry.findService(fb);
if (findBusiness.getServiceInfos() != null) {
for (int i = 0; i < findBusiness.getServiceInfos().getServiceInfo().size(); i++) {
if (businesskeysToDelete.contains(findBusiness.getServiceInfos().getServiceInfo().get(i).getBusinessKey())) {