Class MessageCondition

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

public class MessageCondition extends AbstractCondition
Condition checks whether a message is present in test context message store. Messages are automatically stored in that store when sending and receiving messages with respective test actions. So this condition can be used to wait for a message to arrive or being sent out. Message to check is identified by its name in the message store.
Since:
2.6.2
  • Constructor Details

    • MessageCondition

      public MessageCondition()
  • Method Details

    • isSatisfied

      public boolean isSatisfied(TestContext context)
    • getSuccessMessage

      public String getSuccessMessage(TestContext context)
    • getErrorMessage

      public String getErrorMessage(TestContext context)
    • setMessageName

      public void setMessageName(String messageName)
      Sets the messageName property.
      Parameters:
      messageName - the message name to set
    • getMessageName

      public String getMessageName()
      Gets the value of the messageName property.
      Returns:
      the messageName
    • toString

      public String toString()
      Overrides:
      toString in class Object