diff options
author | Jenkins CI <ci@sonarsource.com> | 2015-01-06 11:43:59 +0100 |
---|---|---|
committer | Jenkins CI <ci@sonarsource.com> | 2015-01-06 11:43:59 +0100 |
commit | 9c9c900e7720fb838c1dcc6345e3289fbdcfe9e3 (patch) | |
tree | 4f0ca88ade77d944e1bb5aa5c3c2e8c7ad16e46e /sonar-batch | |
parent | 17486e3aecc47fbad31f189a9b68904bc18c59fb (diff) | |
parent | 099f5133ceec1648c5dc96420c8cd0676e48df68 (diff) | |
download | sonarqube-9c9c900e7720fb838c1dcc6345e3289fbdcfe9e3.tar.gz sonarqube-9c9c900e7720fb838c1dcc6345e3289fbdcfe9e3.zip |
Automatic merge from branch-5.0
* origin/branch-5.0:
SONAR-6022 Update dead links pointing to documentation
SONAR-5753 Update assertions isEqualTo("") -> isEmpty()
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/index/DefaultResourcePersisterTest.java | 10 |
1 files changed, 5 insertions, 5 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 af3a7f3904c..a8f64618eaf 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 @@ -120,7 +120,7 @@ public class DefaultResourcePersisterTest extends AbstractDbUnitTestCase { assertThat(newProject.uuid()).isNotNull(); assertThat(newProject.projectUuid()).isEqualTo(newProject.uuid()); assertThat(newProject.moduleUuid()).isNull(); - assertThat(newProject.moduleUuidPath()).isEqualTo(""); + assertThat(newProject.moduleUuidPath()).isEmpty(); // SONAR-3636 : created_at must be fed when inserting a new entry in the 'projects' table assertThat(newProject.getCreatedAt()).isNotNull(); } finally { @@ -145,7 +145,7 @@ public class DefaultResourcePersisterTest extends AbstractDbUnitTestCase { assertThat(newProject.uuid()).isNotNull(); assertThat(newProject.projectUuid()).isEqualTo(newProject.uuid()); assertThat(newProject.moduleUuid()).isNull(); - assertThat(newProject.moduleUuidPath()).isEqualTo(""); + assertThat(newProject.moduleUuidPath()).isEmpty(); } finally { MyBatis.closeQuietly(session); } @@ -181,7 +181,7 @@ public class DefaultResourcePersisterTest extends AbstractDbUnitTestCase { assertThat(root.uuid()).isNotNull(); assertThat(root.projectUuid()).isEqualTo(root.uuid()); assertThat(root.moduleUuid()).isNull(); - assertThat(root.moduleUuidPath()).isEqualTo(""); + assertThat(root.moduleUuidPath()).isEmpty(); ComponentDto a = session.getMapper(ComponentMapper.class).selectByKey("a"); assertThat(a.uuid()).isNotNull(); assertThat(a.projectUuid()).isEqualTo(root.uuid()); @@ -259,7 +259,7 @@ public class DefaultResourcePersisterTest extends AbstractDbUnitTestCase { assertThat(root.uuid()).isNotNull(); assertThat(root.projectUuid()).isEqualTo(root.uuid()); assertThat(root.moduleUuid()).isNull(); - assertThat(root.moduleUuidPath()).isEqualTo(""); + assertThat(root.moduleUuidPath()).isEmpty(); ComponentDto a = session.getMapper(ComponentMapper.class).selectByKey("a"); System.out.println("A: " + a.uuid()); assertThat(a.uuid()).isNotNull(); @@ -352,7 +352,7 @@ public class DefaultResourcePersisterTest extends AbstractDbUnitTestCase { assertThat(newLib.uuid()).isNotNull(); assertThat(newLib.projectUuid()).isEqualTo(newLib.uuid()); assertThat(newLib.moduleUuid()).isNull(); - assertThat(newLib.moduleUuidPath()).isEqualTo(""); + assertThat(newLib.moduleUuidPath()).isEmpty(); } finally { MyBatis.closeQuietly(session); } |