Interface Condition


  • public interface Condition
    Tests whether a condition is satisfied.
    Since:
    2.4
    Author:
    Martin Maher
    • Method Detail

      • getName

        String getName()
        Gets the condition name.
        Returns:
      • isSatisfied

        boolean isSatisfied​(TestContext context)
        Tests the condition returning true if it is satisfied.
        Parameters:
        context - the citrus test context
        Returns:
        true when satisfied otherwise false
      • getSuccessMessage

        String getSuccessMessage​(TestContext context)
        Construct proper success message for this condition.
        Parameters:
        context - the citrus test context
        Returns:
      • getErrorMessage

        String getErrorMessage​(TestContext context)
        Construct proper error message for this condition.
        Parameters:
        context - the citrus test context
        Returns: