@@ -93,24 +93,21 @@ public void justBucketOsdc() throws IOException {
9393 //
9494 @ Test
9595 public void bucketAndKeyAws () throws IOException {
96- long lastModified = 1532465845000L ;
97- checkWithBucketAndKey (AWS_G16_S3_OBJECT_1 , G16_OBJECT_KEY_1 , null , lastModified );
98- checkWithBucketAndKey (AWS_G16_S3_OBJECT_1 + DELIMITER_FRAGMENT , G16_NAME_1 , "/" , lastModified );
96+ checkWithBucketAndKey (AWS_G16_S3_OBJECT_1 , G16_OBJECT_KEY_1 , null );
97+ checkWithBucketAndKey (AWS_G16_S3_OBJECT_1 + DELIMITER_FRAGMENT , G16_NAME_1 , "/" );
9998 }
10099
101100 @ Test
102101 public void bucketAndKeyGcs () throws IOException {
103- long lastModified = 1504051532000L ;
104- checkWithBucketAndKey (GCS_G16_S3_OBJECT_1 , G16_OBJECT_KEY_1 , null , lastModified );
105- checkWithBucketAndKey (GCS_G16_S3_OBJECT_1 + DELIMITER_FRAGMENT , G16_NAME_1 , "/" , lastModified );
102+ checkWithBucketAndKey (GCS_G16_S3_OBJECT_1 , G16_OBJECT_KEY_1 , null );
103+ checkWithBucketAndKey (GCS_G16_S3_OBJECT_1 + DELIMITER_FRAGMENT , G16_NAME_1 , "/" );
106104 }
107105
108106 @ Test
109107 @ Category (NotPullRequest .class )
110108 public void bucketAndKeyOsdc () throws IOException {
111- long lastModified = 1611593614000L ;
112- checkWithBucketAndKey (OSDC_G16_S3_OBJECT_1 , OSDC_G16_OBJECT_KEY_1 , null , lastModified );
113- checkWithBucketAndKey (OSDC_G16_S3_OBJECT_1 + DELIMITER_FRAGMENT , G16_NAME_1 , "/" , lastModified );
109+ checkWithBucketAndKey (OSDC_G16_S3_OBJECT_1 , OSDC_G16_OBJECT_KEY_1 , null );
110+ checkWithBucketAndKey (OSDC_G16_S3_OBJECT_1 + DELIMITER_FRAGMENT , G16_NAME_1 , "/" );
114111 }
115112
116113 @ Test
@@ -184,8 +181,7 @@ private void checkWithBucket(String cdmS3Uri) throws IOException {
184181 assertThat (parent ).isNull ();
185182 }
186183
187- private void checkWithBucketAndKey (String cdmS3Uri , String expectedName , String delimiter , long expectedLastModified )
188- throws IOException {
184+ private void checkWithBucketAndKey (String cdmS3Uri , String expectedName , String delimiter ) throws IOException {
189185 logger .info ("Checking {}" , cdmS3Uri );
190186 MFile mFile = new MFileS3 (cdmS3Uri );
191187 assertThat (mFile .getPath ()).isEqualTo (cdmS3Uri );
@@ -197,7 +193,6 @@ private void checkWithBucketAndKey(String cdmS3Uri, String expectedName, String
197193 assertThat (mFile .getParent ()).isNull ();
198194 }
199195 assertThat (mFile .isDirectory ()).isFalse ();
200- assertThat (mFile .getLastModified ()).isEqualTo (expectedLastModified );
201196 assertThat (mFile .getLength ()).isEqualTo (G16_OBJECT_1_SIZE );
202197 }
203198
0 commit comments