Home | History | Annotate | Download | only in unit

Lines Matching refs:when

74             when(mock.doNothing()).thenReturn(SOME_ARBITRARY_DOUBLE);
75 when(mock.doSomethingPositive()).thenReturn(SOME_ARBITRARY_POSITIVE_INT);
76 when(mock.doSomethingNoError()).thenReturn(NO_ERROR);
77 when(mock.doSomethingPermissionDenied()).thenReturn(PERMISSION_DENIED);
78 when(mock.doSomethingAlreadyExists()).thenReturn(ALREADY_EXISTS);
79 when(mock.doSomethingBadValue()).thenReturn(BAD_VALUE);
80 when(mock.doSomethingDeadObject()).thenReturn(DEAD_OBJECT);
81 when(mock.doSomethingBadPolicy()).thenReturn(EACCES);
82 when(mock.doSomethingDeviceBusy()).thenReturn(EBUSY);
83 when(mock.doSomethingNoSuchDevice()).thenReturn(ENODEV);
84 when(mock.doSomethingUnknownErrorCode()).thenReturn(SOME_ARBITRARY_NEGATIVE_INT);
85 when(mock.doSomethingThrowDeadObjectException()).thenThrow(new DeadObjectException());
86 when(mock.doSomethingThrowTransactionTooLargeException()).thenThrow(