aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/test/java
diff options
context:
space:
mode:
authorStephane Gamard <stephane.gamard@searchbox.com>2014-07-07 16:41:36 +0200
committerStephane Gamard <stephane.gamard@searchbox.com>2014-07-07 16:41:36 +0200
commit62f864da77f43b056b98b78932b1d20860da26b4 (patch)
tree59361c70eb57bd91297d237dfa3e75393a5b5bc7 /sonar-server/src/test/java
parentc4e562cb2fad74318b6a9bf733a0909263ff0271 (diff)
downloadsonarqube-62f864da77f43b056b98b78932b1d20860da26b4.tar.gz
sonarqube-62f864da77f43b056b98b78932b1d20860da26b4.zip
SONAR-5007 - Fixed hasDebt filter in RuleIndex
Diffstat (limited to 'sonar-server/src/test/java')
-rw-r--r--sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java b/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java
index f6fd64b2513..3b3950d6993 100644
--- a/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java
+++ b/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexMediumTest.java
@@ -24,7 +24,10 @@ import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Iterables;
import com.google.common.collect.Sets;
import org.apache.commons.lang.time.DateUtils;
-import org.junit.*;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.ClassRule;
+import org.junit.Test;
import org.sonar.api.rule.RuleKey;
import org.sonar.api.rule.RuleStatus;
import org.sonar.api.rule.Severity;
@@ -47,8 +50,12 @@ import org.sonar.server.search.Result;
import org.sonar.server.tester.ServerTester;
import javax.annotation.Nullable;
-
-import java.util.*;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Date;
+import java.util.Iterator;
+import java.util.List;
import static com.google.common.collect.Lists.newArrayList;
import static org.fest.assertions.Assertions.assertThat;
@@ -284,8 +291,7 @@ public class RuleIndexMediumTest {
}
@Test
- @Ignore("To be fixed")
- public void search_by_has_debt_characteristic() {
+ public void search_by_has_debt_characteristic() throws InterruptedException {
CharacteristicDto char1 = DebtTesting.newCharacteristicDto("c1")
.setEnabled(true)
.setName("char1");