/external/mockito/src/test/java/org/mockitousage/annotation/ |
D | WrongSetOfAnnotationsTest.java | 21 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()
|
D | SpyAnnotationTest.java | 16 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 …]
|
D | MockInjectionUsingSetterOrPropertyTest.java | 12 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()
|
D | CaptorAnnotationTest.java | 52 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()
|
D | AnnotationsTest.java | 12 import org.mockito.MockitoAnnotations; 41 MockitoAnnotations.initMocks(this); in setup() 58 MockitoAnnotations.initMocks(null); in shouldScreamWhenInitializingMocksForNullClass() 69 MockitoAnnotations.initMocks(sub); in shouldLookForAnnotatedMocksInSuperClasses()
|
D | SpyAnnotationInitializedInBaseClassTest.java | 9 import org.mockito.MockitoAnnotations; 38 MockitoAnnotations.initMocks(subClass); in shouldInitSpiesInBaseClass() 51 MockitoAnnotations.initMocks(this); in before()
|
D | DeprecatedAnnotationEngineApiTest.java | 12 import org.mockito.MockitoAnnotations; 50 MockitoAnnotations.initMocks(test); in shouldInjectMocksIfThereIsNoUserDefinedEngine() 66 MockitoAnnotations.initMocks(test); in shouldRespectUsersEngine()
|
D | MockInjectionUsingConstructorTest.java | 18 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()
|
D | CaptorAnnotationUnhappyPathTest.java | 11 import org.mockito.MockitoAnnotations; 34 MockitoAnnotations.initMocks(this); in shouldFailIfCaptorHasWrongType()
|
/external/mockito/src/test/java/org/mockitousage/bugs/creation/ |
D | ConstructorInvokingMethodShouldNotRaiseExceptionTest.java | 6 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/ |
D | ParentTestMockInjectionTest.java | 12 import org.mockito.MockitoAnnotations; 22 MockitoAnnotations.initMocks(it); in injectMocksShouldInjectMocksFromTestSuperClasses() 43 MockitoAnnotations.initMocks(this); in setup()
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | FinalHashCodeAndEqualsRaiseNPEInInitMocksTest.java | 10 import org.mockito.MockitoAnnotations; 22 MockitoAnnotations.initMocks(this); in dont_raise_NullPointerException()
|
/external/mockito/src/test/java/org/mockito/internal/verification/ |
D | VerificationWithDescriptionTest.java | 6 import org.mockito.MockitoAnnotations; 23 MockitoAnnotations.initMocks(this); in setUp()
|
D | DescriptionTest.java | 14 import static org.mockito.MockitoAnnotations.initMocks;
|
/external/mockito/src/main/java/org/mockito/internal/framework/ |
D | DefaultMockitoSession.java | 4 import org.mockito.MockitoAnnotations; 27 MockitoAnnotations.initMocks(testClassInstance); in DefaultMockitoSession()
|
/external/mockito/src/main/java/org/mockito/internal/junit/ |
D | JUnitRule.java | 10 import org.mockito.MockitoAnnotations; 42 MockitoAnnotations.initMocks(target); in apply()
|
/external/mockito/src/main/java/org/mockito/internal/runners/ |
D | DefaultInternalRunner.java | 18 import org.mockito.MockitoAnnotations; 38 MockitoAnnotations.initMocks(target); in DefaultInternalRunner()
|
/external/mockito/src/test/java/org/mockitoutil/ |
D | TestBase.java | 10 import org.mockito.MockitoAnnotations; 48 MockitoAnnotations.initMocks(this); in init()
|
/external/mockito/src/main/java/org/mockito/configuration/ |
D | AnnotationEngine.java | 7 import org.mockito.MockitoAnnotations;
|
/external/dagger2/producers/src/test/java/dagger/producers/internal/ |
D | AbstractProducerTest.java | 29 import org.mockito.MockitoAnnotations; 53 MockitoAnnotations.initMocks(this); in initMocks()
|
/external/mockito/src/main/java/org/mockito/ |
D | MockitoAnnotations.java | 55 public class MockitoAnnotations { class
|
/external/mockito/src/test/java/org/mockito/internal/util/ |
D | DefaultMockingDetailsTest.java | 8 import org.mockito.MockitoAnnotations; 35 MockitoAnnotations.initMocks(this); in before()
|
/external/mockito/src/main/java/org/mockito/session/ |
D | MockitoSessionBuilder.java | 4 import org.mockito.MockitoAnnotations;
|
/external/mockito/src/main/java/org/mockito/junit/ |
D | MockitoRule.java | 9 import org.mockito.MockitoAnnotations;
|
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/monitoring/ |
D | MonitoringTest.java | 35 import org.mockito.MockitoAnnotations; 57 MockitoAnnotations.initMocks(this); in setUp()
|