]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaws
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 31 Aug 2015 12:30:17 +0000 (14:30 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 31 Aug 2015 12:30:17 +0000 (14:30 +0200)
server/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java
sonar-plugin-api/src/test/java/org/sonar/api/utils/log/LogInterceptorsTest.java

index fa441160e8cd59fd1f8542f4cef4e48074c0568e..3095c6cb3b6a2f10e50d102ef720809e8ef907c5 100644 (file)
@@ -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();
index 7de0f049668a80534f19311bd65fe4ca1555cd42..6192c030baa0f08c2045283e8d10257e944d5a2a 100644 (file)
@@ -39,7 +39,7 @@ public class LogInterceptorsTest {
 
   @Test
   public void private_constructor() {
-    assertThat(TestUtils.hasOnlyPrivateConstructors(LogInterceptors.class));
+    assertThat(TestUtils.hasOnlyPrivateConstructors(LogInterceptors.class)).isTrue();
   }
 }