1212import java .util .List ;
1313import java .util .stream .Collectors ;
1414
15- import static java .lang .String .format ;
16-
1715/**
1816 * Testcontainers implementation for MinIO.
1917 * <p>
@@ -124,7 +122,7 @@ public void configure() {
124122 * @return the URL to upload/download objects from
125123 */
126124 public String getS3URL () {
127- return format ("http://%s:%s" , this .getHost (), getMappedPort (MINIO_S3_PORT ));
125+ return String . format ("http://%s:%s" , this .getHost (), getMappedPort (MINIO_S3_PORT ));
128126 }
129127
130128 /**
@@ -145,10 +143,10 @@ public String getPassword() {
145143 protected void containerIsStarted (InspectContainerResponse containerInfo ) {
146144 if (!buckets .isEmpty ()) {
147145 try {
148- ExecResult setAliasExecResult = execInContainer ("mc" , "alias" , "set" , "local" , format ("http://localhost:%s" , MINIO_S3_PORT ), userName , password );
146+ ExecResult setAliasExecResult = execInContainer ("mc" , "alias" , "set" , "local" , String . format ("http://localhost:%s" , MINIO_S3_PORT ), userName , password );
149147 if (setAliasExecResult .getExitCode () == 0 ) {
150148 for (String bucket : buckets ) {
151- ExecResult createBucketExecResult = execInContainer ("mc" , "mb" , format ("local/%s" , bucket ));
149+ ExecResult createBucketExecResult = execInContainer ("mc" , "mb" , String . format ("local/%s" , bucket ));
152150 if (createBucketExecResult .getExitCode () == 0 ) {
153151 logger ().info ("Create bucket {}" , bucket );
154152 } else {
0 commit comments