AbstractConfigFormPage formPage = cEditor.getFormPageForUri(uri);
if (formPage != null) {
boolean foundItem = false;
List<String> uris = new ArrayList<String>();
for (TableItem item : checkViewer.getTable().getItems()) {
INamespaceDefinition nsDef = (INamespaceDefinition) item.getData();
String currentUri = nsDef.getNamespaceURI();
uris.add(currentUri);
if (item.getChecked() && nsDef.getNamespaceURI().equals(formPage.getNamespaceUri())) {
foundItem = true;
}
}
assertTrue("Expected to find " + uri + " but found " + uris + " instead.", foundItem);
}