aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-02-01 21:47:30 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-02-01 21:47:53 +0100
commit21f78c3276b8df5855b1d1111f541f1037dc90b4 (patch)
tree27914f410505ada76acd59c4141378436bd92768 /sonar-core
parent697d6c4373fe70b0dc487eb15876f85f31d28424 (diff)
downloadsonarqube-21f78c3276b8df5855b1d1111f541f1037dc90b4.tar.gz
sonarqube-21f78c3276b8df5855b1d1111f541f1037dc90b4.zip
Reduce verbosity of unit test logs
That makes Travis crash (too many logs)
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/test/java/org/sonar/core/util/logs/DefaultProfilerTest.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/util/logs/DefaultProfilerTest.java b/sonar-core/src/test/java/org/sonar/core/util/logs/DefaultProfilerTest.java
index 66f5fe8ad0f..2e230fefc43 100644
--- a/sonar-core/src/test/java/org/sonar/core/util/logs/DefaultProfilerTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/util/logs/DefaultProfilerTest.java
@@ -37,17 +37,17 @@ public class DefaultProfilerTest {
@Test
public void test_levels() throws Exception {
- // trace by default
- assertThat(underTest.isDebugEnabled()).isTrue();
- assertThat(underTest.isTraceEnabled()).isTrue();
+ // info by default
+ assertThat(underTest.isDebugEnabled()).isFalse();
+ assertThat(underTest.isTraceEnabled()).isFalse();
tester.setLevel(LoggerLevel.DEBUG);
assertThat(underTest.isDebugEnabled()).isTrue();
assertThat(underTest.isTraceEnabled()).isFalse();
- tester.setLevel(LoggerLevel.INFO);
- assertThat(underTest.isDebugEnabled()).isFalse();
- assertThat(underTest.isTraceEnabled()).isFalse();
+ tester.setLevel(LoggerLevel.TRACE);
+ assertThat(underTest.isDebugEnabled()).isTrue();
+ assertThat(underTest.isTraceEnabled()).isTrue();
}
@Test
@@ -71,7 +71,7 @@ public class DefaultProfilerTest {
timing = underTest.stopTrace();
assertThat(timing).isGreaterThan(0);
assertThat(tester.logs()).hasSize(2);
- assertThat(tester.logs().get(1)).startsWith("Register rules (done) | time=" + timing);
+ assertThat(tester.logs().get(1)).startsWith("Register rules (done) | time=" + timing);
tester.clear();
// info