Package com.consol.citrus.condition
Class FileCondition
- java.lang.Object
-
- com.consol.citrus.condition.AbstractCondition
-
- com.consol.citrus.condition.FileCondition
-
- All Implemented Interfaces:
com.consol.citrus.condition.Condition
public class FileCondition extends AbstractCondition
Tests for the presence of a file and returns true if the file exists- Since:
- 2.4
- Author:
- Martin Maher
-
-
Constructor Summary
Constructors Constructor Description FileCondition()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorMessage(com.consol.citrus.context.TestContext context)
File
getFile()
Gets the file.String
getFilePath()
Gets the filePath.String
getSuccessMessage(com.consol.citrus.context.TestContext context)
boolean
isSatisfied(com.consol.citrus.context.TestContext context)
void
setFile(File file)
Sets the file.void
setFilePath(String filePath)
Sets the filePath.String
toString()
-
Methods inherited from class com.consol.citrus.condition.AbstractCondition
getName
-
-
-
-
Method Detail
-
isSatisfied
public boolean isSatisfied(com.consol.citrus.context.TestContext context)
-
getSuccessMessage
public String getSuccessMessage(com.consol.citrus.context.TestContext context)
-
getErrorMessage
public String getErrorMessage(com.consol.citrus.context.TestContext context)
-
getFilePath
public String getFilePath()
Gets the filePath.- Returns:
- The path
-
setFilePath
public void setFilePath(String filePath)
Sets the filePath.- Parameters:
filePath
- The path to set
-
getFile
public File getFile()
Gets the file.- Returns:
- The file
-
setFile
public void setFile(File file)
Sets the file.- Parameters:
file
- The file to set
-
-