Class InvocationContainerImpl

    • Constructor Detail

    • Method Detail

      • setInvocationForPotentialStubbing

        public void setInvocationForPotentialStubbing​(MatchableInvocation invocation)
      • resetInvocationForPotentialStubbing

        public void resetInvocationForPotentialStubbing​(MatchableInvocation invocationMatcher)
      • addAnswer

        public void addAnswer​(Answer answer,
                              Strictness stubbingStrictness)
      • addAnswer

        public StubbedInvocationMatcher addAnswer​(Answer answer,
                                                  boolean isConsecutive,
                                                  Strictness stubbingStrictness)
        Adds new stubbed answer and returns the invocation matcher the answer was added to.
      • addConsecutiveAnswer

        public void addConsecutiveAnswer​(Answer answer)
      • answerTo

        java.lang.Object answerTo​(Invocation invocation)
                           throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • setAnswersForStubbing

        public void setAnswersForStubbing​(java.util.List<Answer<?>> answers,
                                          Strictness strictness)
        Sets the answers declared with 'doAnswer' style.
      • hasAnswersForStubbing

        public boolean hasAnswersForStubbing()
      • hasInvocationForPotentialStubbing

        public boolean hasInvocationForPotentialStubbing()
      • toString

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

        public java.util.List<Invocation> getInvocations()
      • clearInvocations

        public void clearInvocations()
      • getStubbingsDescending

        public java.util.List<Stubbing> getStubbingsDescending()
        Stubbings in descending order, most recent first
      • getStubbingsAscending

        public java.util.Collection<Stubbing> getStubbingsAscending()
        Stubbings in ascending order, most recent last
      • invokedMock

        public java.lang.Object invokedMock()