26
26
*/
27
27
package com .owncloud .android ;
28
28
29
+ import static org .junit .Assert .assertTrue ;
30
+
29
31
import com .owncloud .android .lib .common .operations .RemoteOperationResult ;
30
32
import com .owncloud .android .lib .resources .files .CreateFolderRemoteOperation ;
31
33
import com .owncloud .android .lib .resources .files .ExistenceCheckRemoteOperation ;
39
41
import java .util .Iterator ;
40
42
import java .util .List ;
41
43
42
- import static org .junit .Assert .assertTrue ;
43
-
44
44
/**
45
45
* Class to test Create Folder Operation
46
46
*/
@@ -70,13 +70,13 @@ public void setUp() {
70
70
public void testCreateFolder () {
71
71
String remotePath = mFullPath2FolderBase ;
72
72
mCreatedFolderPaths .add (remotePath );
73
- RemoteOperationResult result = new CreateFolderRemoteOperation (remotePath , true ).execute (client );
73
+ RemoteOperationResult result = new CreateFolderRemoteOperation (remotePath , true ).execute (nextcloudClient );
74
74
assertTrue (result .isSuccess ());
75
75
76
76
// Create Subfolder
77
77
remotePath = mFullPath2FolderBase + FOLDER_PATH_BASE ;
78
78
mCreatedFolderPaths .add (remotePath );
79
- result = new CreateFolderRemoteOperation (remotePath , true ).execute (client );
79
+ result = new CreateFolderRemoteOperation (remotePath , true ).execute (nextcloudClient );
80
80
assertTrue (result .isSuccess ());
81
81
}
82
82
@@ -87,31 +87,31 @@ public void testCreateFolder() {
87
87
@ Test
88
88
public void testCreateFolderSpecialCharactersOnNewVersion () {
89
89
String remotePath = mFullPath2FolderBase + "_<" ;
90
- RemoteOperationResult result = new CreateFolderRemoteOperation (remotePath , true ).execute (client );
90
+ RemoteOperationResult result = new CreateFolderRemoteOperation (remotePath , true ).execute (nextcloudClient );
91
91
assertTrue ("Remote path: " + remotePath , result .isSuccess ());
92
92
93
93
remotePath = mFullPath2FolderBase + "_>" ;
94
- result = new CreateFolderRemoteOperation (remotePath , true ).execute (client );
94
+ result = new CreateFolderRemoteOperation (remotePath , true ).execute (nextcloudClient );
95
95
assertTrue ("Remote path: " + remotePath , result .isSuccess ());
96
96
97
97
remotePath = mFullPath2FolderBase + "_:" ;
98
- result = new CreateFolderRemoteOperation (remotePath , true ).execute (client );
98
+ result = new CreateFolderRemoteOperation (remotePath , true ).execute (nextcloudClient );
99
99
assertTrue ("Remote path: " + remotePath , result .isSuccess ());
100
100
101
101
remotePath = mFullPath2FolderBase + "_\" " ;
102
- result = new CreateFolderRemoteOperation (remotePath , true ).execute (client );
102
+ result = new CreateFolderRemoteOperation (remotePath , true ).execute (nextcloudClient );
103
103
assertTrue ("Remote path: " + remotePath , result .isSuccess ());
104
104
105
105
remotePath = mFullPath2FolderBase + "_|" ;
106
- result = new CreateFolderRemoteOperation (remotePath , true ).execute (client );
106
+ result = new CreateFolderRemoteOperation (remotePath , true ).execute (nextcloudClient );
107
107
assertTrue ("Remote path: " + remotePath , result .isSuccess ());
108
108
109
109
remotePath = mFullPath2FolderBase + "_?" ;
110
- result = new CreateFolderRemoteOperation (remotePath , true ).execute (client );
110
+ result = new CreateFolderRemoteOperation (remotePath , true ).execute (nextcloudClient );
111
111
assertTrue ("Remote path: " + remotePath , result .isSuccess ());
112
112
113
113
remotePath = mFullPath2FolderBase + "_*" ;
114
- result = new CreateFolderRemoteOperation (remotePath , true ).execute (client );
114
+ result = new CreateFolderRemoteOperation (remotePath , true ).execute (nextcloudClient );
115
115
assertTrue ("Remote path: " + remotePath , result .isSuccess ());
116
116
}
117
117
0 commit comments