[TEST] fixes line length issue in BulkRequestModifierTests

This commit is contained in:
Ali Beyad 2016-12-07 13:11:55 -05:00
parent e494d6a94e
commit 05f64c550a
1 changed files with 2 additions and 1 deletions

View File

@ -115,7 +115,8 @@ public class BulkRequestModifierTests extends ESTestCase {
List<BulkItemResponse> originalResponses = new ArrayList<>();
for (DocWriteRequest actionRequest : bulkRequest.requests()) {
IndexRequest indexRequest = (IndexRequest) actionRequest;
IndexResponse indexResponse = new IndexResponse(new ShardId("index", "_na_", 0), indexRequest.type(), indexRequest.id(), 1, 1, true);
IndexResponse indexResponse = new IndexResponse(new ShardId("index", "_na_", 0), indexRequest.type(),
indexRequest.id(), 1, 1, true);
originalResponses.add(new BulkItemResponse(Integer.parseInt(indexRequest.id()), indexRequest.opType(), indexResponse));
}
bulkResponseListener.onResponse(new BulkResponse(originalResponses.toArray(new BulkItemResponse[originalResponses.size()]), 0));