aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/test/java/org/sonar/batch/index/DefaultResourcePersisterTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-batch/src/test/java/org/sonar/batch/index/DefaultResourcePersisterTest.java')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/index/DefaultResourcePersisterTest.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/index/DefaultResourcePersisterTest.java b/sonar-batch/src/test/java/org/sonar/batch/index/DefaultResourcePersisterTest.java
index a89a72bdd87..c4c7dfd4093 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/index/DefaultResourcePersisterTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/index/DefaultResourcePersisterTest.java
@@ -30,7 +30,6 @@ import org.sonar.api.resources.File;
import org.sonar.api.resources.Library;
import org.sonar.api.resources.Project;
import org.sonar.api.security.ResourcePermissions;
-import org.sonar.api.utils.SonarException;
import org.sonar.jpa.test.AbstractDbUnitTestCase;
import java.text.ParseException;
@@ -122,22 +121,6 @@ public class DefaultResourcePersisterTest extends AbstractDbUnitTestCase {
checkTables("shouldSaveNewMultiModulesProject", new String[] {"build_date", "created_at"}, "projects", "snapshots");
}
- // SONAR-4245
- @Test
- public void shouldFailWhenTryingToConvertProjectIntoModule() {
- setupData("shared");
-
- ResourcePersister persister = new DefaultResourcePersister(getSession(), mock(ResourcePermissions.class), snapshotCache, resourceCache);
- existingProject.setParent(multiModuleProject);
- persister.saveProject(multiModuleProject, null);
-
- thrown.expect(SonarException.class);
- thrown.expectMessage("The project 'my:key' is already defined in SonarQube but not as a module of project 'root'. "
- + "If you really want to stop directly analysing project 'my:key', please first delete it from SonarQube and then relaunch the analysis of project 'root'.");
-
- persister.saveProject(existingProject, multiModuleProject);
- }
-
@Test
public void shouldSaveNewDirectory() {
setupData("shared");