File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
orchestration/src/test/java/com/sap/ai/sdk/orchestration Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -224,12 +224,9 @@ void testGrounding() throws IOException {
224224 .isEqualTo ("assistant" );
225225 assertThat (orchestrationResult .getChoices ().get (0 ).getFinishReason ()).isEqualTo ("stop" );
226226
227- try (var requestInputStream = fileLoader .apply ("groundingREquest.json" )) {
228- final String requestBody = new String (requestInputStream .readAllBytes ());
229- verify (
230- postRequestedFor (urlPathEqualTo ("/completion" ))
231- .withRequestBody (equalToJson (requestBody )));
232- }
227+ final String requestBody = new String (fileLoader .apply ("groundingRequest.json" ).readAllBytes ());
228+ verify (
229+ postRequestedFor (urlPathEqualTo ("/completion" )).withRequestBody (equalToJson (requestBody )));
233230 }
234231
235232 @ Test
You can’t perform that action at this time.
0 commit comments