@@ -39,9 +39,9 @@ public class SpectraAttributesFinderFeatureTest extends AbstractSpectraTest {
3939 @ Test
4040 public void testFindFile () throws Exception {
4141 final Path container = new SpectraDirectoryFeature (session , new SpectraWriteFeature (session )).mkdir (
42- new Path (new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory , Path .Type .volume )), new TransferStatus ());
42+ new SpectraWriteFeature ( session ), new Path (new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory , Path .Type .volume )), new TransferStatus ());
4343 final Path test = new Path (container , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .file ));
44- new SpectraTouchFeature (session ).touch (test , new TransferStatus ());
44+ new SpectraTouchFeature (session ).touch (new SpectraWriteFeature ( session ), test , new TransferStatus ());
4545 final SpectraAttributesFinderFeature f = new SpectraAttributesFinderFeature (session );
4646 final PathAttributes attributes = f .find (test );
4747 assertEquals (0L , attributes .getSize ());
@@ -62,7 +62,7 @@ public void testFindFile() throws Exception {
6262 @ Test
6363 public void testFindBucket () throws Exception {
6464 final Path container = new SpectraDirectoryFeature (session , new SpectraWriteFeature (session )).mkdir (
65- new Path (new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory , Path .Type .volume )), new TransferStatus ());
65+ new SpectraWriteFeature ( session ), new Path (new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory , Path .Type .volume )), new TransferStatus ());
6666 final PathAttributes attributes = new SpectraAttributesFinderFeature (session ).find (container );
6767 assertEquals (-1L , attributes .getSize ());
6868 assertNull (attributes .getRegion ());
@@ -81,8 +81,8 @@ public void testFindNotFound() throws Exception {
8181 @ Test
8282 public void testFindPlaceholder () throws Exception {
8383 final Path container = new SpectraDirectoryFeature (session , new SpectraWriteFeature (session )).mkdir (
84- new Path (new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory , Path .Type .volume )), new TransferStatus ());
85- final Path test = new SpectraDirectoryFeature (session , new SpectraWriteFeature (session )).mkdir (new Path (container , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory )), new TransferStatus ());
84+ new SpectraWriteFeature ( session ), new Path (new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory , Path .Type .volume )), new TransferStatus ());
85+ final Path test = new SpectraDirectoryFeature (session , new SpectraWriteFeature (session )).mkdir (new SpectraWriteFeature ( session ), new Path (container , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory )), new TransferStatus ());
8686 final PathAttributes attributes = new SpectraAttributesFinderFeature (session ).find (test );
8787 assertEquals (0L , attributes .getSize ());
8888 assertEquals (Checksum .parse ("d41d8cd98f00b204e9800998ecf8427e" ), attributes .getChecksum ());
@@ -94,21 +94,21 @@ public void testFindPlaceholder() throws Exception {
9494 @ Test
9595 public void testReadTildeInKey () throws Exception {
9696 final Path container = new SpectraDirectoryFeature (session , new SpectraWriteFeature (session )).mkdir (
97- new Path (new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory , Path .Type .volume )), new TransferStatus ());
97+ new SpectraWriteFeature ( session ), new Path (new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory , Path .Type .volume )), new TransferStatus ());
9898 container .attributes ().setRegion ("us-east-1" );
9999 final Path file = new Path (container , String .format ("%s~" , new AlphanumericRandomStringService ().random ()), EnumSet .of (Path .Type .file ));
100- new SpectraTouchFeature (session ).touch (file , new TransferStatus ());
100+ new SpectraTouchFeature (session ).touch (new SpectraWriteFeature ( session ), file , new TransferStatus ());
101101 new SpectraAttributesFinderFeature (session ).find (file );
102102 new SpectraDeleteFeature (session ).delete (Collections .singletonList (container ), new DisabledLoginCallback (), new Delete .DisabledCallback ());
103103 }
104104
105105 @ Test
106106 public void testReadAtSignInKey () throws Exception {
107107 final Path container = new SpectraDirectoryFeature (session , new SpectraWriteFeature (session )).mkdir (
108- new Path (new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory , Path .Type .volume )), new TransferStatus ());
108+ new SpectraWriteFeature ( session ), new Path (new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory , Path .Type .volume )), new TransferStatus ());
109109 container .attributes ().setRegion ("us-east-1" );
110110 final Path file = new Path (container , String .format ("%s@" , new AlphanumericRandomStringService ().random ()), EnumSet .of (Path .Type .file ));
111- new SpectraTouchFeature (session ).touch (file , new TransferStatus ());
111+ new SpectraTouchFeature (session ).touch (new SpectraWriteFeature ( session ), file , new TransferStatus ());
112112 new SpectraAttributesFinderFeature (session ).find (file );
113113 new SpectraDeleteFeature (session ).delete (Collections .singletonList (container ), new DisabledLoginCallback (), new Delete .DisabledCallback ());
114114 }
0 commit comments