aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-08-31 14:30:17 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-08-31 14:30:17 +0200
commitbdb27317d1d7627a262aa004d0a1265a7100e1cc (patch)
treefe27a67a78a6247eead86e70c8c810227e2c3f3c
parente2e52c5f487e85f480c118190f62aad49cf927d8 (diff)
downloadsonarqube-bdb27317d1d7627a262aa004d0a1265a7100e1cc.tar.gz
sonarqube-bdb27317d1d7627a262aa004d0a1265a7100e1cc.zip
Fix quality flaws
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java2
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/utils/log/LogInterceptorsTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java b/server/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java
index fa441160e8c..3095c6cb3b6 100644
--- a/server/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java
+++ b/server/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java
@@ -1068,7 +1068,7 @@ public class RuleIndexMediumTest {
public void available_since() throws InterruptedException {
dao.insert(dbSession, RuleTesting.newDto(RuleKey.of("java", "S001")));
dbSession.commit();
- Thread.sleep(500);
+
Date since = new Date();
dao.insert(dbSession, RuleTesting.newDto(RuleKey.of("java", "S002")));
dbSession.commit();
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/utils/log/LogInterceptorsTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/utils/log/LogInterceptorsTest.java
index 7de0f049668..6192c030baa 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/utils/log/LogInterceptorsTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/utils/log/LogInterceptorsTest.java
@@ -39,7 +39,7 @@ public class LogInterceptorsTest {
@Test
public void private_constructor() {
- assertThat(TestUtils.hasOnlyPrivateConstructors(LogInterceptors.class));
+ assertThat(TestUtils.hasOnlyPrivateConstructors(LogInterceptors.class)).isTrue();
}
}