if (tInfos == null)
Assert.fail("No result from find tModel operation");
List<TModelInfo> tiList = tInfos.getTModelInfo();
if (tiList == null || tiList.size() == 0)
Assert.fail("No result from find tModel operation");
TModelInfo tiOut = tiList.get(0);
TModel tmIn = (TModel)EntityCreator.buildFromDoc(TckTModel.JOE_PUBLISHER_TMODEL_XML, "org.uddi.api_v3");
assertEquals(tmIn.getTModelKey(), tiOut.getTModelKey());
assertEquals(tmIn.getName().getLang(), tiOut.getName().getLang());
assertEquals(tmIn.getName().getValue(), tiOut.getName().getValue());
TckValidator.checkDescriptions(tmIn.getDescription(), tiOut.getDescription());
}
catch(Exception e) {
logger.error(e.getMessage(), e);
Assert.fail("No exception should be thrown.");
}