Home
last modified time | relevance | path

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

12

/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()
DSpyAnnotationTest.java69 MockitoAnnotations.initMocks(withSpy); in should_allow_spying_on_interfaces()
83 MockitoAnnotations.initMocks(withSpy); in should_allow_spying_on_interfaces_when_instance_is_concrete()
97 MockitoAnnotations.initMocks(new FailingSpy()); in should_report_when_no_arg_less_constructor()
114 MockitoAnnotations.initMocks(new FailingSpy()); in should_report_when_constructor_is_explosive()
134 MockitoAnnotations.initMocks(withSpy); in should_spy_abstract_class()
165 MockitoAnnotations.initMocks(outer); in should_spy_inner_class()
186 MockitoAnnotations.initMocks(new WithSpy()); in should_report_when_enclosing_instance_is_needed()
196 MockitoAnnotations.initMocks(new WithInnerPrivate()); in should_report_private_inner_not_supported()
210 MockitoAnnotations.initMocks(new WithInnerPrivateAbstract()); in should_report_private_abstract_inner_not_supported()
223 MockitoAnnotations.initMocks(new WithInnerPrivateStaticAbstract()); in should_report_private_static_abstract_inner_not_supported()
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()
DCaptorAnnotationTest.java52 MockitoAnnotations.initMocks(this); in testNormalUsage()
81 MockitoAnnotations.initMocks(new WrongType()); in shouldScreamWhenWrongTypeForCaptor()
95 MockitoAnnotations.initMocks(new ToManyAnnotations()); in shouldScreamWhenMoreThanOneMockitoAnnotaton()
107 MockitoAnnotations.initMocks(null); in shouldScreamWhenInitializingCaptorsForNullClass()
116 MockitoAnnotations.initMocks(sub); in shouldLookForAnnotatedCaptorsInSuperClasses()
DAnnotationsTest.java41 MockitoAnnotations.initMocks(this); in setup()
58 MockitoAnnotations.initMocks(null); in shouldScreamWhenInitializingMocksForNullClass()
69 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()
DCaptorAnnotationUnhappyPathTest.java34 MockitoAnnotations.initMocks(this); in shouldFailIfCaptorHasWrongType()
/external/mockito/src/test/java/org/mockito/internal/session/
DDefaultMockitoSessionBuilderTest.java21 new DefaultMockitoSessionBuilder().initMocks(null).startMocking().finishMocking(); in creates_sessions()
22 …new DefaultMockitoSessionBuilder().initMocks(null).strictness(null).startMocking().finishMocking(); in creates_sessions()
26 new DefaultMockitoSessionBuilder().initMocks(this).startMocking().finishMocking(); in creates_sessions()
27 new DefaultMockitoSessionBuilder().initMocks(new Object()).startMocking().finishMocking(); in creates_sessions()
/external/mockito/src/test/java/org/mockitousage/bugs/creation/
DConstructorInvokingMethodShouldNotRaiseExceptionTest.java20 MockitoAnnotations.initMocks(this); in should_be_able_to_create_spy()
36 MockitoAnnotations.initMocks(this); in should_be_able_to_create_spy()
55 MockitoAnnotations.initMocks(this); in should_be_able_to_create_spy()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStrictStubbingEndToEndTest.java79 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
93 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
107 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
147 …MockitoSession mockito = Mockito.mockitoSession().initMocks(this).strictness(Strictness.STRICT_STU…
/external/mockito/src/test/java/org/mockitousage/session/
DMockitoSessionTest.java99 MockitoSession mockito = Mockito.mockitoSession().initMocks(this).startMocking();
113 MockitoSession mockito = Mockito.mockitoSession().initMocks(this).startMocking();
127 MockitoSession mockito = Mockito.mockitoSession().initMocks(this).startMocking();
/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.java14 import static org.mockito.MockitoAnnotations.initMocks;
26 initMocks(this); in setUp()
DVerificationOverTimeImplTest.java15 import static org.mockito.MockitoAnnotations.initMocks;
27 initMocks(this); in setUp()
DVerificationWithDescriptionTest.java23 MockitoAnnotations.initMocks(this); in setUp()
/external/volley/src/test/java/com/android/volley/
DRequestQueueTest.java31 import static org.mockito.MockitoAnnotations.initMocks;
45 initMocks(this); in setUp()
DRequestQueueIntegrationTest.java42 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/mockito/src/main/java/org/mockito/
DMockitoAnnotations.java63 public static void initMocks(Object testClass) { in initMocks() method in MockitoAnnotations
/external/mockito/src/main/java/org/mockito/session/
DMockitoSessionBuilder.java38 MockitoSessionBuilder initMocks(Object testClassInstance); in initMocks() method
/external/mockito/src/test/java/org/mockitousage/bugs/
DFinalHashCodeAndEqualsRaiseNPEInInitMocksTest.java22 MockitoAnnotations.initMocks(this); in dont_raise_NullPointerException()
/external/mockito/src/main/java/org/mockito/internal/session/
DDefaultMockitoSessionBuilder.java15 public MockitoSessionBuilder initMocks(Object testClassInstance) { in initMocks() method in DefaultMockitoSessionBuilder
/external/mockito/src/main/java/org/mockito/internal/framework/
DDefaultMockitoSession.java27 MockitoAnnotations.initMocks(testClassInstance); in DefaultMockitoSession()

12