use of com.axway.ats.rbv.filesystem.FileSystemFolderSearchTerm in project ats-framework by Axway.
the class Test_FileSystemFolder method getDescription.
@Test
public void getDescription() {
FileSystemFolder folder = (FileSystemFolder) storage.getFolder(new FileSystemFolderSearchTerm(path, null, true, false));
assertEquals("File system folder '" + path + "' on the local machine", folder.getDescription());
}
use of com.axway.ats.rbv.filesystem.FileSystemFolderSearchTerm in project ats-framework by Axway.
the class Test_FileSystemFolder method close.
@Test
public void close() throws Exception {
expectNew(SystemOperations.class, "localhost:0000").andReturn(systemOperations);
expect(systemOperations.getOperatingSystemType()).andReturn(OperatingSystemType.LINUX);
replayAll();
FileSystemFolder folder = (FileSystemFolder) storage.getFolder(new FileSystemFolderSearchTerm(path, null, true, false));
folder.open();
folder.close();
verifyAll();
}
use of com.axway.ats.rbv.filesystem.FileSystemFolderSearchTerm in project ats-framework by Axway.
the class Test_FileSystemFolder method getMetaDataCountsNegativeFolderNotOpen.
@Test(expected = MatchableNotOpenException.class)
public void getMetaDataCountsNegativeFolderNotOpen() throws Exception {
FileSystemFolder folder = (FileSystemFolder) storage.getFolder(new FileSystemFolderSearchTerm(path, null, true, false));
folder.getMetaDataCounts();
}
use of com.axway.ats.rbv.filesystem.FileSystemFolderSearchTerm in project ats-framework by Axway.
the class Test_FileSystemFolderSearchTerm method constructorWithFolder.
@Test
public void constructorWithFolder() {
FileSystemFolderSearchTerm searchTerm = new FileSystemFolderSearchTerm("/test/", null, true, false);
assertEquals("/test/", searchTerm.getPath());
assertEquals(false, searchTerm.isIncludeDirs());
}
use of com.axway.ats.rbv.filesystem.FileSystemFolderSearchTerm in project ats-framework by Axway.
the class Test_FileSystemFolder method openNegativeInvalidPath.
@Test
public void openNegativeInvalidPath() throws Exception {
expectNew(SystemOperations.class, "localhost:0000").andReturn(systemOperations);
expect(systemOperations.getOperatingSystemType()).andReturn(OperatingSystemType.LINUX);
replayAll();
//should pass - only warning should be logged
FileSystemFolder folder = (FileSystemFolder) storage.getFolder(new FileSystemFolderSearchTerm(";;;", null, true));
folder.open();
verifyAll();
}
Aggregations