Class AbstractListExpectation.DefaultExpectation<T>

  • Enclosing class:
    AbstractListExpectation

    protected class AbstractListExpectation.DefaultExpectation<T>
    extends java.lang.Object
    Default expectation allows for anything to be provided as an expectation.
    Author:
    Ikasan Development Team
    • Constructor Detail

      • DefaultExpectation

        protected DefaultExpectation​(T expectation,
                                     ExpectationComparator<?,​?> expectationComparator)
        Constructor
        Parameters:
        expectation -
    • Method Detail

      • getOrder

        public java.lang.Integer getOrder()
        Order the DefaultExpectation is declared
        Returns:
        order
      • setOrder

        public void setOrder​(int order)
        Order the DefaultExpectation is declared
        Parameters:
        order -
      • setDescription

        protected void setDescription​(java.lang.String description)
        Setter for exception description
        Parameters:
        description -
      • getDescription

        protected java.lang.String getDescription()
        Getter for exception description
      • getExpectation

        protected T getExpectation()
        Getter for generic expectation type
        Returns:
      • getExpectationComparator

        protected ExpectationComparator<?,​?> getExpectationComparator()
        Getter for expectation comparator
        Returns:
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object