diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-04-26 17:01:18 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-04-26 17:03:07 +0200 |
commit | cfa28e900d9b52cfca276e03c07e1e3b75c853cf (patch) | |
tree | 846b1ba3840700da723e3bf4e7667f7e1dba8794 /sonar-batch/src/test/java/org/sonar/batch/index | |
parent | 06cd62babc2be1e495a77c2c90ca4a4e100f7cbc (diff) | |
download | sonarqube-cfa28e900d9b52cfca276e03c07e1e3b75c853cf.tar.gz sonarqube-cfa28e900d9b52cfca276e03c07e1e3b75c853cf.zip |
Fix Cache#clear(String)
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.java | 6 |
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 |