Class TimeClause

  • All Implemented Interfaces:
    org.apache.camel.BinaryPredicate, org.apache.camel.Predicate

    public class TimeClause
    extends Object
    implements org.apache.camel.BinaryPredicate
    Represents time based clauses for setting expectations on the mocks. Such as time constrains for the received messages.
    • Constructor Detail

      • TimeClause

        public TimeClause​(org.apache.camel.Expression left,
                          org.apache.camel.Expression right)
    • Method Detail

      • beforeNext

        public void beforeNext()
      • afterPrevious

        public void afterPrevious()
      • getLeft

        public org.apache.camel.Expression getLeft()
        Specified by:
        getLeft in interface org.apache.camel.BinaryPredicate
      • getRight

        public org.apache.camel.Expression getRight()
        Specified by:
        getRight in interface org.apache.camel.BinaryPredicate
      • matches

        public boolean matches​(org.apache.camel.Exchange exchange)
        Specified by:
        matches in interface org.apache.camel.Predicate
      • matchesReturningFailureMessage

        public String matchesReturningFailureMessage​(org.apache.camel.Exchange exchange)
        Specified by:
        matchesReturningFailureMessage in interface org.apache.camel.BinaryPredicate
      • matches

        protected boolean matches​(org.apache.camel.Exchange exchange,
                                  Object leftValue,
                                  Object rightValue)
      • getOperator

        public String getOperator()
        Specified by:
        getOperator in interface org.apache.camel.BinaryPredicate
      • getOperationText

        protected String getOperationText()