public void testClassRenameWithInvalidCharacter() {
   createElement("Newclass", testPackage);
   ModelClass_c[] objs =
       ModelClass_c.getManyO_OBJsOnR8001(PackageableElement_c.getManyPE_PEsOnR8000(testPackage));
   ModelClass_c obj = objs[objs.length - 1];
   UITestingUtilities.addElementToGraphicalSelection(obj);
   doRenameTest(INVALID_CHAR_ERROR, "*");
 }
 public void testRenameClassNoName() {
   createElement("Newclass", testPackage);
   ModelClass_c[] objs =
       ModelClass_c.getManyO_OBJsOnR8001(PackageableElement_c.getManyPE_PEsOnR8000(testPackage));
   ModelClass_c obj = objs[objs.length - 1];
   UITestingUtilities.addElementToGraphicalSelection(obj);
   doRenameTest(Messages.resources_nameEmpty, "");
 }
 public void testOperationWithSpaces() {
   createElement("Newclass", testPackage);
   ModelClass_c[] classes =
       ModelClass_c.getManyO_OBJsOnR8001(PackageableElement_c.getManyPE_PEsOnR8000(testPackage));
   ModelClass_c clazz = classes[classes.length - 1];
   UITestingUtilities.addElementToGraphicalSelection(clazz);
   doNewCMETest("Operation", CorePlugin.INVALID_NAME_SPACES);
 }
 public void testRenameClassExistingFolder() throws CoreException {
   // create existing folder first
   ResourcesPlugin.getWorkspace()
       .getRoot()
       .getFolder(new Path(testPackage.getFile().getParent().getFullPath() + "/" + getName()))
       .create(true, true, new NullProgressMonitor());
   BaseTest.dispatchEvents(0);
   createElement("Newclass", testPackage);
   ModelClass_c[] objs =
       ModelClass_c.getManyO_OBJsOnR8001(PackageableElement_c.getManyPE_PEsOnR8000(testPackage));
   ModelClass_c obj = objs[objs.length - 1];
   UITestingUtilities.addElementToGraphicalSelection(obj);
   doRenameTest(EXISTING_FOLDER_ERROR, getName());
 }