aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common
diff options
context:
space:
mode:
authorEric Hartmann <hartmann.eric@gmail.com>2018-07-17 16:19:06 +0200
committersonartech <sonartech@sonarsource.com>2018-07-24 09:31:49 +0200
commit84a883d19f373f06423f638dc7ca9beff589036e (patch)
tree5e63709c60237f75696412de9c6944a8f2e2c93e /server/sonar-server-common
parent2f441edda5ef3bd807bfd04d1e7d7f663d38f812 (diff)
downloadsonarqube-84a883d19f373f06423f638dc7ca9beff589036e.tar.gz
sonarqube-84a883d19f373f06423f638dc7ca9beff589036e.zip
SONARCLOUD-89 Implements non blocking NLOC check
Diffstat (limited to 'server/sonar-server-common')
-rw-r--r--server/sonar-server-common/src/main/java/org/sonar/server/organization/BillingValidations.java2
-rw-r--r--server/sonar-server-common/src/main/java/org/sonar/server/organization/BillingValidationsProxyImpl.java4
-rw-r--r--server/sonar-server-common/src/test/java/org/sonar/server/organization/BillingValidationsProxyImplTest.java6
3 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/organization/BillingValidations.java b/server/sonar-server-common/src/main/java/org/sonar/server/organization/BillingValidations.java
index 797211a328b..d151b2e75fd 100644
--- a/server/sonar-server-common/src/main/java/org/sonar/server/organization/BillingValidations.java
+++ b/server/sonar-server-common/src/main/java/org/sonar/server/organization/BillingValidations.java
@@ -36,7 +36,7 @@ public interface BillingValidations {
/**
* @throws BillingValidationsException when projects analysis on organization is not allowed
*/
- void checkOnProjectAnalysis(Organization organization);
+ void checkBeforeProjectAnalysis(Organization organization);
/**
* @throws BillingValidationsException when the organization cannot use private projects
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/organization/BillingValidationsProxyImpl.java b/server/sonar-server-common/src/main/java/org/sonar/server/organization/BillingValidationsProxyImpl.java
index 717c323dd97..9ae7d6c8d5e 100644
--- a/server/sonar-server-common/src/main/java/org/sonar/server/organization/BillingValidationsProxyImpl.java
+++ b/server/sonar-server-common/src/main/java/org/sonar/server/organization/BillingValidationsProxyImpl.java
@@ -36,11 +36,11 @@ public class BillingValidationsProxyImpl implements BillingValidationsProxy {
}
@Override
- public void checkOnProjectAnalysis(Organization organization) {
+ public void checkBeforeProjectAnalysis(Organization organization) {
if (billingValidationsExtension == null) {
return;
}
- billingValidationsExtension.checkOnProjectAnalysis(organization);
+ billingValidationsExtension.checkBeforeProjectAnalysis(organization);
}
@Override
diff --git a/server/sonar-server-common/src/test/java/org/sonar/server/organization/BillingValidationsProxyImplTest.java b/server/sonar-server-common/src/test/java/org/sonar/server/organization/BillingValidationsProxyImplTest.java
index 3ead0f5070a..0b6f785ac12 100644
--- a/server/sonar-server-common/src/test/java/org/sonar/server/organization/BillingValidationsProxyImplTest.java
+++ b/server/sonar-server-common/src/test/java/org/sonar/server/organization/BillingValidationsProxyImplTest.java
@@ -42,9 +42,9 @@ public class BillingValidationsProxyImplTest {
underTest = new BillingValidationsProxyImpl(billingValidationsExtension);
Organization organization = new Organization(ORGANIZATION_KEY, ORGANIZATION_UUID);
- underTest.checkOnProjectAnalysis(organization);
+ underTest.checkBeforeProjectAnalysis(organization);
- verify(billingValidationsExtension).checkOnProjectAnalysis(organization);
+ verify(billingValidationsExtension).checkBeforeProjectAnalysis(organization);
}
@Test
@@ -52,7 +52,7 @@ public class BillingValidationsProxyImplTest {
underTest = new BillingValidationsProxyImpl();
Organization organization = new Organization(ORGANIZATION_KEY, ORGANIZATION_UUID);
- underTest.checkOnProjectAnalysis(organization);
+ underTest.checkBeforeProjectAnalysis(organization);
verifyZeroInteractions(billingValidationsExtension);
}