Package org.citrusframework.condition
Class FileCondition
java.lang.Object
org.citrusframework.condition.AbstractCondition
org.citrusframework.condition.FileCondition
- All Implemented Interfaces:
Condition
Tests for the presence of a file and returns true if the file exists
- Since:
- 2.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetErrorMessage(TestContext context) getFile()Gets the file.Gets the filePath.getSuccessMessage(TestContext context) booleanisSatisfied(TestContext context) voidSets the file.voidsetFilePath(String filePath) Sets the filePath.toString()Methods inherited from class org.citrusframework.condition.AbstractCondition
getName
-
Constructor Details
-
FileCondition
public FileCondition()Default constructor.
-
-
Method Details
-
isSatisfied
-
getSuccessMessage
-
getErrorMessage
-
getFilePath
Gets the filePath.- Returns:
- The path
-
setFilePath
Sets the filePath.- Parameters:
filePath- The path to set
-
getFile
Gets the file.- Returns:
- The file
-
setFile
Sets the file.- Parameters:
file- The file to set
-
toString
-