Home
last modified time | relevance | path

Searched refs:MockitoAnnotations (Results 1 – 25 of 37) 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()
DSpyAnnotationTest.java16 import org.mockito.MockitoAnnotations;
69 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()
[all …]
DMockInjectionUsingSetterOrPropertyTest.java12 import org.mockito.MockitoAnnotations;
54 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.java12 import org.mockito.MockitoAnnotations;
41 MockitoAnnotations.initMocks(this); in setup()
58 MockitoAnnotations.initMocks(null); in shouldScreamWhenInitializingMocksForNullClass()
69 MockitoAnnotations.initMocks(sub); in shouldLookForAnnotatedMocksInSuperClasses()
DSpyAnnotationInitializedInBaseClassTest.java9 import org.mockito.MockitoAnnotations;
38 MockitoAnnotations.initMocks(subClass); in shouldInitSpiesInBaseClass()
51 MockitoAnnotations.initMocks(this); in before()
DDeprecatedAnnotationEngineApiTest.java12 import org.mockito.MockitoAnnotations;
50 MockitoAnnotations.initMocks(test); in shouldInjectMocksIfThereIsNoUserDefinedEngine()
66 MockitoAnnotations.initMocks(test); in shouldRespectUsersEngine()
DMockInjectionUsingConstructorTest.java18 import org.mockito.MockitoAnnotations;
36 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()
DCaptorAnnotationUnhappyPathTest.java11 import org.mockito.MockitoAnnotations;
34 MockitoAnnotations.initMocks(this); in shouldFailIfCaptorHasWrongType()
/external/mockito/src/test/java/org/mockitousage/bugs/creation/
DConstructorInvokingMethodShouldNotRaiseExceptionTest.java6 import org.mockito.MockitoAnnotations;
20 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/bugs/injection/
DParentTestMockInjectionTest.java12 import org.mockito.MockitoAnnotations;
22 MockitoAnnotations.initMocks(it); in injectMocksShouldInjectMocksFromTestSuperClasses()
43 MockitoAnnotations.initMocks(this); in setup()
/external/mockito/src/test/java/org/mockitousage/bugs/
DFinalHashCodeAndEqualsRaiseNPEInInitMocksTest.java10 import org.mockito.MockitoAnnotations;
22 MockitoAnnotations.initMocks(this); in dont_raise_NullPointerException()
/external/mockito/src/test/java/org/mockito/internal/verification/
DVerificationWithDescriptionTest.java6 import org.mockito.MockitoAnnotations;
23 MockitoAnnotations.initMocks(this); in setUp()
DDescriptionTest.java14 import static org.mockito.MockitoAnnotations.initMocks;
/external/mockito/src/main/java/org/mockito/internal/framework/
DDefaultMockitoSession.java4 import org.mockito.MockitoAnnotations;
27 MockitoAnnotations.initMocks(testClassInstance); in DefaultMockitoSession()
/external/mockito/src/main/java/org/mockito/internal/junit/
DJUnitRule.java10 import org.mockito.MockitoAnnotations;
42 MockitoAnnotations.initMocks(target); in apply()
/external/mockito/src/main/java/org/mockito/internal/runners/
DDefaultInternalRunner.java18 import org.mockito.MockitoAnnotations;
38 MockitoAnnotations.initMocks(target); in DefaultInternalRunner()
/external/mockito/src/test/java/org/mockitoutil/
DTestBase.java10 import org.mockito.MockitoAnnotations;
48 MockitoAnnotations.initMocks(this); in init()
/external/mockito/src/main/java/org/mockito/configuration/
DAnnotationEngine.java7 import org.mockito.MockitoAnnotations;
/external/dagger2/producers/src/test/java/dagger/producers/internal/
DAbstractProducerTest.java29 import org.mockito.MockitoAnnotations;
53 MockitoAnnotations.initMocks(this); in initMocks()
/external/mockito/src/main/java/org/mockito/
DMockitoAnnotations.java55 public class MockitoAnnotations { class
/external/mockito/src/test/java/org/mockito/internal/util/
DDefaultMockingDetailsTest.java8 import org.mockito.MockitoAnnotations;
35 MockitoAnnotations.initMocks(this); in before()
/external/mockito/src/main/java/org/mockito/session/
DMockitoSessionBuilder.java4 import org.mockito.MockitoAnnotations;
/external/mockito/src/main/java/org/mockito/junit/
DMockitoRule.java9 import org.mockito.MockitoAnnotations;
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/monitoring/
DMonitoringTest.java35 import org.mockito.MockitoAnnotations;
57 MockitoAnnotations.initMocks(this); in setUp()

12