aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2021-07-27 17:34:31 +0200
committersonartech <sonartech@sonarsource.com>2021-08-09 20:03:18 +0000
commit90198d576c83d7e63cfe9bdfd2bb1db8eed9fad6 (patch)
tree981bcf9d137394059d639f33ec0d8bfa19bef692 /server/sonar-server-common
parente3aff08346215c2b35c0973a97444d0d94b72512 (diff)
downloadsonarqube-90198d576c83d7e63cfe9bdfd2bb1db8eed9fad6.tar.gz
sonarqube-90198d576c83d7e63cfe9bdfd2bb1db8eed9fad6.zip
SONAR-15138 Generate PDF
Diffstat (limited to 'server/sonar-server-common')
-rw-r--r--server/sonar-server-common/src/test/java/org/sonar/server/view/index/ViewIndexerTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-server-common/src/test/java/org/sonar/server/view/index/ViewIndexerTest.java b/server/sonar-server-common/src/test/java/org/sonar/server/view/index/ViewIndexerTest.java
index 4ec942a8b28..c6afeab94f4 100644
--- a/server/sonar-server-common/src/test/java/org/sonar/server/view/index/ViewIndexerTest.java
+++ b/server/sonar-server-common/src/test/java/org/sonar/server/view/index/ViewIndexerTest.java
@@ -41,7 +41,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.tuple;
import static org.sonar.api.resources.Qualifiers.APP;
import static org.sonar.db.component.ComponentTesting.newProjectCopy;
-import static org.sonar.db.component.ComponentTesting.newSubView;
+import static org.sonar.db.component.ComponentTesting.newSubPortfolio;
import static org.sonar.server.view.index.ViewIndexDefinition.TYPE_VIEW;
public class ViewIndexerTest {
@@ -76,7 +76,7 @@ public class ViewIndexerTest {
ComponentDto view2 = db.components().insertPrivatePortfolio();
db.components().insertSnapshot(view2, t -> t.setLast(true));
db.components().insertComponent(newProjectCopy(project2, view2));
- ComponentDto subView = db.components().insertComponent(newSubView(view2));
+ ComponentDto subView = db.components().insertComponent(newSubPortfolio(view2));
db.components().insertComponent(newProjectCopy(project3, subView));
// view without project
ComponentDto view3 = db.components().insertPrivatePortfolio();
@@ -108,7 +108,7 @@ public class ViewIndexerTest {
ComponentDto view2 = db.components().insertPrivatePortfolio();
db.components().insertSnapshot(view2, t -> t.setLast(true));
db.components().insertComponent(newProjectCopy(project2, view2));
- ComponentDto subView = db.components().insertComponent(newSubView(view2));
+ ComponentDto subView = db.components().insertComponent(newSubPortfolio(view2));
db.components().insertComponent(newProjectCopy(project3, subView));
// view without project
ComponentDto view3 = db.components().insertPrivatePortfolio();