aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/test
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-05-05 23:01:54 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-05-06 00:24:06 +0400
commit804816f9434ba22951a4965155df0837d21f5d22 (patch)
tree396d1e213dea4e8c4a3c5f4c1745baba73e27198 /sonar-batch/src/test
parentbe8c67c1396c03bf71cc2fb7770668c54e903e32 (diff)
downloadsonarqube-804816f9434ba22951a4965155df0837d21f5d22.tar.gz
sonarqube-804816f9434ba22951a4965155df0837d21f5d22.zip
SONAR-2298 Fix bug, when root project not a first one in Maven reactor
This situation shouldn't lead to partial analysis.
Diffstat (limited to 'sonar-batch/src/test')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/MavenProjectConverterTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/MavenProjectConverterTest.java b/sonar-batch/src/test/java/org/sonar/batch/MavenProjectConverterTest.java
index c9a2c4124fb..1ee191bebe7 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/MavenProjectConverterTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/MavenProjectConverterTest.java
@@ -33,19 +33,19 @@ import java.util.Properties;
public class MavenProjectConverterTest {
@Test
- public void test2() {
+ public void shouldConvertModules() {
MavenProject root = new MavenProject();
root.setFile(new File("/foo/pom.xml"));
root.getModules().add("module");
MavenProject module = new MavenProject();
module.setFile(new File("/foo/module/pom.xml"));
- ProjectDefinition project = MavenProjectConverter.convert(Arrays.asList(root, module));
+ ProjectDefinition project = MavenProjectConverter.convert(Arrays.asList(root, module), root);
assertThat(project.getModules().size(), is(1));
}
@Test
- public void test() {
+ public void shouldConvertProperties() {
MavenProject pom = new MavenProject();
pom.setGroupId("foo");
pom.setArtifactId("bar");