Class FileCondition

java.lang.Object
org.citrusframework.condition.AbstractCondition
org.citrusframework.condition.FileCondition
All Implemented Interfaces:
Condition

public class FileCondition extends AbstractCondition
Tests for the presence of a file and returns true if the file exists
Since:
2.4
  • Constructor Details

    • FileCondition

      public FileCondition()
      Default constructor.
  • Method Details

    • isSatisfied

      public boolean isSatisfied(TestContext context)
    • getSuccessMessage

      public String getSuccessMessage(TestContext context)
    • getErrorMessage

      public String getErrorMessage(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
    • toString

      public String toString()
      Overrides:
      toString in class Object