org.aludratest.service.file
Interface FileVerification

All Superinterfaces:
Action, Verification
All Known Implementing Classes:
FileActionImpl

public interface FileVerification
extends Verification

Verification interface of the FileService.

Author:
Volker Bergmann

Method Summary
 void assertAbsence(String filePath)
          Expects a file to be absent.
 void assertDirectory(String filePath)
          Asserts that the file object at the given location is a directory
 void assertFile(String filePath)
          Asserts that the file object at the given location is not a directory
 void assertPresence(String filePath)
          Expects a file to exist.
 
Methods inherited from interface org.aludratest.service.Action
createAttachments, createDebugAttachments, setSystemConnector
 

Method Detail

assertPresence

void assertPresence(String filePath)
Expects a file to exist.

Parameters:
filePath - the path of the file of which to assert presence
Throws:
org.aludratest.service.file.exception.FileAbsentException - if the file was not found.

assertAbsence

void assertAbsence(String filePath)
Expects a file to be absent.

Parameters:
filePath - the path of the file of which to assert absence
Throws:
org.aludratest.service.file.exception.FilePresentException - if the file was encountered.

assertFile

void assertFile(String filePath)
Asserts that the file object at the given location is not a directory

Parameters:
filePath -
Throws:
org.aludratest.service.file.exception.NotAFileException - if the file object located at the given path is a directory

assertDirectory

void assertDirectory(String filePath)
Asserts that the file object at the given location is a directory

Parameters:
filePath -
Throws:
org.aludratest.service.file.exception.NotADirectoryException - if the file object located at the given path is not a directory


Copyright © 2015 aludratest.org. All rights reserved.