Home
last modified time | relevance | path

Searched refs:initMocks (Results 1 – 25 of 130) sorted by relevance

123456

/external/mockito/src/test/java/org/mockito/internal/session/
DDefaultMockitoSessionBuilderTest.java37 new DefaultMockitoSessionBuilder().initMocks((Object) null).startMocking().finishMocking(); in creates_sessions()
38 … new DefaultMockitoSessionBuilder().initMocks((Object[]) null).startMocking().finishMocking(); in creates_sessions()
39 …new DefaultMockitoSessionBuilder().initMocks(null, null).strictness(null).startMocking().finishMoc… in creates_sessions()
43 new DefaultMockitoSessionBuilder().initMocks(this).startMocking().finishMocking(); in creates_sessions()
44 new DefaultMockitoSessionBuilder().initMocks(new Object()).startMocking().finishMocking(); in creates_sessions()
52 …new DefaultMockitoSessionBuilder().initMocks(testClass).initMocks(nestedTestClass).startMocking().… in creates_sessions_for_multiple_test_class_instances_for_repeated_calls()
62 …new DefaultMockitoSessionBuilder().initMocks(testClass, nestedTestClass).startMocking().finishMock… in creates_sessions_for_multiple_test_class_instances_for_varargs_call()
73 .initMocks(testClass) in uses_logger_and_strictness()
/external/mockito/src/test/java/org/mockitousage/annotation/
DWrongSetOfAnnotationsTest.java21 MockitoAnnotations.initMocks(new Object() { in should_not_allow_Mock_and_Spy()
29 MockitoAnnotations.initMocks(new Object() { @InjectMocks @Spy List<?> mock; }); in should_not_allow_Spy_and_InjectMocks_on_interfaces()
38 MockitoAnnotations.initMocks(new Object() { in should_allow_Spy_and_InjectMocks()
48 MockitoAnnotations.initMocks(new Object() { in should_not_allow_Mock_and_InjectMocks()
55 MockitoAnnotations.initMocks(new Object() { in should_not_allow_Captor_and_Mock()
62 MockitoAnnotations.initMocks(new Object() { in should_not_allow_Captor_and_Spy()
69 MockitoAnnotations.initMocks(new Object() { in should_not_allow_Captor_and_InjectMocks()
DMockInjectionUsingConstructorTest.java36 import static org.mockito.MockitoAnnotations.initMocks;
50 MockitoAnnotations.initMocks(this); in before()
94 MockitoAnnotations.initMocks(new ATest()); in should_report_failure_only_when_object_initialization_throws_exception()
145 initMocks(new TestCase()); in injectMocksMustFailWithInterface()
158 initMocks(new TestCase()); in injectMocksMustFailWithEnum()
171 initMocks(new TestCase()); in injectMocksMustFailWithAbstractClass()
186 initMocks(new TestCase()); in injectMocksMustFailWithNonStaticInnerClass()
198 initMocks(testClass); in injectMocksMustSucceedWithStaticInnerClass()
212 initMocks(testClass); in injectMocksMustSucceedWithInstance()
DMockInjectionUsingSetterOrPropertyTest.java54 MockitoAnnotations.initMocks(this); in enforces_new_instances()
82 MockitoAnnotations.initMocks(this); in should_inject_mocks_if_annotated()
88 MockitoAnnotations.initMocks(this); in should_not_inject_if_not_annotated()
94 MockitoAnnotations.initMocks(this); in should_inject_mocks_for_class_hierarchy_if_annotated()
101 MockitoAnnotations.initMocks(this); in should_inject_mocks_by_name()
108 MockitoAnnotations.initMocks(this); in should_inject_spies()
114 MockitoAnnotations.initMocks(this); in should_insert_into_field_with_matching_name_when_multiple_fields_of_same_type_exists_in_injectee()
135 MockitoAnnotations.initMocks(failing); in should_report_nicely()
DSpyAnnotationTest.java74 MockitoAnnotations.initMocks(withSpy); in should_allow_spying_on_interfaces()
88 MockitoAnnotations.initMocks(withSpy); in should_allow_spying_on_interfaces_when_instance_is_concrete()
102 MockitoAnnotations.initMocks(new FailingSpy()); in should_report_when_no_arg_less_constructor()
119 MockitoAnnotations.initMocks(new FailingSpy()); in should_report_when_constructor_is_explosive()
139 MockitoAnnotations.initMocks(withSpy); in should_spy_abstract_class()
170 MockitoAnnotations.initMocks(outer); in should_spy_inner_class()
191 MockitoAnnotations.initMocks(new WithSpy()); in should_report_when_enclosing_instance_is_needed()
201 MockitoAnnotations.initMocks(new WithInnerPrivate()); in should_report_private_inner_not_supported()
215 MockitoAnnotations.initMocks(new WithInnerPrivateAbstract()); in should_report_private_abstract_inner_not_supported()
228 MockitoAnnotations.initMocks(new WithInnerPrivateStaticAbstract()); in should_report_private_static_abstract_inner_not_supported()
DCaptorAnnotationTest.java52 MockitoAnnotations.initMocks(this); in testNormalUsage()
81 MockitoAnnotations.initMocks(new WrongType()); in shouldScreamWhenWrongTypeForCaptor()
95 MockitoAnnotations.initMocks(new ToManyAnnotations()); in shouldScreamWhenMoreThanOneMockitoAnnotation()
107 MockitoAnnotations.initMocks(null); in shouldScreamWhenInitializingCaptorsForNullClass()
116 MockitoAnnotations.initMocks(sub); in shouldLookForAnnotatedCaptorsInSuperClasses()
DAnnotationsTest.java42 MockitoAnnotations.initMocks(this); in setup()
59 MockitoAnnotations.initMocks(null); in shouldScreamWhenInitializingMocksForNullClass()
70 MockitoAnnotations.initMocks(sub); in shouldLookForAnnotatedMocksInSuperClasses()
DSpyAnnotationInitializedInBaseClassTest.java38 MockitoAnnotations.initMocks(subClass); in shouldInitSpiesInBaseClass()
51 MockitoAnnotations.initMocks(this); in before()
DDeprecatedAnnotationEngineApiTest.java50 MockitoAnnotations.initMocks(test); in shouldInjectMocksIfThereIsNoUserDefinedEngine()
66 MockitoAnnotations.initMocks(test); in shouldRespectUsersEngine()
/external/mockito/src/test/java/org/mockitousage/session/
DMockitoSessionTest.java134 MockitoSession mockito = Mockito.mockitoSession().initMocks(this).startMocking();
148 MockitoSession mockito = Mockito.mockitoSession().initMocks(this).startMocking();
163 MockitoSession mockito = Mockito.mockitoSession().initMocks(this).startMocking();
180 MockitoSession mockito = Mockito.mockitoSession().initMocks(this).startMocking();
194 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
213 MockitoSession mockito = Mockito.mockitoSession().initMocks(this).startMocking();
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/extended/
DStaticMockitoSessionBuilder.java109 public StaticMockitoSessionBuilder initMocks(Object testClassInstance) { in initMocks() method in StaticMockitoSessionBuilder
110 instanceSessionBuilder = instanceSessionBuilder.initMocks(testClassInstance); in initMocks()
115 public StaticMockitoSessionBuilder initMocks(Object... testClassInstances) { in initMocks() method in StaticMockitoSessionBuilder
116 instanceSessionBuilder = instanceSessionBuilder.initMocks(testClassInstances); in initMocks()
/external/mockito/src/test/java/org/mockitousage/bugs/creation/
DConstructorInvokingMethodShouldNotRaiseExceptionTest.java24 MockitoAnnotations.initMocks(this); in should_be_able_to_create_spy()
40 MockitoAnnotations.initMocks(this); in should_be_able_to_create_spy()
59 MockitoAnnotations.initMocks(this); in should_be_able_to_create_spy()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStrictStubbingEndToEndTest.java83 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
97 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
111 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
151 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
/external/mockito/src/main/java/org/mockito/internal/session/
DDefaultMockitoSessionBuilder.java28 public MockitoSessionBuilder initMocks(Object testClassInstance) { in initMocks() method in DefaultMockitoSessionBuilder
36 public MockitoSessionBuilder initMocks(Object... testClassInstances) { in initMocks() method in DefaultMockitoSessionBuilder
39 initMocks(instance); in initMocks()
/external/mockito/src/main/java/org/mockito/session/
DMockitoSessionBuilder.java43 MockitoSessionBuilder initMocks(Object testClassInstance); in initMocks() method
61 MockitoSessionBuilder initMocks(Object... testClassInstances); in initMocks() method
/external/mockito/src/test/java/org/mockitousage/bugs/
DGenericsMockitoAnnotationsTest.java15 import static org.mockito.MockitoAnnotations.initMocks;
38 initMocks(this); in setUp()
DFinalHashCodeAndEqualsRaiseNPEInInitMocksTest.java22 MockitoAnnotations.initMocks(this); in dont_raise_NullPointerException()
/external/mockito/src/test/java/org/mockitousage/bugs/injection/
DParentTestMockInjectionTest.java22 MockitoAnnotations.initMocks(it); in injectMocksShouldInjectMocksFromTestSuperClasses()
43 MockitoAnnotations.initMocks(this); in setup()
/external/mockito/src/test/java/org/mockito/internal/verification/
DDescriptionTest.java18 import static org.mockito.MockitoAnnotations.initMocks;
30 initMocks(this); in setUp()
DVerificationOverTimeImplTest.java19 import static org.mockito.MockitoAnnotations.initMocks;
31 initMocks(this); in setUp()
/external/volley/src/test/java/com/android/volley/
DRequestQueueTest.java24 import static org.mockito.MockitoAnnotations.initMocks;
48 initMocks(this); in setUp()
DNetworkDispatcherTest.java29 import static org.mockito.MockitoAnnotations.initMocks;
58 initMocks(this); in setUp()
/external/dagger2/producers/src/test/java/dagger/producers/internal/
DAbstractProducerTest.java52 public void initMocks() { in initMocks() method in AbstractProducerTest
53 MockitoAnnotations.initMocks(this); in initMocks()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContentProviderClientTest.java7 import static org.mockito.MockitoAnnotations.initMocks;
46 initMocks(this); in setUp()
/external/mockito/src/main/java/org/mockito/
DMockitoAnnotations.java63 public static void initMocks(Object testClass) { in initMocks() method in MockitoAnnotations

123456