doCodeCompletion(file, 0, results);
}
protected void checkModuleExists(IFile file, String moduleName, boolean exists) {
BundlePath bundlePath = BundlePath.create(file.getProject().getLocation().toFile().toPath());
BundleResolution sr;
try {
sr = client.getServerSemanticManager().getUpdatedResolution(bundlePath);
} catch (ExecutionException e) {
throw melnorme.utilbox.core.ExceptionAdapter.unchecked(e);
}
HashSet<String> modules = sr.findModules(moduleName);
assertTrue(modules.contains(moduleName) == exists);
}