Class ChainReturns

  • All Implemented Interfaces:
    org.mockito.stubbing.Answer<Object>

    public class ChainReturns
    extends Object
    implements org.mockito.stubbing.Answer<Object>
    Created by gauee on 12/11/15.
    • Constructor Detail

      • ChainReturns

        public ChainReturns​(Object toBeReturn,
                            Object... toBeReturnedOthers)
    • Method Detail

      • answer

        public Object answer​(org.mockito.invocation.InvocationOnMock invocationOnMock)
                      throws Throwable
        Specified by:
        answer in interface org.mockito.stubbing.Answer<Object>
        Throws:
        Throwable