Skip to content

Commit a9b94d2

Browse files
author
jantje
committed
removed eclipse tests and renamed the cpp test
1 parent 53a057b commit a9b94d2

File tree

1 file changed

+1
-55
lines changed

1 file changed

+1
-55
lines changed

io.sloeber.tests/src/io/sloeber/core/RegressionTest.java

+1-55
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,9 @@
1111
import org.eclipse.cdt.core.model.CoreModel;
1212
import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
1313
import org.eclipse.cdt.core.settings.model.ICProjectDescription;
14-
import org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin;
1514
import org.eclipse.core.resources.IFile;
1615
import org.eclipse.core.resources.IProject;
17-
import org.eclipse.core.resources.IProjectDescription;
18-
import org.eclipse.core.resources.IWorkspace;
19-
import org.eclipse.core.resources.IWorkspaceDescription;
20-
import org.eclipse.core.resources.IWorkspaceRoot;
2116
import org.eclipse.core.resources.IncrementalProjectBuilder;
22-
import org.eclipse.core.resources.ResourcesPlugin;
2317
import org.eclipse.core.runtime.CoreException;
2418
import org.eclipse.core.runtime.IPath;
2519
import org.eclipse.core.runtime.NullProgressMonitor;
@@ -160,7 +154,7 @@ public void issue687() throws Exception {
160154
}
161155

162156
@Test
163-
public void createCPPProject() throws Exception {
157+
public void create_CPP_based_Sloeber_Project() throws Exception {
164158
BoardDescription unoBoardid = Arduino.uno().getBoardDescriptor();
165159

166160
IProject theTestProject = null;
@@ -420,56 +414,8 @@ public void closeProjectRemovesPropertiesSloeber() throws Exception {
420414
}
421415
}
422416

423-
@Test
424-
public void closeProjectRemovesProperties() throws Exception {
425-
String DummyData = "a object";
426-
String projectName = "closeProjectRemovesProperties";
427-
QualifiedName qualifiedName = new QualifiedName("io.sloebertest", projectName);
428-
IWorkspace workspace = ResourcesPlugin.getWorkspace();
429-
IWorkspaceRoot root = workspace.getRoot();
430-
final IProject project = root.getProject("closeProjectRemovesProperties");
431-
project.create(null);
432-
project.open(null);
433-
project.setSessionProperty(qualifiedName, DummyData);
434-
project.close(null);
435-
project.open(null);
436-
Object projData = project.getSessionProperty(qualifiedName);
437-
if (projData != null) {
438-
fail("non persistent projectdescription properties behave persistent during project close open");
439-
}
440-
}
441-
442-
@Test
443-
public void closeCDTProjectRemovesProperties() throws Exception {
444-
String DummyData = "a object";
445-
String projectName = "closeCDTProjectRemovesProperties";
446-
QualifiedName qualifiedName = new QualifiedName("io.sloebertest", projectName);
447-
448-
// disable autobuild
449-
IWorkspace workspace = ResourcesPlugin.getWorkspace();
450-
IWorkspaceDescription workspaceDesc = workspace.getDescription();
451-
workspaceDesc.setAutoBuilding(false);
452-
workspace.setDescription(workspaceDesc);
453-
454-
IWorkspaceRoot root = workspace.getRoot();
455-
final IProject project = root.getProject(projectName);
456417

457-
// create a eclipse project
458-
IProjectDescription description = workspace.newProjectDescription(projectName);
459418

460-
// make the eclipse project a cdt project
461-
CCorePlugin.getDefault().createCProject(description, project, new NullProgressMonitor(),
462-
ManagedBuilderCorePlugin.MANAGED_MAKE_PROJECT_ID);
463-
464-
project.open(null);
465-
project.setSessionProperty(qualifiedName, DummyData);
466-
project.close(null);
467-
project.open(null);
468-
Object projData = project.getSessionProperty(qualifiedName);
469-
if (projData != null) {
470-
fail("non persistent projectdescription properties behave persistent during project close open");
471-
}
472-
}
473419

474420
/**
475421
* open and close a project should keep the compileDescription and

0 commit comments

Comments
 (0)