diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-03-14 10:10:31 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-03-14 10:11:51 +0400 |
commit | 7e83fc767544821bd204d3b70f602e88cf61d25a (patch) | |
tree | 39b4a03fa27776133103c891d6f6801bc7c7ced5 /sonar-batch | |
parent | abb8bac7ab3717b32adea21fa58d20adb6ea7499 (diff) | |
download | sonarqube-7e83fc767544821bd204d3b70f602e88cf61d25a.tar.gz sonarqube-7e83fc767544821bd204d3b70f602e88cf61d25a.zip |
Fix quality flaws in tests: remove unused imports
Diffstat (limited to 'sonar-batch')
6 files changed, 0 insertions, 25 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/BatchTest.java b/sonar-batch/src/test/java/org/sonar/batch/BatchTest.java index 090a3471f8d..8931f08e437 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/BatchTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/BatchTest.java @@ -21,8 +21,6 @@ package org.sonar.batch; import org.apache.commons.configuration.PropertiesConfiguration; import org.junit.Test; -import org.sonar.api.batch.bootstrap.ProjectDefinition; -import org.sonar.api.batch.bootstrap.ProjectReactor; import org.sonar.batch.bootstrap.Module; import java.util.Properties; diff --git a/sonar-batch/src/test/java/org/sonar/batch/ProjectTreeTest.java b/sonar-batch/src/test/java/org/sonar/batch/ProjectTreeTest.java index 26918cbb425..24f913239bd 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/ProjectTreeTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/ProjectTreeTest.java @@ -19,29 +19,12 @@ */ package org.sonar.batch; -import static org.hamcrest.MatcherAssert.assertThat; -import static org.hamcrest.core.Is.is; -import static org.junit.Assert.assertNull; -import static org.junit.internal.matchers.IsCollectionContaining.hasItem; - import org.apache.commons.configuration.PropertiesConfiguration; -import org.apache.commons.io.FileUtils; -import org.apache.maven.model.Model; -import org.apache.maven.model.io.xpp3.MavenXpp3Reader; import org.apache.maven.project.MavenProject; -import org.codehaus.plexus.util.xml.pull.XmlPullParserException; import org.junit.Ignore; -import org.junit.Test; -import org.sonar.api.batch.bootstrap.ProjectDefinition; import org.sonar.api.resources.Project; import org.sonar.jpa.test.AbstractDbUnitTestCase; -import java.io.File; -import java.io.IOException; -import java.io.StringReader; -import java.net.URISyntaxException; -import java.util.Arrays; - @Ignore public class ProjectTreeTest extends AbstractDbUnitTestCase { diff --git a/sonar-batch/src/test/java/org/sonar/batch/bootstrap/BatchPluginRepositoryTest.java b/sonar-batch/src/test/java/org/sonar/batch/bootstrap/BatchPluginRepositoryTest.java index 13deeb0d083..bb50e80b9a3 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/bootstrap/BatchPluginRepositoryTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/bootstrap/BatchPluginRepositoryTest.java @@ -20,7 +20,6 @@ package org.sonar.batch.bootstrap; import com.google.common.collect.Lists; -import org.apache.commons.configuration.PropertiesConfiguration; import org.codehaus.plexus.util.FileUtils; import org.hamcrest.Matchers; import org.junit.After; diff --git a/sonar-batch/src/test/java/org/sonar/batch/bootstrap/ProjectExtensionInstallerTest.java b/sonar-batch/src/test/java/org/sonar/batch/bootstrap/ProjectExtensionInstallerTest.java index 374ff37272a..a7147e1a37d 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/bootstrap/ProjectExtensionInstallerTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/bootstrap/ProjectExtensionInstallerTest.java @@ -20,8 +20,6 @@ package org.sonar.batch.bootstrap; import com.google.common.collect.Maps; -import org.apache.commons.configuration.Configuration; -import org.apache.commons.configuration.PropertiesConfiguration; import org.apache.maven.project.MavenProject; import org.junit.Test; import org.sonar.api.*; diff --git a/sonar-batch/src/test/java/org/sonar/batch/index/MemoryOptimizerTest.java b/sonar-batch/src/test/java/org/sonar/batch/index/MemoryOptimizerTest.java index 57aed7a43e9..8844f185b01 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/index/MemoryOptimizerTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/index/MemoryOptimizerTest.java @@ -19,7 +19,6 @@ */ package org.sonar.batch.index; -import org.hamcrest.core.IsNull; import org.junit.Test; import org.sonar.api.database.model.MeasureData; import org.sonar.api.database.model.MeasureModel; diff --git a/sonar-batch/src/test/java/org/sonar/batch/index/SourcePersisterTest.java b/sonar-batch/src/test/java/org/sonar/batch/index/SourcePersisterTest.java index fb9fb159d14..4febb06f6d5 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/index/SourcePersisterTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/index/SourcePersisterTest.java @@ -24,9 +24,7 @@ import org.junit.Test; import org.sonar.api.database.model.Snapshot; import org.sonar.api.resources.DuplicatedSourceException; import org.sonar.api.resources.JavaFile; -import org.sonar.api.resources.Project; import org.sonar.api.resources.Resource; -import org.sonar.api.utils.SonarException; import org.sonar.jpa.test.AbstractDbUnitTestCase; import static org.mockito.Matchers.anyObject; |