Lines Matching refs:Action
118 return new BehaviourImpl(new Action() {
130 return new BehaviourImpl(new Action() {
140 return new BehaviourImpl(new Action() {
200 private static List<Action> sUnfinishedStubbingActions = new ArrayList<Action>();
492 private final Action mAction;
494 private BehaviourImpl(Action action) {
495 mAction = action;
627 * The action to be associated with the stubbed method.
632 private Action mStubbingAction = null;
710 expect(mStubbingAction != null, "stubbing mock doesn't know what action to perform");
783 StackTraceElement callSite, final Action stubbingAction) {
787 action.
792 // when all the matchers match. Further, the action that method call needs to take
794 // proceed to execute the original action.
799 Action setCapturesThenAction = new Action() {
813 private void checkThisActionCanBeUsedForThisMethod(Method method, final Action stubbingAction,
818 // We could not determine the type returned by this action at the time we
967 /** A pairing of a method call and an action to be performed when that call happens. */
970 private final Action mAction;
972 public StubbedCall(MethodCall methodCall, Action action) {
974 mAction = action;
979 return "StubbedCall [methodCall=" + mMethodCall + ", action=" + mAction + "]";
983 /** Represents an action to be performed as a result of a method call. */
984 private interface Action {
986 /** The type of the action, or null if we can't determine the type at stub time. */