@@ -259,7 +259,7 @@ public void test03AddVault(final HubTestConfig config) throws Exception {
259259 vaultId , "vault" , null ,
260260 config .vault .storageProfileId , config .vault .username , config .vault .password , config .vault .bucketName , config .vault .region , true , 3 ));
261261
262- final AttributedList <Path > vaults = hubSession .getFeature (ListService .class ).list (Home .ROOT , new DisabledListProgressListener ());
262+ final AttributedList <Path > vaults = hubSession .getFeature (ListService .class ).list (Home .root () , new DisabledListProgressListener ());
263263 assertFalse (vaults .isEmpty ());
264264
265265 final Path bucket = new Path (storageProfileWrapper .getProtocol () == Protocol .S3_STS ? storageProfileWrapper .getBucketPrefix () + vaultId : config .vault .bucketName ,
@@ -350,11 +350,11 @@ public void test04SetupCode(final HubTestConfig config) throws Exception {
350350 assertEquals (OAuthTokens .EMPTY , hubSession .getHost ().getCredentials ().getOauth ());
351351 assertEquals (StringUtils .EMPTY , hubSession .getHost ().getCredentials ().getPassword ());
352352 final ListService feature = hubSession .getFeature (ListService .class );
353- final AttributedList <Path > vaults = feature .list (Home .ROOT , new DisabledListProgressListener ());
353+ final AttributedList <Path > vaults = feature .list (Home .root () , new DisabledListProgressListener ());
354354 final ConfigDto configDto = new ConfigResourceApi (hubSession .getClient ()).apiConfigGet ();
355355 final int expectedNumberOfVaults = configDto .getKeycloakTokenEndpoint ().contains ("localhost" ) ? 2 : 4 ;
356356 assertEquals (expectedNumberOfVaults , vaults .size ());
357- assertEquals (vaults , feature .list (Home .ROOT , new DisabledListProgressListener ()));
357+ assertEquals (vaults , feature .list (Home .root () , new DisabledListProgressListener ()));
358358 for (final Path vault : vaults ) {
359359 assertTrue (hubSession .getFeature (Find .class ).find (vault ));
360360 }
@@ -363,7 +363,7 @@ public void test04SetupCode(final HubTestConfig config) throws Exception {
363363
364364 private static byte @ NotNull [] writeRandomFile (final Session <?> session , final Path file , int size ) throws BackgroundException , IOException {
365365 final byte [] content = RandomUtils .nextBytes (size );
366- final TransferStatus transferStatus = new TransferStatus ().withLength (content .length );
366+ final TransferStatus transferStatus = new TransferStatus ().setLength (content .length );
367367 transferStatus .setChecksum (session .getFeature (Write .class ).checksum (file , transferStatus ).compute (new ByteArrayInputStream (content ), transferStatus ));
368368 session .getFeature (Bulk .class ).pre (Transfer .Type .upload , Collections .singletonMap (new TransferItem (file ), transferStatus ), new DisabledConnectionCallback ());
369369 final StatusOutputStream <?> out = session .getFeature (Write .class ).write (file , transferStatus , new DisabledConnectionCallback ());
0 commit comments