HandleException(ex);
Assert.fail("unexpected failure");
}
int found1 = 0;
FindTModel fb = new FindTModel();
fb.setAuthInfo(authInfoJoe);
n = new Name();
n.setValue("%JUDDI_571_Part3_Test%");
fb.setName(n);
fb.setFindQualifiers(new FindQualifiers());
fb.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
try {
TModelList findTModel = inquiry.findTModel(fb);
if (findTModel.getTModelInfos() != null) {
for (int i = 0; i < findTModel.getTModelInfos().getTModelInfo().size(); i++) {
if (businesskeysToDelete.contains(findTModel.getTModelInfos().getTModelInfo().get(i).getTModelKey())) {
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 FindTModel();
fb.setAuthInfo(authInfoJoe);
n = new Name();
n.setLang("en");
n.setValue("%JUDDI_571_Part3_Test%");
fb.setName(n);
fb.setFindQualifiers(new FindQualifiers());
fb.getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);
try {
TModelList findTModel = inquiry.findTModel(fb);
if (findTModel.getTModelInfos() != null) {
for (int i = 0; i < findTModel.getTModelInfos().getTModelInfo().size(); i++) {
if (businesskeysToDelete.contains(findTModel.getTModelInfos().getTModelInfo().get(i).getTModelKey())) {