Fix expectations around script fields as a consequence of https://github.com/elasticsearch/elasticsearch/pull/8592.

This commit is contained in:
Adrien Grand 2014-11-27 16:35:55 +01:00
parent 46b84777f6
commit 4549a3b4ee
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ public class JavaScriptScriptSearchTests extends ElasticsearchIntegrationTest {
assertThat(sObj2Arr2.get(0).toString(), equalTo("arr_value1")); assertThat(sObj2Arr2.get(0).toString(), equalTo("arr_value1"));
assertThat(sObj2Arr2.get(1).toString(), equalTo("arr_value2")); assertThat(sObj2Arr2.get(1).toString(), equalTo("arr_value2"));
sObj2Arr2 = (List) response.getHits().getAt(0).field("s_obj2_arr2").value(); sObj2Arr2 = (List) response.getHits().getAt(0).field("s_obj2_arr2").values();
assertThat(sObj2Arr2.size(), equalTo(2)); assertThat(sObj2Arr2.size(), equalTo(2));
assertThat(sObj2Arr2.get(0).toString(), equalTo("arr_value1")); assertThat(sObj2Arr2.get(0).toString(), equalTo("arr_value1"));
assertThat(sObj2Arr2.get(1).toString(), equalTo("arr_value2")); assertThat(sObj2Arr2.get(1).toString(), equalTo("arr_value2"));