Searched refs:Mockito (Results 1 – 25 of 38) sorted by relevance
12
8 import org.mockito.Mockito;18 import static org.mockito.Mockito.withSettings;41 Mockito.reset(instance); in processInjection()44 Mockito.mock(instance.getClass(), withSettings() in processInjection()46 .defaultAnswer(Mockito.CALLS_REAL_METHODS) in processInjection()
58 public class BDDMockito extends Mockito {178 return new BDDOngoingStubbingImpl<T>(Mockito.when(methodCall)); in given()292 return new BDDStubberImpl(Mockito.doThrow(toBeThrown)); in willThrow()300 return new BDDStubberImpl(Mockito.doThrow(toBeThrown)); in willThrow()308 return new BDDStubberImpl(Mockito.doAnswer(answer)); in willAnswer()316 return new BDDStubberImpl(Mockito.doNothing()); in willDoNothing()324 return new BDDStubberImpl(Mockito.doReturn(toBeReturned)); in willReturn()332 return new BDDStubberImpl(Mockito.doCallRealMethod()); in willCallRealMethod()
98 Mockito.argThat(capturingMatcher); in capture()113 Mockito.argThat(varargCapturingMatcher); in captureVararg()
9 import org.mockito.Mockito;18 MockSettings mockSettings = Mockito.withSettings(); in process()33 return Mockito.mock(field.getType(), mockSettings); in process()
18 import static org.mockito.Mockito.withSettings;62 Mockito.reset(instance); in process()65 field.set(testInstance, Mockito.mock(instance.getClass(), withSettings() in process()67 .defaultAnswer(Mockito.CALLS_REAL_METHODS) in process()
7 import org.mockito.Mockito;19 return Mockito.mock(field.getType(), field.getName()); in process()
1 Mockito is a mocking framework with a clean and simple API.4 For Android, we need to combine Mockito with a MockMaker provided by the
11 import org.mockito.Mockito;25 Mockito.validateMockitoUsage(); in testFinished()
8 has been included in the Mockito builds since 2008 in Mockito 1.5.
11 import org.mockito.Mockito;18 import static org.mockito.Mockito.*;46 Mockito.verifyNoMoreInteractions(mockCursor); in verifyForward()
6 import static org.mockito.Mockito.mock;7 import static org.mockito.Mockito.verify;8 import static org.mockito.Mockito.verifyNoMoreInteractions;
8 import static org.mockito.Mockito.mock;9 import static org.mockito.Mockito.when;
9 import static org.mockito.Mockito.mock;10 import static org.mockito.Mockito.never;11 import static org.mockito.Mockito.verify;12 import static org.mockito.Mockito.when;
19 import static org.mockito.Mockito.atLeast;20 import static org.mockito.Mockito.verify;21 import static org.mockito.Mockito.when;
10 import org.mockito.Mockito;50 return Mockito.mock(type, new ThrowsSmartNullPointer(invocation, location)); in answer()
7 import org.mockito.Mockito;
8 import org.mockito.Mockito;
9 import org.mockito.Mockito;
3 is used in particular by Mockito.
10 Mocking framework. Looks very like Mockito (see http://mockito.org).