Skip to content

Commit

Permalink
attempting to remove compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
masseyke committed Nov 9, 2023
1 parent fd12236 commit f7d356f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void testConvertToBulkRequestXContentBytes() throws Exception {
{"my-keyword-field":"FOO"}
{"index":{}}
{"my-keyword-field":"BAR"}
""";
""";
testInputJsonConvertsToOutputJson(simulateRequestJson, bulkRequestJson);
}

Expand Down Expand Up @@ -86,7 +86,7 @@ public void testConvertToBulkRequestXContentBytes() throws Exception {
{"foo":"bar"}
{"index":{"_index":"index","_id":"456"}}
{"foo":"rab"}
""";
""";
testInputJsonConvertsToOutputJson(simulateRequestJson, bulkRequestJson);
}

Expand All @@ -103,7 +103,7 @@ public void testConvertToBulkRequestXContentBytes() throws Exception {
{"foo":"bar"}
{"index":{"_index":"index","_id":"456"}}
{"foo":"rab"}
""";
""";
expectThrows(IllegalArgumentException.class, () -> testInputJsonConvertsToOutputJson(simulateRequestJson, bulkRequestJson));
}

Expand All @@ -129,7 +129,7 @@ public void testConvertToBulkRequestXContentBytes() throws Exception {
String bulkRequestJson = """
{"index":{"_index":"index","_id":"123"}}
{"some_object":{"prop1":"val1","some_array":[1,2,3,4]},"foo":"bar"}
""";
""";
testInputJsonConvertsToOutputJson(simulateRequestJson, bulkRequestJson);
}
}
Expand Down

0 comments on commit f7d356f

Please sign in to comment.