rename field to setField, to match convention

This commit is contained in:
kimchy 2011-07-20 22:02:24 +03:00
parent 72f9183c13
commit 5bd4c16a0c
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public class AnalyzeActionTests extends AbstractNodesTests {
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
final AnalyzeRequestBuilder requestBuilder = client.admin().indices().prepareAnalyze("test", "THIS IS A TEST"); final AnalyzeRequestBuilder requestBuilder = client.admin().indices().prepareAnalyze("test", "THIS IS A TEST");
requestBuilder.field("document.simple"); requestBuilder.setField("document.simple");
AnalyzeResponse analyzeResponse = requestBuilder.execute().actionGet(); AnalyzeResponse analyzeResponse = requestBuilder.execute().actionGet();
assertThat(analyzeResponse.tokens().size(), equalTo(4)); assertThat(analyzeResponse.tokens().size(), equalTo(4));
AnalyzeResponse.AnalyzeToken token = analyzeResponse.tokens().get(3); AnalyzeResponse.AnalyzeToken token = analyzeResponse.tokens().get(3);