@@ -559,7 +559,7 @@ public void testPutSmallObject()
559
559
String inputString = HELLO_WORLD ;
560
560
ByteArrayInputStream data = new ByteArrayInputStream (inputString .getBytes (StandardCharsets .UTF_8 ));
561
561
562
- client .putObject (BUCKET , "key" , data , 11 , APPLICATION_OCTET_STREAM );
562
+ client .putObject (BUCKET , "key" , data , 11L , null , null , APPLICATION_OCTET_STREAM );
563
563
}
564
564
565
565
// this case only occurs for minio cloud storage
@@ -584,7 +584,7 @@ public void testPutSmallObjectFails()
584
584
String inputString = HELLO_WORLD ;
585
585
ByteArrayInputStream data = new ByteArrayInputStream (inputString .getBytes (StandardCharsets .UTF_8 ));
586
586
587
- client .putObject (BUCKET , "key" , data , 11 , APPLICATION_OCTET_STREAM );
587
+ client .putObject (BUCKET , "key" , data , 11L , null , null , APPLICATION_OCTET_STREAM );
588
588
throw new RuntimeException (EXPECTED_EXCEPTION_DID_NOT_FIRE );
589
589
}
590
590
@@ -609,7 +609,7 @@ public void testPutIncompleteSmallPut()
609
609
String inputString = "hello worl" ;
610
610
ByteArrayInputStream data = new ByteArrayInputStream (inputString .getBytes (StandardCharsets .UTF_8 ));
611
611
612
- client .putObject (BUCKET , "key" , data , 11 , APPLICATION_OCTET_STREAM );
612
+ client .putObject (BUCKET , "key" , data , 11L , null , null , APPLICATION_OCTET_STREAM );
613
613
throw new RuntimeException (EXPECTED_EXCEPTION_DID_NOT_FIRE );
614
614
}
615
615
@@ -638,7 +638,7 @@ public void testSpecialCharsNameWorks()
638
638
ascii [i - 1 ] = (byte ) i ;
639
639
}
640
640
String contentType = null ;
641
- client .putObject (BUCKET , "世界" + new String (ascii , "UTF-8" ), data , 11 , contentType );
641
+ client .putObject (BUCKET , "世界" + new String (ascii , "UTF-8" ), data , 11L , null , null , contentType );
642
642
}
643
643
644
644
@ SuppressFBWarnings ("NP" )
@@ -662,7 +662,7 @@ public void testNullContentTypeWorks()
662
662
ByteArrayInputStream data = new ByteArrayInputStream (inputString .getBytes (StandardCharsets .UTF_8 ));
663
663
664
664
String contentType = null ;
665
- client .putObject (BUCKET , "key" , data , 11 , contentType );
665
+ client .putObject (BUCKET , "key" , data , 11L , null , null , contentType );
666
666
}
667
667
668
668
@ Test
@@ -684,7 +684,7 @@ public void testCustomContentTypeWorks()
684
684
String inputString = HELLO_WORLD ;
685
685
ByteArrayInputStream data = new ByteArrayInputStream (inputString .getBytes (StandardCharsets .UTF_8 ));
686
686
687
- client .putObject (BUCKET , "key" , data , 11 , APPLICATION_JAVASCRIPT );
687
+ client .putObject (BUCKET , "key" , data , 11L , null , null , APPLICATION_JAVASCRIPT );
688
688
}
689
689
690
690
@ Test
@@ -828,7 +828,7 @@ private RecordedRequest putObjectWithHeaders(Map<String, String> headerMap)
828
828
server .start ();
829
829
830
830
MinioClient client = new MinioClient (server .url ("" ).toString (), "access_key" , "secret_key" , "us-east-1" );
831
- client .putObject (BUCKET , "key" , new ByteArrayInputStream (new byte []{'a' }), 1 , headerMap );
831
+ client .putObject (BUCKET , "key" , new ByteArrayInputStream (new byte []{'a' }), 1L , headerMap , null , null );
832
832
833
833
return server .takeRequest ();
834
834
}
0 commit comments