use of com.axway.ats.rbv.filesystem.FileSystemStorage in project ats-framework by Axway.
the class Test_FileSystemStorage method getFolderDoNotIncludeSubdirs.
@Test
public void getFolderDoNotIncludeSubdirs() {
FileSystemStorage storage = new FileSystemStorage();
assertNotNull(storage.getFolder(new FileSystemFolderSearchTerm("/", null, true, false)));
}
use of com.axway.ats.rbv.filesystem.FileSystemStorage in project ats-framework by Axway.
the class Test_FileSystemFolder method openNegativeInvalidHost.
@Test(expected = InvalidInputArgumentsException.class)
public void openNegativeInvalidHost() throws Exception {
expectNew(SystemOperations.class, "invalid hosttt").andThrow(new RbvStorageException("Could not open File system folder '/tmp/test/' on server 'invalid hosttt'"));
replayAll();
FileSystemStorage invalidStorage = new FileSystemStorage("invalid hosttt");
FileSystemFolder folder = (FileSystemFolder) invalidStorage.getFolder(new FileSystemFolderSearchTerm(path, null, true));
folder.open();
verifyAll();
}
use of com.axway.ats.rbv.filesystem.FileSystemStorage in project ats-framework by Axway.
the class Test_FileSystemFolder method setUpTest_FileSystemFolder.
@Before
public void setUpTest_FileSystemFolder() throws Exception {
fileSystemOperations = createMock(FileSystemOperations.class);
systemOperations = createMock(SystemOperations.class);
storage = new FileSystemStorage();
}
use of com.axway.ats.rbv.filesystem.FileSystemStorage in project ats-framework by Axway.
the class Test_FileSystemStorage method getFolder.
@Test
public void getFolder() {
FileSystemStorage storage = new FileSystemStorage("localhost:0000");
assertNotNull(storage.getFolder(new FileSystemFolderSearchTerm("/", null, true)));
}
Aggregations