From 21f78c3276b8df5855b1d1111f541f1037dc90b4 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 1 Feb 2016 21:47:30 +0100 Subject: Reduce verbosity of unit test logs That makes Travis crash (too many logs) --- .../java/org/sonar/core/util/logs/DefaultProfilerTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sonar-core/src') 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 -- cgit v1.2.3