Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit 03507b3

Browse files
committed
Cleanups.
1 parent 380c285 commit 03507b3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ then install with:
2626
bin/elasticsearch-plugin install file:/.../(plugin)/build/distributions/*.zip
2727

2828
Windows:
29-
bin/elasticsearch-plugin install file:///c:/.../(plugin)/build/distributions/*.zip
29+
bin\elasticsearch-plugin install file:///c:/.../(plugin)/build/distributions/*.zip
3030

3131
Starting with ES 2.2.0, the installer will request confirmation
3232
concerning extended security permissions. You have to accept this prompt for

src/test/java/org/carrot2/elasticsearch/ClusteringActionRestIT.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,21 +168,21 @@ public void testLanguageField() throws Exception {
168168
Map<?,?> map = checkHttpResponseContainsClusters(response);
169169

170170
// Check top level clusters labels.
171-
Set<String> allLanguages = new HashSet<>();
171+
Set<String> remainingLanguages = new HashSet<>();
172172
for (LanguageCode code : LanguageCode.values()) {
173-
allLanguages.add(code.toString());
173+
remainingLanguages.add(code.toString());
174174
}
175175

176176
List<?> clusterList = (List<?>) map.get("clusters");
177177
for (Object o : clusterList) {
178178
@SuppressWarnings("unchecked")
179179
Map<String, Object> cluster = (Map<String, Object>) o;
180-
allLanguages.remove(cluster.get("label"));
180+
remainingLanguages.remove(cluster.get("label"));
181181
}
182182

183-
Assertions.assertThat(allLanguages.size())
184-
.describedAs("Expected a lot of languages to appear in top groups.")
185-
.isLessThan(LanguageCode.values().length / 2);
183+
Assertions.assertThat(remainingLanguages.size())
184+
.describedAs("Expected a lot of languages to appear in top groups: " + remainingLanguages)
185+
.isLessThan(LanguageCode.values().length / 2);
186186
}
187187
}
188188

0 commit comments

Comments
 (0)