public void testInterfaceRenameWithInvalidCharacter() {
   createElement("Newinterface", testPackage);
   Interface_c[] is =
       Interface_c.getManyC_IsOnR8001(PackageableElement_c.getManyPE_PEsOnR8000(testPackage));
   Interface_c i = is[is.length - 1];
   UITestingUtilities.addElementToGraphicalSelection(i);
   doRenameTest(INVALID_CHAR_ERROR, "*");
 }
 public void testRenameInterfaceNoName() {
   createElement("Newinterface", testPackage);
   Interface_c[] is =
       Interface_c.getManyC_IsOnR8001(PackageableElement_c.getManyPE_PEsOnR8000(testPackage));
   Interface_c i = is[is.length - 1];
   UITestingUtilities.addElementToGraphicalSelection(i);
   doRenameTest(Messages.resources_nameEmpty, "");
 }
 public void testInterfaceSignalWithSpaces() {
   createElement("Newinterface", testPackage);
   Interface_c[] ifaces =
       Interface_c.getManyC_IsOnR8001(PackageableElement_c.getManyPE_PEsOnR8000(testPackage));
   Interface_c iface = ifaces[ifaces.length - 1];
   UITestingUtilities.addElementToGraphicalSelection(iface);
   doNewCMETest("Signal", CorePlugin.INVALID_NAME_SPACES);
 }
 public void testRenameInterfaceExistingFolder() 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("Newinterface", testPackage);
   Interface_c[] is =
       Interface_c.getManyC_IsOnR8001(PackageableElement_c.getManyPE_PEsOnR8000(testPackage));
   Interface_c i = is[is.length - 1];
   UITestingUtilities.addElementToGraphicalSelection(i);
   doRenameTest(EXISTING_FOLDER_ERROR, getName());
 }