/*
  * @see TestCase#setUp()
  */
 protected void setUp() throws Exception {
   super.setUp();
   setAutoBuilding(true);
   IWorkspaceRoot root = getWorkspace().getRoot();
   project1 = root.getProject("Project1");
   project2 = root.getProject("Project2");
   project3 = root.getProject("Project3");
   project4 = root.getProject("Project4");
   file1 = project1.getFile("File1");
   file2 = project2.getFile("File2");
   file3 = project3.getFile("File3");
   file4 = project4.getFile("File4");
   IResource[] resources = {project1, project2, project3, project4, file1, file2, file3, file4};
   ensureExistsInWorkspace(resources, true);
 }
 /*
  * @see TestCase#tearDown()
  */
 protected void tearDown() throws Exception {
   super.tearDown();
   getWorkspace().getRoot().delete(true, getMonitor());
 }