@@ -216,7 +216,7 @@ public void testListRevisions() throws Exception {
216216 assertEquals (Long .valueOf (1L ), list .find (path -> path .attributes ().isDuplicate ()).attributes ().getRevision ());
217217 }
218218 // Add hide marker
219- new B2DeleteFeature (session , fileid ).delete (Collections .singletonList (file .withAttributes (new PathAttributes (file .attributes ()).withVersionId (null ))), new DisabledLoginCallback (), new Delete .DisabledCallback ());
219+ new B2DeleteFeature (session , fileid ).delete (Collections .singletonList (file .withAttributes (new PathAttributes (file .attributes ()).setVersionId (null ))), new DisabledLoginCallback (), new Delete .DisabledCallback ());
220220 {
221221 final AttributedList <Path > list = new B2ObjectListService (session , fileid ).list (bucket , new DisabledListProgressListener ());
222222 assertEquals (3 , list .size ());
@@ -336,14 +336,14 @@ public void testListFolder() throws Exception {
336336 assertSame (folder1 , list .find (new SimplePathPredicate (file1 )).getParent ());
337337 assertSame (folder1 , list .find (new SimplePathPredicate (folder2 )).getParent ());
338338 // Nullify version to add delete marker
339- new B2DeleteFeature (session , fileid ).delete (Collections .singletonList (new Path (file2 ).withAttributes (new PathAttributes (file2 .attributes ()).withVersionId (null ))), new DisabledLoginCallback (), new Delete .DisabledCallback ());
339+ new B2DeleteFeature (session , fileid ).delete (Collections .singletonList (new Path (file2 ).withAttributes (new PathAttributes (file2 .attributes ()).setVersionId (null ))), new DisabledLoginCallback (), new Delete .DisabledCallback ());
340340 assertTrue (new B2ObjectListService (session , fileid , 1 , VersioningConfiguration .empty ()).list (folder2 , new DisabledListProgressListener ()).isEmpty ());
341341 assertFalse (new B2ObjectListService (session , fileid ).list (folder2 , new DisabledListProgressListener ()).isEmpty ());
342342 new B2DeleteFeature (session , fileid ).delete (Collections .singletonList (folder2 ), new DisabledLoginCallback (), new Delete .DisabledCallback ());
343343 assertTrue (new B2ObjectListService (session , fileid ).list (folder2 , new DisabledListProgressListener ()).contains (file2 ));
344344 assertThrows (NotfoundException .class , () -> new B2ObjectListService (session , fileid , 1 , VersioningConfiguration .empty ()).list (folder2 , new DisabledListProgressListener ()));
345345 // Nullify version to add delete marker
346- new B2DeleteFeature (session , fileid ).delete (Collections .singletonList (new Path (file1 ).withAttributes (new PathAttributes (file1 .attributes ()).withVersionId (null ))), new DisabledLoginCallback (), new Delete .DisabledCallback ());
346+ new B2DeleteFeature (session , fileid ).delete (Collections .singletonList (new Path (file1 ).withAttributes (new PathAttributes (file1 .attributes ()).setVersionId (null ))), new DisabledLoginCallback (), new Delete .DisabledCallback ());
347347 assertTrue (new B2ObjectListService (session , fileid , 1 , VersioningConfiguration .empty ()).list (folder1 , new DisabledListProgressListener ()).isEmpty ());
348348 assertTrue (new B2ObjectListService (session , fileid ).list (folder1 , new DisabledListProgressListener ()).contains (folder2 ));
349349 new B2DeleteFeature (session , fileid ).delete (Collections .singletonList (folder1 ), new DisabledLoginCallback (), new Delete .DisabledCallback ());
@@ -373,7 +373,7 @@ public void testDisplayFolderInBucketMissingPlaceholder() throws Exception {
373373 assertFalse (foundFolder1 .attributes ().isDuplicate ());
374374 }
375375 // Nullify version to add delete marker
376- new B2DeleteFeature (session , fileid ).delete (Collections .singletonList (new Path (file1 ).withAttributes (new PathAttributes (file1 .attributes ()).withVersionId (null ))), new DisabledLoginCallback (), new Delete .DisabledCallback ());
376+ new B2DeleteFeature (session , fileid ).delete (Collections .singletonList (new Path (file1 ).withAttributes (new PathAttributes (file1 .attributes ()).setVersionId (null ))), new DisabledLoginCallback (), new Delete .DisabledCallback ());
377377 assertTrue (new B2ObjectListService (session , fileid , 1 , VersioningConfiguration .empty ()).list (bucket , new DisabledListProgressListener ()).isEmpty ());
378378 {
379379 final AttributedList <Path > list = new B2ObjectListService (session , fileid ).list (bucket , new DisabledListProgressListener ());
@@ -410,7 +410,7 @@ public void testDisplayFolderInFolderMissingPlaceholder() throws Exception {
410410 assertFalse (foundFolder2 .attributes ().isDuplicate ());
411411 }
412412 // Nullify version to add delete marker
413- new B2DeleteFeature (session , fileid ).delete (Collections .singletonList (file .withAttributes (new PathAttributes (file .attributes ()).withVersionId (null ))), new DisabledLoginCallback (), new Delete .DisabledCallback ());
413+ new B2DeleteFeature (session , fileid ).delete (Collections .singletonList (file .withAttributes (new PathAttributes (file .attributes ()).setVersionId (null ))), new DisabledLoginCallback (), new Delete .DisabledCallback ());
414414 assertTrue (new DefaultFindFeature (session ).find (folder1 , new DisabledListProgressListener ()));
415415 assertTrue (new B2ObjectListService (session , fileid ).list (folder1 , new DisabledListProgressListener ()).contains (folder2 ));
416416 assertTrue (new DefaultFindFeature (session ).find (folder2 , new DisabledListProgressListener ()));
0 commit comments