Class 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 Detail

      • FileCondition

        public FileCondition()
        Default constructor.
    • 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