This repository was archived by the owner on May 24, 2024. It is now read-only.
File tree 2 files changed +7
-7
lines changed
src/test/java/org/carrot2/elasticsearch
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ then install with:
26
26
bin/elasticsearch-plugin install file:/.../(plugin)/build/distributions/*.zip
27
27
28
28
Windows:
29
- bin/ elasticsearch-plugin install file:///c:/.../(plugin)/build/distributions/*.zip
29
+ bin\ elasticsearch-plugin install file:///c:/.../(plugin)/build/distributions/*.zip
30
30
31
31
Starting with ES 2.2.0, the installer will request confirmation
32
32
concerning extended security permissions. You have to accept this prompt for
Original file line number Diff line number Diff line change @@ -168,21 +168,21 @@ public void testLanguageField() throws Exception {
168
168
Map <?,?> map = checkHttpResponseContainsClusters (response );
169
169
170
170
// Check top level clusters labels.
171
- Set <String > allLanguages = new HashSet <>();
171
+ Set <String > remainingLanguages = new HashSet <>();
172
172
for (LanguageCode code : LanguageCode .values ()) {
173
- allLanguages .add (code .toString ());
173
+ remainingLanguages .add (code .toString ());
174
174
}
175
175
176
176
List <?> clusterList = (List <?>) map .get ("clusters" );
177
177
for (Object o : clusterList ) {
178
178
@ SuppressWarnings ("unchecked" )
179
179
Map <String , Object > cluster = (Map <String , Object >) o ;
180
- allLanguages .remove (cluster .get ("label" ));
180
+ remainingLanguages .remove (cluster .get ("label" ));
181
181
}
182
182
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 );
186
186
}
187
187
}
188
188
You can’t perform that action at this time.
0 commit comments