aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/test/java/org/sonar/batch/index
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-batch/src/test/java/org/sonar/batch/index')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/index/CacheTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/index/CacheTest.java b/sonar-batch/src/test/java/org/sonar/batch/index/CacheTest.java
index 6544a34e82a..385a798d1c7 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/index/CacheTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/index/CacheTest.java
@@ -73,13 +73,13 @@ public class CacheTest {
String group = "org/apache/struts/Action.java";
cache.put(group, "ncloc", 123f);
cache.put(group, "lines", 200f);
+ cache.put("otherGroup", "lines", 400f);
assertThat(cache.get(group, "lines")).isNotNull();
-
- cache.clear("other group");
- assertThat(cache.get(group, "lines")).isNotNull();
+ assertThat(cache.get("otherGroup", "lines")).isNotNull();
cache.clear(group);
assertThat(cache.get(group, "lines")).isNull();
+ assertThat(cache.get("otherGroup", "lines")).isNotNull();
}
@Test