Lines Matching defs:when
60 * doReturn("hello").when(mockFoo).aString(anyInt()); // Stub the mock to return "hello".
61 * doThrow(new IOException("oh noes")).when(mockFoo).doSomething();
106 * between using one framework to using the other, e.g., when developing both an Android application
199 /** The list of outstanding calls to when() that haven't finished, used to check for errors. */
337 /** Recurse up the class hierarchy injecting mocks as we go, stopping when we reach Object. */
499 public <T> T when(T mock) {
514 * required that the anyInt() method store the value somewhere for use when the someMethod
618 * <p>It is not null when in the verification state, and it is actually used to determine if we
629 * <p>It is not null when in the stubbing state, and it is actually used to determine if we are
792 // when all the matchers match. Further, the action that method call needs to take
918 // error message than the class cast exception you'll get when you try to retrieve the value.
959 /** Call this function when you don't expect there to be any outstanding matcher objects. */
967 /** A pairing of a method call and an action to be performed when that call happens. */