@@ -54,7 +54,7 @@ public void testIsSupported() throws Exception {
5454 @ Test
5555 public void testToDownloadUrlNoPassword () throws Exception {
5656 final Path home = new NextcloudHomeFeature (session .getHost ()).find ();
57- final Path file = new DAVTouchFeature (new NextcloudWriteFeature (session )). touch ( new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .file )), new TransferStatus ());
57+ final Path file = new DAVTouchFeature (session ). touch ( new NextcloudWriteFeature (session ), new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .file )), new TransferStatus ());
5858 final DescriptiveUrl url = new NextcloudShareFeature (session ).toDownloadUrl (file , Share .Sharee .world , null , new DisabledPasswordCallback ());
5959 assertNotSame (DescriptiveUrl .EMPTY , url );
6060 new DAVDeleteFeature (session ).delete (Collections .singletonList (file ), new DisabledPasswordCallback (), new Delete .DisabledCallback ());
@@ -63,7 +63,7 @@ public void testToDownloadUrlNoPassword() throws Exception {
6363 @ Test
6464 public void testToDownloadUrlSharee () throws Exception {
6565 final Path home = new NextcloudHomeFeature (session .getHost ()).find ();
66- final Path file = new DAVTouchFeature (new NextcloudWriteFeature (session )). touch ( new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .file )), new TransferStatus ());
66+ final Path file = new DAVTouchFeature (session ). touch ( new NextcloudWriteFeature (session ), new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .file )), new TransferStatus ());
6767 final NextcloudShareFeature provider = new NextcloudShareFeature (session );
6868 final Set <Share .Sharee > sharees = provider .getSharees (Share .Type .download );
6969 assertFalse (sharees .isEmpty ());
@@ -80,7 +80,7 @@ public void testToDownloadUrlSharee() throws Exception {
8080 @ Test
8181 public void testToUploadUrlNoPassword () throws Exception {
8282 final Path home = new NextcloudHomeFeature (session .getHost ()).find ();
83- final Path folder = new DAVDirectoryFeature (session , new NextcloudAttributesFinderFeature (session )).mkdir (new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory )), new TransferStatus ());
83+ final Path folder = new DAVDirectoryFeature (session , new NextcloudAttributesFinderFeature (session )).mkdir (new NextcloudWriteFeature ( session ), new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory )), new TransferStatus ());
8484 final DescriptiveUrl url = new NextcloudShareFeature (session ).toUploadUrl (folder , Share .Sharee .world , null , new DisabledPasswordCallback ());
8585 assertNotSame (DescriptiveUrl .EMPTY , url );
8686 new DAVDeleteFeature (session ).delete (Collections .singletonList (folder ), new DisabledPasswordCallback (), new Delete .DisabledCallback ());
@@ -89,7 +89,7 @@ public void testToUploadUrlNoPassword() throws Exception {
8989 @ Test
9090 public void testToDownloadUrlPasswordTooShort () throws Exception {
9191 final Path home = new NextcloudHomeFeature (session .getHost ()).find ();
92- final Path folder = new DAVDirectoryFeature (session , new NextcloudAttributesFinderFeature (session )).mkdir (new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory )), new TransferStatus ());
92+ final Path folder = new DAVDirectoryFeature (session , new NextcloudAttributesFinderFeature (session )).mkdir (new NextcloudWriteFeature ( session ), new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory )), new TransferStatus ());
9393 try {
9494 new NextcloudShareFeature (session ).toDownloadUrl (folder , Share .Sharee .world , null , new DisabledPasswordCallback () {
9595 @ Override
@@ -108,7 +108,7 @@ public Credentials prompt(final Host bookmark, final String title, final String
108108 @ Test
109109 public void testToDownloadUrlPassword () throws Exception {
110110 final Path home = new NextcloudHomeFeature (session .getHost ()).find ();
111- final Path file = new DAVTouchFeature (new NextcloudWriteFeature (session )). touch ( new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .file )), new TransferStatus ());
111+ final Path file = new DAVTouchFeature (session ). touch ( new NextcloudWriteFeature (session ), new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .file )), new TransferStatus ());
112112 final DescriptiveUrl url = new NextcloudShareFeature (session ).toDownloadUrl (file , Share .Sharee .world , null , new DisabledPasswordCallback () {
113113 @ Override
114114 public Credentials prompt (final Host bookmark , final String title , final String reason , final LoginOptions options ) {
@@ -146,7 +146,7 @@ public Credentials prompt(final Host bookmark, final String title, final String
146146 @ Test
147147 public void testToUploadUrl () throws Exception {
148148 final Path home = new NextcloudHomeFeature (session .getHost ()).find ();
149- final Path folder = new DAVDirectoryFeature (session , new NextcloudAttributesFinderFeature (session )).mkdir (new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory )), new TransferStatus ());
149+ final Path folder = new DAVDirectoryFeature (session , new NextcloudAttributesFinderFeature (session )).mkdir (new NextcloudWriteFeature ( session ), new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory )), new TransferStatus ());
150150 final DescriptiveUrl url = new NextcloudShareFeature (session ).toUploadUrl (folder , Share .Sharee .world , null , new DisabledPasswordCallback () {
151151 @ Override
152152 public Credentials prompt (final Host bookmark , final String title , final String reason , final LoginOptions options ) {
@@ -160,7 +160,7 @@ public Credentials prompt(final Host bookmark, final String title, final String
160160 @ Test
161161 public void testToUploadUrlPasswordTooShort () throws Exception {
162162 final Path home = new NextcloudHomeFeature (session .getHost ()).find ();
163- final Path folder = new DAVDirectoryFeature (session , new NextcloudAttributesFinderFeature (session )).mkdir (new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory )), new TransferStatus ());
163+ final Path folder = new DAVDirectoryFeature (session , new NextcloudAttributesFinderFeature (session )).mkdir (new NextcloudWriteFeature ( session ), new Path (home , new AlphanumericRandomStringService ().random (), EnumSet .of (Path .Type .directory )), new TransferStatus ());
164164 try {
165165 new NextcloudShareFeature (session ).toUploadUrl (folder , Share .Sharee .world , null , new DisabledPasswordCallback () {
166166 @ Override
0 commit comments