Skip to content

Commit 892005d

Browse files
committed
Add Test for ExistsDirectory
1 parent d2c920b commit 892005d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

gxexternalproviders/src/test/java/com/genexus/db/driver/TestExternalProvider.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ public void testCopyMethod(){
136136
copy(copyFileName, ResourceAccessControlList.PublicRead);
137137
}
138138

139+
@Test
140+
public void testExistsDirectory(){
141+
String copyFileName = buildRandomTextFileName("tempFolder/f1/f2/test-upload-and-copy");
142+
String upload = provider.upload(testSampleFilePath, copyFileName, ResourceAccessControlList.Default);
143+
assertTrue("Not found URL: " + upload, urlExists(upload));
144+
boolean existsDir = provider.existsDirectory("tempFolder/f1");
145+
assertTrue("Directory does not exists \"tempFolder/f1\"", existsDir);
146+
}
147+
139148
@Test
140149
public void testCopyPrivateMethod(){
141150
String copyFileName = buildRandomTextFileName("copy-text-private");

0 commit comments

Comments
 (0)