]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12510 do not fail in views/define when app branch already exist
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 10 Oct 2019 14:46:58 +0000 (16:46 +0200)
committerSonarTech <sonartech@sonarsource.com>
Fri, 11 Oct 2019 18:21:07 +0000 (20:21 +0200)
server/sonar-db-dao/src/testFixtures/java/org/sonar/db/component/ComponentTesting.java

index de911e71fe3f6e3e3d40925d48448d207934203c..f11c0d50eb33a6a0fa1bf289f0e7afa4ecb8ac37 100644 (file)
@@ -177,7 +177,11 @@ public class ComponentTesting {
   }
 
   public static ComponentDto newApplication(OrganizationDto organizationDto) {
-    return newView(organizationDto.getUuid(), Uuids.createFast())
+    return newApplication(organizationDto.getUuid());
+  }
+
+  public static ComponentDto newApplication(String organizationUuid) {
+    return newView(organizationUuid, Uuids.createFast())
       .setQualifier(Qualifiers.APP);
   }