@@ -182,7 +182,7 @@ void testImport() throws Exception {
182182
183183 documentList .add (document1 );
184184 documentList .add (document2 );
185- queryParameters .action ("create" );
185+ queryParameters .action (ImportDocumentsParameters . ActionEnum . CREATE );
186186
187187 String countriesImport = this .client .collections ("books" ).documents ()
188188 .import_ (documentList , queryParameters );
@@ -192,7 +192,7 @@ void testImport() throws Exception {
192192 @ Test
193193 void testImportAsString () throws Exception {
194194 ImportDocumentsParameters queryParameters = new ImportDocumentsParameters ();
195- queryParameters .action ("create" );
195+ queryParameters .action (ImportDocumentsParameters . ActionEnum . CREATE );
196196 String documentList = "{\" countryName\" : \" India\" , \" capital\" : \" Washington\" , \" gdp\" : 5215}\n " +
197197 "{\" countryName\" : \" Iran\" , \" capital\" : \" London\" , \" gdp\" : 5215}" ;
198198 String booksImport = this .client .collections ("books" ).documents ().import_ (documentList , queryParameters );
@@ -215,7 +215,7 @@ void testDirtyCreate() throws Exception {
215215
216216 ImportDocumentsParameters queryParameters = new ImportDocumentsParameters ();
217217 queryParameters .dirtyValues (ImportDocumentsParameters .DirtyValuesEnum .COERCE_OR_REJECT );
218- queryParameters .action ("upsert" );
218+ queryParameters .action (ImportDocumentsParameters . ActionEnum . UPSERT );
219219
220220 String [] authors = {"shakspeare" , "william" };
221221 HashMap <String , Object > hmap = new HashMap <>();
@@ -245,7 +245,7 @@ void testNestedObjectImport() throws Exception {
245245 client .collections ().create (collectionSchema );
246246
247247 ImportDocumentsParameters queryParameters = new ImportDocumentsParameters ();
248- queryParameters .action ("create" );
248+ queryParameters .action (ImportDocumentsParameters . ActionEnum . CREATE );
249249
250250 List <NestedDocument > docs = new ArrayList <>();
251251 NestedDocument doc = new NestedDocument ("LA" , "CA" , "USA" )
0 commit comments