Hy.
I try to write JUnit test for some plugins and what I need to do is to veify if a plugin exists in my workspace. I think I need to open that plugun programmatically usig it's id or to open the workspace an to verify if my plugins are there, but I have no ideea how to do this. I tryed this:

IWorkspace root = ResourcesPlugin.getWorkspace();
IProject[] projects = root.getRoot().getProjects();

for(int i = 0; i<projects.length; i++){

System.out.println(projects[i].getName());
}

It seems that projects has lenght = 0.

Could you help me?
Thanks.