@@ -30,8 +30,11 @@ void parseFile_emptyMultiPage_mustSucceed() throws IOException, InterruptedExcep
3030 LocalInputSource source = new LocalInputSource (
3131 new File ("src/test/resources/file_types/pdf/multipage_cut-2.pdf" ));
3232
33- InferenceParameters options =
34- InferenceParameters .builder (modelId ).build ();
33+ InferenceParameters options = InferenceParameters
34+ .builder (modelId )
35+ .rag (false )
36+ .alias ("java-integration-test" )
37+ .build ();
3538
3639 InferenceResponse response = mindeeClient .enqueueAndGetInference (source , options );
3740
@@ -54,8 +57,10 @@ void parseFile_filledSinglePage_mustSucceed() throws IOException, InterruptedExc
5457 LocalInputSource source = new LocalInputSource (
5558 new File ("src/test/resources/products/financial_document/default_sample.jpg" ));
5659
57- InferenceParameters options = InferenceParameters .builder (modelId )
60+ InferenceParameters options = InferenceParameters
61+ .builder (modelId )
5862 .rag (false )
63+ .alias ("java-integration-test" )
5964 .build ();
6065
6166 InferenceResponse response = mindeeClient .enqueueAndGetInference (source , options );
@@ -90,8 +95,9 @@ void invalidModel_mustThrowError() throws IOException {
9095 LocalInputSource source = new LocalInputSource (
9196 new File ("src/test/resources/file_types/pdf/multipage_cut-2.pdf" ));
9297
93- InferenceParameters options =
94- InferenceParameters .builder ("INVALID MODEL ID" ).build ();
98+ InferenceParameters options = InferenceParameters
99+ .builder ("INVALID MODEL ID" )
100+ .build ();
95101
96102 MindeeHttpExceptionV2 ex = assertThrows (
97103 MindeeHttpExceptionV2 .class ,
@@ -118,8 +124,9 @@ void urlInputSource_mustNotRaiseErrors() throws IOException, InterruptedExceptio
118124 "https://upload.wikimedia.org/wikipedia/commons/1/1d/Blank_Page.pdf"
119125 ).build ();
120126
121- InferenceParameters options =
122- InferenceParameters .builder (modelId ).build ();
127+ InferenceParameters options = InferenceParameters
128+ .builder (modelId )
129+ .build ();
123130
124131 InferenceResponse response = mindeeClient .enqueueAndGetInference (urlSource , options );
125132
0 commit comments