summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-17 14:10:56 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-07-17 16:01:23 +0200
commitbbc867b6feb420a387ab1423f3befa9934b22934 (patch)
tree060be20d829da0af4d490c3693788f452b298c0a /server
parent0cbf1044e679e95a40aca2fae1834c4d32249755 (diff)
downloadsonarqube-bbc867b6feb420a387ab1423f3befa9934b22934.tar.gz
sonarqube-bbc867b6feb420a387ab1423f3befa9934b22934.zip
Cosmetic changes in SumFormula
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/computation/formula/SumFormula.java1
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/computation/formula/SumFormulaTest.java2
2 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/formula/SumFormula.java b/server/sonar-server/src/main/java/org/sonar/server/computation/formula/SumFormula.java
index fda5bdf693b..cf513d8cf55 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/computation/formula/SumFormula.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/computation/formula/SumFormula.java
@@ -46,7 +46,6 @@ public class SumFormula implements Formula<SumCounter> {
return Optional.of(Measure.newMeasureBuilder().create(valueOptional.get()));
}
return Optional.absent();
-
}
@Override
diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/formula/SumFormulaTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/formula/SumFormulaTest.java
index 6f01d8eb609..41e4d9f4b8f 100644
--- a/server/sonar-server/src/test/java/org/sonar/server/computation/formula/SumFormulaTest.java
+++ b/server/sonar-server/src/test/java/org/sonar/server/computation/formula/SumFormulaTest.java
@@ -98,7 +98,7 @@ public class SumFormulaTest {
}
@Test
- public void not_create_measure_when_value_is_zero() {
+ public void do_not_create_measures_when_no_values() {
SumCounter counter = BASIC_SUM_FORMULA.createNewCounter();
when(fileAggregateContext.getMeasure(LINES_KEY)).thenReturn(Optional.<Measure>absent());
counter.aggregate(fileAggregateContext);