/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 | MockInjectionUsingConstructorTest.java | 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() 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()
|
D | SpyAnnotationTest.java | 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() 223 MockitoAnnotations.initMocks(new WithInnerPrivateStaticAbstract()); in should_report_private_static_abstract_inner_not_supported()
|
D | MockInjectionUsingSetterOrPropertyTest.java | 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 | 41 MockitoAnnotations.initMocks(this); in setup() 58 MockitoAnnotations.initMocks(null); in shouldScreamWhenInitializingMocksForNullClass() 69 MockitoAnnotations.initMocks(sub); in shouldLookForAnnotatedMocksInSuperClasses()
|
D | SpyAnnotationInitializedInBaseClassTest.java | 38 MockitoAnnotations.initMocks(subClass); in shouldInitSpiesInBaseClass() 51 MockitoAnnotations.initMocks(this); in before()
|
D | DeprecatedAnnotationEngineApiTest.java | 50 MockitoAnnotations.initMocks(test); in shouldInjectMocksIfThereIsNoUserDefinedEngine() 66 MockitoAnnotations.initMocks(test); in shouldRespectUsersEngine()
|
D | CaptorAnnotationUnhappyPathTest.java | 34 MockitoAnnotations.initMocks(this); in shouldFailIfCaptorHasWrongType()
|
/external/mockito/src/test/java/org/mockito/internal/session/ |
D | DefaultMockitoSessionBuilderTest.java | 21 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/ |
D | ConstructorInvokingMethodShouldNotRaiseExceptionTest.java | 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/stubbing/ |
D | StrictStubbingEndToEndTest.java | 79 …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/ |
D | MockitoSessionTest.java | 99 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/ |
D | ParentTestMockInjectionTest.java | 22 MockitoAnnotations.initMocks(it); in injectMocksShouldInjectMocksFromTestSuperClasses() 43 MockitoAnnotations.initMocks(this); in setup()
|
/external/mockito/src/test/java/org/mockito/internal/verification/ |
D | DescriptionTest.java | 14 import static org.mockito.MockitoAnnotations.initMocks; 26 initMocks(this); in setUp()
|
D | VerificationOverTimeImplTest.java | 15 import static org.mockito.MockitoAnnotations.initMocks; 27 initMocks(this); in setUp()
|
D | VerificationWithDescriptionTest.java | 23 MockitoAnnotations.initMocks(this); in setUp()
|
/external/volley/src/test/java/com/android/volley/ |
D | RequestQueueTest.java | 31 import static org.mockito.MockitoAnnotations.initMocks; 45 initMocks(this); in setUp()
|
D | RequestQueueIntegrationTest.java | 42 import static org.mockito.MockitoAnnotations.initMocks; 58 initMocks(this); in setUp()
|
/external/dagger2/producers/src/test/java/dagger/producers/internal/ |
D | AbstractProducerTest.java | 52 public void initMocks() { in initMocks() method in AbstractProducerTest 53 MockitoAnnotations.initMocks(this); in initMocks()
|
/external/mockito/src/main/java/org/mockito/ |
D | MockitoAnnotations.java | 63 public static void initMocks(Object testClass) { in initMocks() method in MockitoAnnotations
|
/external/mockito/src/main/java/org/mockito/session/ |
D | MockitoSessionBuilder.java | 38 MockitoSessionBuilder initMocks(Object testClassInstance); in initMocks() method
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | FinalHashCodeAndEqualsRaiseNPEInInitMocksTest.java | 22 MockitoAnnotations.initMocks(this); in dont_raise_NullPointerException()
|
/external/mockito/src/main/java/org/mockito/internal/session/ |
D | DefaultMockitoSessionBuilder.java | 15 public MockitoSessionBuilder initMocks(Object testClassInstance) { in initMocks() method in DefaultMockitoSessionBuilder
|
/external/mockito/src/main/java/org/mockito/internal/framework/ |
D | DefaultMockitoSession.java | 27 MockitoAnnotations.initMocks(testClassInstance); in DefaultMockitoSession()
|